2015 Analysis Guide

"Quick Start" for Xenia

  1. Initial Setup
  2. Getting the Code
  3. Running the Code

1. Initial Setup:

This will show you how to get our code and walk you through to the point where you can make a histogram, and points you to code to change for adding a new histogram. You should know a bit about ROOT and C++ and be able to log into xenia.

On xenia (ssh xenia)


edit (emacs/vi other) the .myprofile file in your home directory, adding the following lines:

export ATLAS_LOCAL_ROOT_BASE=/a/data/xenia/share/atlas/ATLASLocalRootBase/ 
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'


cd /a/data/xenia2/users/YOURWORKAREA/     


mkdir myworkdir


cd myworkdir 
rcSetup Top,2.3.13


cp -rp /a/data/xenia/users/tandeen/topana_test/TtResonancesTools . 
cp -rp /a/data/xenia/users/tandeen/topana_test/HQTTtResonancesTools . 
cp -rp /a/data/xenia/users/tandeen/topana_test/TopDataPreparation . 
cp -rp /a/data/xenia/users/tandeen/topana_test/TopExamples . 
cp -rp /a/data/xenia/users/tandeen/topana_test/TopNtupleAnalysis . 

(to get via svn:

svn co $SVNROOT/PhysicsAnalysis/TopPhys/xAOD/TtResonancesTools/tags/TtResonancesTools-01-00-00  TtResonancesTools
svn co svn+ssh://$CERN_USER@svn.cern.ch/reps/atlasphys-top/Physics/Top/PhysAnalysis/Run2/HQTTtResonancesTools/tags/HQTTtResonancesTools-00-01-02 HQTTtResonancesTools
svn co $SVNOFF/PhysicsAnalysis/TopPhys/xAOD/TopNtupleAnalysis/trunk [[TopNtupleAnalysis][TopNtupleAnalysis]] 
svn co svn+ssh://$CERN_USER@svn.cern.ch/reps/atlasoff/PhysicsAnalysis/TopPhys/TopPhysUtils/TopDataPreparation/trunk [[TopDataPreparation][TopDataPreparation]] 
svn co $SVNOFF/PhysicsAnalysis/TopPhys/xAOD/TopExamples/trunk [[TopExamples][TopExamples]] 


rc find_packages
rc compile    

Now copy over some input files:

cd TopNtupleAnalysis
cp -rp /a/data/xenia/users/tandeen/topana_test/TopNtupleAnalysis/test13 . 

and then (assuming there were no errors!) run over each input file with:

./read --files test13/input_TT1100.root --analysis AnaTtresSL --output resolved_e.root,resolved_mu.root,boosted_e.root,boosted_mu.root --data 0

You should get the output root files, which you can open and look at the histograms there using ROOT and a TBrowser.

To run over all the files at once copy the run.py from the scripts directory and run with

python run.py

You can make pretty plots by copying from plot.C from the scripts directory.

edit plot.C and change the input files (should be around line 1282) to be those in the test13_hist dir (ie "input_ttbar")

The you can make a plot with

root -l -b -q 'plot.C+("lepPt","./test13_hist/","_bmu.root", false)'

to make a plot of lepton transverse momentum for the muons channel with the boosted selection.

To add a historgram or change the selection edit Root/AnaTtresSL.cxx.

References: Much was taken from https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/TtbarResonances2015

and links therein.

-- Timothy Andeen - 2015-06-22


Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2015-07-30 - WilliamSeligman
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback