CMS 3D CMS Logo

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 import six
4 
5 variables = {
6  'met': L1TStep1.metEfficiencyThresholds,
7  'mht': L1TStep1.mhtEfficiencyThresholds,
8  'ett': L1TStep1.ettEfficiencyThresholds,
9  'htt': L1TStep1.httEfficiencyThresholds,
10 }
11 
12 plots = {
13  'met': ['efficiencyMET', 'efficiencyETMHF', 'efficiencyPFMetNoMu'],
14  'mht': ['efficiencyMHT'],
15  'ett': ['efficiencyETT'],
16  'htt': ['efficiencyHTT'],
17 }
18 
19 
20 from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings
21 
22 efficiencyStrings = list(generateEfficiencyStrings(variables, plots))
23 
24 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
25 l1tEtSumEfficiency = DQMEDHarvester(
26  "DQMGenericClient",
27  commands=cms.vstring(),
28  resolution=cms.vstring(),
29  subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEtSum/L1TriggerVsReco'),
30  efficiency=cms.vstring(),
31  efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
32 )
33 
34 l1tEtSumEmuEfficiency = l1tEtSumEfficiency.clone(
35  subDirs=cms.untracked.vstring(
36  'L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco'),
37 )
38 
39 # modifications for the pp reference run
40 variables_HI = variables
41 
42 efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))
43 
44 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
45 ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
46 ppRef_2017.toModify(l1tEtSumEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
DQMEDHarvester
Definition: DQMEDHarvester.py:1
L1TCommon.generateEfficiencyStrings
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:3
list
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run