AOD access from ATHENA v 15

Instructions on how to run the Liverpool/Birmingham code that accesses AOD in Athena with overlap removal.

First log on to a machine with the ATHENA software (at Liverpool alpha, beta etc., up, down etc.)

Setup your cmthome directory
cd mkdir cmthome cd cmthome 

Download the file requirements and put it in cmthome:

Set up ATHENA for first time
source /batchsoft/atlas/athena/15.5.1/CMT/*/mgr/setup.sh cmt config 

Setup a work directory
cd mkdir AtlasWork15
cd AtlasWork15
mkdir 15.5.1
cd  15.5.1 

Setup ATHENA environment
source ~/cmthome/setup.sh -tag=15.5.1

Set up svn folloing the instructions to modify your .ssh/config found in https://twiki.cern.ch/twiki/bin/view/Atlas/SoftwareDevelopmentWorkBookSVN

log into CERN.

/usr/kerberos/bin/kinit -5 username@CERN.CH 

Get the code
cd $TestArea 
svn co $SVNGRP/Physics/Common/BLAnalysis/BLBasic/trunk BLAnalysis/BLBasic 
svn co $SVNGRP/Physics/Common/BLAnalysis/BLUserExamples/trunk BLAnalysis/BLUserExamples
svn co $SVNGRP/Physics/Common/BLAnalysis/bl_tools/trunk BLAnalysis/bl_tools

Make version.cmt files:
cd $TestArea/BLAnalysis
 ./bl_tools/CreateVersion.sh 

[ Note: Subsequently all you need to do is setup
 source ~/cmthome/setup.sh -tag=15.5.1 
]

Compile
cd BLUserExamples/cmt 
cmt bro cmt config 
cmt bro gmake 
[ Note: Subsequently for most compiles you can speed things up with:
  gmake -f ../i686-slc4-gcc34-opt/BLUserExamples.make QUICK=yes 
If this doesn't work use the full compile:
 cmt bro gmake 
]

copy over joboption files
cd ../run 
cp ../share/*.py . 

uncomment the lines for the file lists in
 generaloptions.py.
   

e.g. for Liverpool it would be
 #include("liv.fileList_106050.PythiaZee.py")

NB if you want to run on files on the dpm you need to have a valid grid certificate and to set up ganga. At Liverpool do
source /batchsoft/atlas/grid/setup.sh -v 96:00

Run the code
athena.py   generaloptions.py >& Z.out & 

Plot the results
root -b -q ../Root/runFile.C 

To find out the Geometry version of the input file use:
      dumpVersionTags.py -f  [full path to inputfile]  

and look for a line like :
       GeoAtlas                                            ATLAS-CSC-02-01-00 

To find out whats on the AOD in v15 run:
 checkFile.py filename.pool.root  

- AndrewMehta - 01 Oct 2009
Topic revision: r7 - 15 Oct 2009, AndrewMehta
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback