The instructions below have been verified with python3 (CMSSW_12_0_X onwards).
cmsrel CMSSW_12_1_0
cd CMSSW_12_1_0/src
cmsenv
git clone [email protected]:gitytakahas/Run3BparkingHLTStudies.git
cd Run3BparkingHLTStudies
cd $CMSSW_BASE/src/Run3BparkingHLTStudies/single-mu/
python3 draw_roc.py --pr --weight
This will print out relevant numbers to be later used to make the ROC curve.
If you just need L1 times HLT trigger eff. just remove --weight
option.
These numbers have been already embedded into the draw_roc.py
script, which is the one used for drawing the ROC curve.
cd $CMSSW_BASE/src/Run3BparkingHLTStudies/
python3 compare_eff.py --weight
This will create the efficiency map to be later used to make the ROC curve.
If you don't want to fold in analysis efficiency, you can just remove --weight
option.
Obtained maps are already stored in eos so this step can be skipped unless you want to create the new one.
If you want to make comparison plots for several basic distributions at the HLT level, just add --plot
option.
cd $CMSSW_BASE/src/Run3BparkingHLTStudies/
python3 compare_rate.py
This will create the HLT rate map (as a function of number of pileup) to be later used to make the ROC curve. Obtained maps are already stored in eos so this step can be skipped unless you want to create the new one.
cd $CMSSW_BASE/src/Run3BparkingHLTStudies/
python3 draw_roc.py --weight
The script will loop over relevant npu:
- pu = 17 (0.6E34)
- pu = 25 (0.9E34)
- pu = 30 (1.1E34)
- pu = 36 (1.3E34)
- pu = 42 (1.5E34)
- pu = 48 (1.7E34)
- pu = 56 (2.0E34)
and create the ROOT files containing each ROC curve, to be later used in the next step (estimate.py). If you want to have different npu, you can just edit the last few lines of draw_roc.py
.
python3 estimate.py
This will make a predictions about # of expected Kee events assuming 2018 like scenario (taken Fill 7321 as reference) or paseudo Run3 lumi profile (again taken from Fill 7321 but inserted 6h of lumi-levelling at the beginning with 2E34 and fall aftewards).