How to use detector coverage tool
Preparation
You should create a directory to test this tool. For example, the directory may be named "myCoverageMonitoring".
mkdir myCoverageMonitoring
cd myCoverageMonitoring
You should set the ATLAS environment.
export AtlasSetup=/afs/cern.ch/atlas/software/dist/AtlasSetup
alias asetup='source $AtlasSetup/script/asetup.sh'
Download some packages here and make
WorkArea.
setupATLAS
asetup 20.7.X.Y, here
pkgco.py SCT_Monitoring-00-06-99
pkgco.py InDetRecExample
setup WorkArea.py
Set X,Y numbers of release version.
Next, you should compile the following files.
cd WorkArea/cmt
cmt config
source setup.sh
cmt bro gmake clean
cmt bro gmake
You will see "--all ok" when compiling is finished.
You should copy "jobOptions_Standalone.py" file to "run" directory.
cd ../run
cp $TestArea/InnerDetector/InDetExample/InDetRecExample/share/jobOptions_Standalone.py .
Next, edit 3 lines in this file.
In line 6, doReadBS is False in default setting. You should change to True:
doReadBS = True
In line 38, change "theApp.EvtMax = 10" to
theApp.EvtMax = -1
In line 166, change "False" to "True":
InDetFlacs.doMonitoringSCT = True
And change outpulevel in
InDetMonitoringSCT.py file.
vi $TestArea/InnerDetector/InDetExample/InDetRecExample/share/InDetMonitoringSCT.py
In line 49,
Outputlevel = 3,
and you should add the following valiable into
SCTErrMonTool:
CoverageCheck = True,
Using detector coverage tool
You add a path of a RAW file of which you want to check lumi block like the following:
athenaCommonFlags.FilesInput = ["root://eosatlas///eos/atlas/atlastier0/rucio/data16_13TeV/express_express/00302829/data16_13TeV.00302829.express_express.merge.RAW/data16_13TeV.00302829.express_express.merge.RAW._lb0930._SFO-ALL._0001.1"]
These represent a PATH of a RAW file of lb930 at run303839.
You run the job file by athena
athena jobOptions_Standalone.py
Detector coverage will be showen on your display (2016/08/02 it is not available).
Output file is "monitoring.root". Detector coverage histogram is in "monitoring.root/SCT/GENERAL/Conf/SCTTotalDetectorCoverageVsLbs"
The detector coverage is "Mean y" value in the information box.
--
KeisukeKoda - 2016-06-16