CMS 3D CMS Logo

L1TEtSumEfficiency_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMOffline.L1Trigger import L1TEtSumJetOffline_cfi as L1TStep1
3 
4 variables = {
5  'met': L1TStep1.metEfficiencyThresholds,
6  'mht': L1TStep1.mhtEfficiencyThresholds,
7  'ett': L1TStep1.ettEfficiencyThresholds,
8  'htt': L1TStep1.httEfficiencyThresholds,
9 }
10 
11 plots = {
12  'met': ['efficiencyMET', 'efficiencyETMHF', 'efficiencyPFMetNoMu'],
13  'mht': ['efficiencyMHT'],
14  'ett': ['efficiencyETT'],
15  'htt': ['efficiencyHTT'],
16 }
17 
18 
19 from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings
20 
21 efficiencyStrings = list(generateEfficiencyStrings(variables, plots))
22 
23 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
24 l1tEtSumEfficiency = DQMEDHarvester(
25  "DQMGenericClient",
26  commands=cms.vstring(),
27  resolution=cms.vstring(),
28  subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEtSum/L1TriggerVsReco'),
29  efficiency=cms.vstring(),
30  efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
31 )
32 
33 l1tEtSumEmuEfficiency = l1tEtSumEfficiency.clone(
34  subDirs=cms.untracked.vstring(
35  'L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco'),
36 )
37 
38 # modifications for the pp reference run
39 variables_HI = variables
40 
41 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
42 
43 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
44 ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
45 ppRef_2017.toModify(l1tEtSumEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
DQMEDHarvester
Definition: DQMEDHarvester.py:1
L1TCommon.generateEfficiencyStrings
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:2