Adapted from: https://github.com/skkwan/phase2-l1Calo-analyzer .
This repo is for running the Phase-2 calo emulator.
Initial setup follows from: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideL1TPhase2Instructions , specifically cms-l1t-offline:l1t-phase2-v3.4.44
.
cmsrel CMSSW_12_3_0_pre4
cd CMSSW_12_3_0_pre4/src
cmsenv
git cms-init
git cms-merge-topic -u pallabidas:test-pfclusters-CMSSW_12_3_0_pre4
scram b -j 12
Inside L1Trigger
directory:
git clone [email protected]:pallabidas/L1CaloPhase2Analyzer.git
scram b -j 12
For running the emulator:
cd L1Trigger/L1CaloTrigger/test/
cmsRun test_Phase2L1CaloEGammaEmulator.py
To call the firmware-based emulator and make an n-tuple for event display:
cd L1Trigger/L1CaloPhase2Analyzer/test/
cmsRun test-l1tEventDisplayGenerator.py
Use the L1EventDisplay.root
file as input inside figures/eventDisplays/plotEventDisplayPhaseIIPFclusters.C
.
Get plot by running ./makedisplay.sh
after suitably changing save location inside the script.
For the efficiency plots:
cd L1Trigger/L1CaloPhase2Analyzer/test/
cmsRun test-analyzer.py
This produces analyzer.root
.
Use this file as input in figures/efficiencyPlots/makeEfficienciesPlotPF.cpp
.
Get plots using root -l -b -q makeEfficienciesPlotPF.cpp
after suitably changing save location inside the script.