Skip to content

Analysis scripts for data efficiency and charge misidentification studies for prompt muons

Notifications You must be signed in to change notification settings

L1TMuonDPG/PromptMuons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L1 Muon DPG scripts (based on official NANOAOD)

Install

cmsrel CMSSW_15_0_5  
cd CMSSW_15_0_5/src  
cmsenv  
git clone https://github.com/yiannispar/muonDPG.git  

Setup for run

Generate submission and plotting scripts with the automation script:

python3 automate.py -o <output_directory> [--run]

Basic Functionality (without optional flags): Creates scripts for:

  • eff: Efficiency vs (pT/eta/phi) for all working points described here
  • misid: Charge misidentification probability vs (pT/eta&phi) for SingleMu22.

Optional flags

  • --run: Include plots for variables versus the run number in the generated scripts.
    • eff_vs_run: Efficiency vs run number for SingleMu22 [WIP].
    • misid_vs_run: Charge misidentification probability vs run number for SingleMu22 [WIP].

Run

Before submitting the jobs make sure that you have enabled the certificate for the DAS.

voms-proxy-init -voms cms 
cd muonDPG/condor
./batch_submission.sh <dataset> 

Notes:

  • The dataset should match the format of DAS, e.g. /Muon0/Run2024F-PromptReco-v1/NANOAOD
  • The output files will be saved in a /files/ directory inside the specified output directory.

Run multiple datasets

cd muonDPG/condor
./run_datasets.sh <dataset_list.txt>

Make plots

cmsenv
cd muonDPG/make_plots
./make_plots.sh <era_of_dataset>

Notes:

  • Output plots will be saved in a /plots/ directory inside the specified output directory.

Make plots for each case

For finer control, you can create plots for specific cases using individual scripts created during the setup phase:

cmsenv
cd muonDPG/make_plots
./make_plots_<case>.sh <era_of_dataset>

Make comparison plots

cmsenv
cd muonDPG/make_plots
./make_comparison_plots_eff.sh <era_of_1st_dataset> <era_of_2nd_dataset>

The ratio plots will be generated with the 1st dataset being the numerator and the 2nd the denominator.

Working points

Working Point L1 pT cut Quality cut
L1Mu22_15 22 GeV 15
L1Mu26_14 26 GeV 14
L1Mu22_14 22 GeV 14
L1Mu20_14 20 GeV 14
L1Mu15_14 15 GeV 14
L1Mu11_14 11 GeV 14
L1Mu10_14 10 GeV 14
L1Mu7_14 7 GeV 14
L1Mu5_14 5 GeV 14
L1Mu3_14 3 GeV 14
L1Mu22_13 22 GeV 13
L1Mu26_12 26 GeV 12
L1Mu22_12 22 GeV 12
L1Mu20_12 20 GeV 12
L1Mu15_12 15 GeV 12
L1Mu10_12 10 GeV 12
L1Mu7_12 7 GeV 12
L1Mu5_12 5 GeV 12
L1Mu3_12 3 GeV 12
L1Mu26_8 26 GeV 8
L1Mu22_8 22 GeV 8
L1Mu20_8 20 GeV 8
L1Mu15_8 15 GeV 8
L1Mu10_8 10 GeV 8
L1Mu7_8 7 GeV 8
L1Mu5_8 5 GeV 8
L1Mu3_8 3 GeV 8
L1Mu26_4 26 GeV 4
L1Mu22_4 22 GeV 4
L1Mu20_4 20 GeV 4
L1Mu15_4 15 GeV 4
L1Mu10_4 10 GeV 4
L1Mu7_4 7 GeV 4
L1Mu5_4 5 GeV 4
L1Mu3_4 3 GeV 4
L1Mu26_0 26 GeV 0
L1Mu22_0 22 GeV 0
L1Mu20_0 20 GeV 0
L1Mu15_0 15 GeV 0
L1Mu10_0 10 GeV 0
L1Mu7_0 7 GeV 0
L1Mu5_0 5 GeV 0
L1Mu3_0 3 GeV 0
Track Finders Abs(Eta)
uGMT [0.00, 2.40]
BMTF [0.00, 0.83]
OMTF [0.83, 1.24]
EMTF [1.24, 2.40]
EMTF1 [1.24, 1.60]
EMTF2 [1.60, 2.10]
EMTF3 [2.10, 2.40]

Useful links

  • You can find the golden json files needed in /eos/user/c/cmsdqm/www/CAF/certification/

About

Analysis scripts for data efficiency and charge misidentification studies for prompt muons

Resources

Stars

Watchers

Forks

Packages

No packages published