CMS 3D CMS Logo

L1TMuonDQMEfficiency_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.L1Trigger.L1TMuonDQMOffline_cfi import muonEfficiencyThresholds, muonEfficiencyThresholds_HI
4 
5 plots = ["EffvsPt", "EffvsEta", "EffvsPhi",
6  "EffvsPt_OPEN", "EffvsEta_OPEN", "EffvsPhi_OPEN",
7  "EffvsPt_DOUBLE", "EffvsEta_DOUBLE", "EffvsPhi_DOUBLE",
8  "EffvsPt_SINGLE", "EffvsEta_SINGLE", "EffvsPhi_SINGLE"]
9 
10 allEfficiencyPlots = []
11 for plot in plots:
12  for threshold in muonEfficiencyThresholds:
13  plotName = '{0}_{1}'.format(plot, threshold)
14  allEfficiencyPlots.append(plotName)
15 
16 allEfficiencyPlots_HI = []
17 for plot in plots:
18  for threshold in muonEfficiencyThresholds_HI:
19  plotName = '{0}_{1}'.format(plot, threshold)
20  allEfficiencyPlots_HI.append(plotName)
21 
22 from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
23 l1tMuonDQMEfficiency = l1tEfficiencyHarvesting.clone(
24  plotCfgs = cms.untracked.VPSet(
25  cms.untracked.PSet(
26  numeratorDir = cms.untracked.string("L1T/L1TMuon/numerators_and_denominators"),
27  outputDir = cms.untracked.string("L1T/L1TMuon"),
28  numeratorSuffix = cms.untracked.string("_Num"),
29  denominatorSuffix = cms.untracked.string("_Den"),
30  plots = cms.untracked.vstring(allEfficiencyPlots)
31  )
32  )
33 )
34 
35 # modifications for the pp reference run
36 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
37 ppRef_2017.toModify(l1tMuonDQMEfficiency,
38  plotCfgs = {0:dict(plots = allEfficiencyPlots_HI)}
39 )
40