Checking out and running AtlasHbb to make corrected D3PD and FlatTuple files.
Introduction
This page describe my learning steps in using the common Glasgow framework used by H->bb analyses to create D3PD and/or FlatTuple files. I will adapt this later to be adapted later for the ZH analysis.
ssh -Y ppepc137.physics.gla.ac.uk
Then open an xterm terminal.
xterm
Create the folder we will work in.
export TEST_AREA=/home/abuzatu/TestArea
mkdir $TEST_AREA
cd $TEST_AREA
Now cvs checkout
source /data/ppe01/sl44/i386/grid/glite-ui/latest/external/etc/profile.d/grid-env.sh
svn-grid-proxy-init
svn co https://ppesvn.physics.gla.ac.uk/svn/atlas/AtlasHbb/tags/AtlasHbb-00-00-16/
Setup the configuration files
cp AtlasHbb-00-00-16/scripts/AtlasHbbScript.sh .
cp AtlasHbb-00-00-16/scripts/GlaNtpScript_atlas.sh .
chmod u+x AtlasHbbScript.sh GlaNtpScript_atlas.sh
Check out and build AtlasHbb and GlaNtp into GlaNtpPackage
./AtlasHbbScript.sh -a 16.6.5 -p 00-00-16 -g 00-00-40
Look at help sheet for using AtlasHbbScript
./AtlasHbbScript.sh -h
Produce input file list for you to run over and produce a corrected D3PD
cd Grid_GlaNtpPackage/ModifiedD3PD
./getFiles.sh -test -cutword -storeFiles $TEST_AREA/GlaNtpPackage/testsvn1/AtlasHbb-00-00-16/BaseAnalysisCode/InputFiles/
Now we can test to run over these input files
cd $TEST_AREA
./AtlasHbbScript.sh -a 16.6.5 -p 00-00-16 -g 00-00-40 -r -n -runtype corrections -process T1 -cutword
The code seems to ends well.
--- Jet_Cut_Flow_EPS ---
--- EPS_Jet ---
0 : All_Jets : 195242.00
1 : Jet_NegEnergy : 195242.00
2 : Jet_Quality : 195242.00
3 : Jet_Pt : 46279.00
4 : Jet_Eta : 43084.00
5 : Jet_JVF : 39354.00
6 : Jet_B4_OR : 39354.00
7 : Jet_OR : 37543.00
NtupleAnalysis: INFO: Finished
BASEANALYSIS: Done
There were events that did not pass the preselection, so they were stored with a zero bit. This is normal, not a warning.
Info: CutWord: Event Failed Preselection. 0 Bit Stored
TupleModifier::ProtectedEvent: Called entry 9967 with isValid= 1
Info: CutWord: Event Failed Preselection. 0 Bit Stored
TupleModifier::ProtectedEvent: Called entry 9968 with isValid= 1
Info: CutWord: Event Failed Preselection. 0 Bit Stored
Now we check the output file which is the .root file created here
cd $TEST_AREA/GlaNtpPackage/testsvn1/AtlasHbb-00-00-16/BaseAnalysisCode/OutputFiles/
ls
root.exe *.root
I get many warnings like this
Warning in <TFile::ReadStreamerInfo>: corrections_T1__SMD3PDv16modifier.root: not a TStreamerInfo object
It means that first we have to setup ROOT by setting up Athena.
cd $TEST_AREA/
export AtlasSetup=/data/atlasb04/software16_slc5_gcc43/AtlasSetup
alias asetup="source $AtlasSetup/scripts/asetup.sh"
export ATHENA_VERSION=16.6.5
asetup $ATHENA_VERSION,here
echo $AtlasArea
cd $TEST_AREA/GlaNtpPackage/testsvn1/AtlasHbb-00-00-16/BaseAnalysisCode/OutputFiles/
ls
root.exe corrections_T1__SMD3PDv16modifier.root
TBrowser a
--
AdrianBuzatu - 24-Feb-2012