CMS 3D CMS Logo

L1TJetEfficiency_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  'jet': L1TStep1.jetEfficiencyThresholds,
7 }
8 
9 plots = {
10  'jet': [
11  "efficiencyJetEt_HB", "efficiencyJetEt_HE", "efficiencyJetEt_HF",
12  "efficiencyJetEt_HB_HE"],
13 }
14 
15 
16 from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings
17 efficiencyStrings = list(generateEfficiencyStrings(variables, plots))
18 
19 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
20 l1tJetEfficiency = DQMEDHarvester(
21  "DQMGenericClient",
22  commands=cms.vstring(),
23  resolution=cms.vstring(),
24  subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TJet/L1TriggerVsReco'),
25  efficiency=cms.vstring(),
26  efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
27 )
28 
29 l1tJetEmuEfficiency = l1tJetEfficiency.clone(
30  subDirs=cms.untracked.vstring(
31  'L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco'),
32 )
33 
34 # modifications for the pp reference run
35 variables_HI = variables
36 variables_HI['jet'] = L1TStep1.jetEfficiencyThresholds_HI
37 
38 
39 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
40 
41 
42 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
43 ppRef_2017.toModify(l1tJetEfficiency, efficiencyProfile=efficiencyStrings_HI)
44 ppRef_2017.toModify(l1tJetEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
DQMEDHarvester
Definition: DQMEDHarvester.py:1
L1TCommon.generateEfficiencyStrings
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:3