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)
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:1
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