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