#Make the Moore release area. (Moore is the project for the High Level Trigger. More documentation can be found in
this twiki page.)
cd $User_release_area
SetupProject Moore v20r3 --build-env
#Get the packages that we will edit
cd $User_release_area/Moore_v20r3
getpack Hlt/Hlt2Lines head
getpack Hlt/HltConf head
getpack Hlt/HltSettings head
#Add the draft Hlt2 line to the Hlt2Lines package and build
cd $User_release_area/Moore_v20r3/Hlt/Hlt2Lines
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/Hlt2CharmHadD02HHPi0Lines.py python/Hlt2Lines
SetupMoore v20r3; cd cmt; cmt make; cd ..;
#You also need to add the new line to the HltConf package
cd $User_release_area/Moore_v20r3/Hlt/HltConf/
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/Hlt2.py python/HltConf
SetupMoore v20r3; cd cmt; cmt make; cd ..;
#(This just adds the following line to Hlt2.py)
#from Hlt2Lines.Hlt2CharmHadD02HHPi0Lines import Hlt2CharmHadD02HHPi0LinesConf
#Then you need to edit one of the HltSettings files
cd $User_release_area/Hlt/HltSettings
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/Physics_September2012.py Hlt/HltSettings
SetupMoore v20r3; cd cmt; cmt make; cd ..;
#Now you are ready to test
cd $User_release_area/Moore_v20r3/Hlt/Hlt2Lines
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/runMoore.py .
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/RawData.py .
cp /afs/cern.ch/user/m/mvesteri/public/ForKevin/Hlt2/Kpipi0*.py .
#Run over min-bias data (to get the output rate):
SetupMoore v20r3
gaudirun.py runMoore.py RawData.py | tee RawData.log
#Run over signal MC (to get the efficiency)
SetupMoore v20r3
gaudirun.py runMoore.py Kpipi0_PFNs.py | tee Signal.log