A example of using RootCore analysis xAOD samples

Get the framework

Use SL6 matchines, and CVMFS is needed.

setup CVMFS

Source a script like this:
$cat ~/setups/cvmfs_atlas.sh
   14# Setup to use ATLAS software from CVMFS
   18export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
   20source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
On lxplus, one can simply use setupATLAS.

setup RootCore

When CVMFS is successfully setup, setup Analsys release like this:
rcSetup Base,2.0.11
version 2.0.11 is the most recent version.

Get the samples

Setup DQ2

Setup DQ2 from CVMFS by run from command line:

Find samples

For example the SUSY signal sample
$dq2-ls mc14_8TeV.204546.Herwigpp_UEEE4_CTEQ6L1_sM_wC_WW_C1_180_N1_0.merge.AOD.e3044_s1933_s1911_r5591_r5625/
Use dq2-get to download the sample.

A example

Following instructions in SoftwareTutorialxAODAnalysisInROOT

Write a analyisis package

A example package is attached.

Run a test

Compile the package
$rc find_packages
$rc compile

and you can find a executable named testRun

testResolutionParam  testRun

More about the example package

The source code is MyAnalysis/util/testRun.cxx. It collect the samples and run the algorithm MyxAODAnalysis defined in the package.
$ls MyAnalysis/*/MyxAODAnalysis.*
MyAnalysis/MyAnalysis/MyxAODAnalysis.h  MyAnalysis/Root/MyxAODAnalysis.cxx

-- DongliangZhang - 25 Sep 2014
Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetgz MyAnalysis.tgz r1 manage 4.0 K 2014-09-25 - 18:18 DongliangZhang Example package
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2014-09-25 - DongliangZhang
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback