CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 = ['L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco']
35 )
36 
37 # modifications for the pp reference run
38 variables_HI = variables
39 
40 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
41 
42 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
43 ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
44 ppRef_2017.toModify(l1tEtSumEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:2