File indexing completed on 2024-04-06 12:09:34
0001 import FWCore.ParameterSet.Config as cms
0002 from DQMOffline.L1Trigger import L1TEtSumJetOffline_cfi as L1TStep1
0003
0004 variables = {
0005 'jet': L1TStep1.jetEfficiencyThresholds,
0006 }
0007
0008 plots = {
0009 'jet': [
0010 "efficiencyJetEt_HB", "efficiencyJetEt_HE", "efficiencyJetEt_HF",
0011 "efficiencyJetEt_HB_HE"],
0012 }
0013
0014
0015 from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings
0016 efficiencyStrings = list(generateEfficiencyStrings(variables, plots))
0017
0018 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0019 l1tJetEfficiency = DQMEDHarvester(
0020 "DQMGenericClient",
0021 commands=cms.vstring(),
0022 resolution=cms.vstring(),
0023 subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TJet/L1TriggerVsReco'),
0024 efficiency=cms.vstring(),
0025 efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
0026 )
0027
0028 l1tJetEmuEfficiency = l1tJetEfficiency.clone(
0029 subDirs= ['L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco']
0030 )
0031
0032
0033 variables_HI = variables
0034 variables_HI['jet'] = L1TStep1.jetEfficiencyThresholds_HI
0035
0036
0037 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
0038
0039
0040 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0041 ppRef_2017.toModify(l1tJetEfficiency, efficiencyProfile=efficiencyStrings_HI)
0042 ppRef_2017.toModify(l1tJetEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)