TopCommonSelection
Introduction
In order to get everything running you have to check out your desired packages from a number of repositories as they are develeloped by different persons.
Have a look at the AvailablePackages to see which ones are available. On that page you should also find instructions on how to check-out the trunk of each package.
Quickstart with recommended packages
Pasting the following lines to your terminal should get you the recommended packages.
kinit cwasicki@CERN.CH #please put in your name here mkdir -p CommonAnalysis/Release cd CommonAnalysis/Release
Then check out a release:
the trunk:
svn co svn+ssh://svn.cern.ch/reps/desyatfw/CommonAnalysis/Release/TopCommonSelection/trunk TopCommonSelection
a tag (this tag is obsolete!):
svn co svn+ssh://svn.cern.ch/reps/desyatfw/CommonAnalysis/Release/TopCommonSelection/tags/TopCommonSelection-00-00-03 TopCommonSelection-00-00-03
a branch (e.g. ongoing 2011 analysis):
svn co svn+ssh://svn.cern.ch/reps/desyatfw/CommonAnalysis/Release/TopCommonSelection/branches/TopCommonSelection-2011/ TopCommonSelection-2011
and change directory
cd TopCommonSelection
After checking-out you have to setup ROOT (recommended 5.26+) and SFrame:
at DESY
ini atlasfw
on NAF (maybe problem with python version later)
ini root528
at CERN: in External/GoodRunsList/Makefile comment out
#INCLUDES += -I/usr/include/libxml2 -D__WITHLIBXML__
and
. /afs/cern.ch/sw/lcg/external/gcc/4.3.2/x86_64-slc5/setup.sh . /afs/cern.ch/sw/lcg/app/releases/ROOT/5.28.00c/x86_64-slc5-gcc43-opt/root/bin/thisroot.sh export PATH=/afs/cern.ch/sw/lcg/external/Python/2.6.5/x86_64-slc5-gcc43-opt/bin:$PATH export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/Python/2.6.5/x86_64-slc5-gcc43-opt/lib:$LD_LIBRARY_PATH
Set up the SFrame environment (except for TopCommonSelection-00-00-01):
source setup.sh
This has to be done in every new shell one uses the framework.
Make sure you compile everything afterwards:
source make-all.sh
To run the example (gives you a few histograms with cutflow and selection plots):
cd Top/CommonSelection/config sframe_main TopCommonSelection_config.xml #or
Usually this reproduces the one file cutflows given here (otherwise make sure that the file you run on is mc. The extended cut flow on this page can be reproduced by sending one of the jobOptions from the share folder to the batch system (Please make sure to adjust all path in the jobOption), e.g.:
cd .. mkdir run cd run mkdir tmp/out python -u ../scripts/submitSFrame.py -j ../share/jobOptions_mc_cf.py
TopResoAnalysis
To read the TTree in the output root file from TopCommonSelection one can use (besides simple root macros) the TopResoAnalysis package:
svn co svn+ssh://svn.cern.ch/reps/desyatfw/CommonAnalysis/Release/TopResoAnalysis/trunk TopResoAnalysis cd TopResoAnalysis source setup.sh source make-all.sh cd Top/ResoAnalysis/config #edit TopResoAnalysis.xml to read your input file sframe_main TopResoAnalysis.xml
There is also a python macro in the plots directory to create histogram comparison plots.
Former Analysis
Cut flow
Tags
Analysis 1035.25 pb-1, check out TopCommonSelection-00-00-03
svn co svn+ssh://svn.cern.ch/reps/desyatfw/CommonAnalysis/Release/TopCommonSelection/tags/TopCommonSelection-00-00-03 TopCommonSelection