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