Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-17 23:31:28

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMOffline.L1Trigger import L1TEtSumJetOffline_cfi as L1TStep1
0003 
0004 variables = {
0005     'met': L1TStep1.metEfficiencyThresholds,
0006     'mht': L1TStep1.mhtEfficiencyThresholds,
0007     'ett': L1TStep1.ettEfficiencyThresholds,
0008     'htt': L1TStep1.httEfficiencyThresholds,
0009 }
0010 
0011 plots = {
0012     'met': ['efficiencyMET', 'efficiencyETMHF', 'efficiencyPFMetNoMu'],
0013     'mht': ['efficiencyMHT'],
0014     'ett': ['efficiencyETT'],
0015     'htt': ['efficiencyHTT'],
0016 }
0017 
0018 
0019 from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings
0020 
0021 efficiencyStrings = list(generateEfficiencyStrings(variables, plots))
0022 
0023 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0024 l1tEtSumEfficiency = DQMEDHarvester(
0025     "DQMGenericClient",
0026     commands=cms.vstring(),
0027     resolution=cms.vstring(),
0028     subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEtSum/L1TriggerVsReco'),
0029     efficiency=cms.vstring(),
0030     efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
0031 )
0032 
0033 l1tEtSumEmuEfficiency = l1tEtSumEfficiency.clone(
0034     subDirs = ['L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco']
0035 )
0036 
0037 # modifications for the pp reference run
0038 variables_HI = variables
0039 
0040 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
0041 
0042 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0043 ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
0044 ppRef_2017.toModify(l1tEtSumEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)