CMS 3D CMS Logo

L1TEGammaOffline_cfi.py
Go to the documentation of this file.
1 from builtins import range
2 import FWCore.ParameterSet.Config as cms
3 from DQMOffline.L1Trigger.L1THistDefinitions_cff import histDefinitions
4 
5 electronEfficiencyThresholds = [34, 36, 38, 40, 42]
6 
7 electronEfficiencyBins = []
8 electronEfficiencyBins.extend(list(range(2, 42, 2)))
9 electronEfficiencyBins.extend(list(range(42, 45, 3)))
10 electronEfficiencyBins.extend(list(range(45, 50, 5)))
11 electronEfficiencyBins.extend(list(range(50, 70, 10)))
12 electronEfficiencyBins.extend(list(range(70, 101, 30)))
13 
14 # additional efficiency vs eta, phi and # vertices plots will
15 # be created for the following probe electron pT thresholds
16 deepInspectionElectronThresholds = [48, 50]
17 
18 # offset for 2D efficiency plots, uses
19 # electronEfficiencyBins + probeToL1Offset (GeV)
20 probeToL1Offset = 10
21 
22 # just copy for now
23 photonEfficiencyThresholds = electronEfficiencyThresholds
24 photonEfficiencyBins = electronEfficiencyBins
25 
26 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
27 l1tEGammaOfflineDQM = DQMEDAnalyzer(
28  "L1TEGammaOffline",
29  electronCollection=cms.InputTag("gedGsfElectrons"),
30  photonCollection=cms.InputTag("photons"),
31  caloJetCollection=cms.InputTag("ak4CaloJets"),
32  caloMETCollection=cms.InputTag("caloMet"),
33  conversionsCollection=cms.InputTag("allConversions"),
34  PVCollection=cms.InputTag("offlinePrimaryVerticesWithBS"),
35  beamSpotCollection=cms.InputTag("offlineBeamSpot"),
36 
37  triggerInputTag=cms.InputTag('hltTriggerSummaryAOD', '', 'HLT'),
38  triggerProcess=cms.string('HLT'),
39  triggerResults=cms.InputTag('TriggerResults', '', 'HLT'),
40  triggerNames = cms.vstring(
41  'HLT_Ele32_WPTight_Gsf_v*',
42  ),
43 
44  stage2CaloLayer2EGammaSource=cms.InputTag("caloStage2Digis", "EGamma"),
45 
46  histFolder=cms.string('L1T/L1TObjects/L1TEGamma/L1TriggerVsReco'),
47 
48  electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds),
49  electronEfficiencyBins=cms.vdouble(electronEfficiencyBins),
50  probeToL1Offset=cms.double(probeToL1Offset),
51  deepInspectionElectronThresholds=cms.vdouble(deepInspectionElectronThresholds),
52 
53  photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds),
54  photonEfficiencyBins=cms.vdouble(photonEfficiencyBins),
55  maxDeltaRForL1Matching=cms.double(0.3),
56  maxDeltaRForHLTMatching=cms.double(0.3),
57  recoToL1TThresholdFactor=cms.double(1.25),
58 
59  histDefinitions=cms.PSet(
60  nVertex=histDefinitions.nVertex.clone(),
61  ETvsET=histDefinitions.ETvsET.clone(),
62  PHIvsPHI=histDefinitions.PHIvsPHI.clone(),
63  ),
64 )
65 
66 # modifications for the pp reference run
67 electronEfficiencyThresholds_HI = [5, 10, 15, 21]
68 deepInspectionElectronThresholds_HI = [15]
69 
70 electronEfficiencyBins_HI = []
71 electronEfficiencyBins_HI.extend(list(range(1, 26, 1)))
72 electronEfficiencyBins_HI.extend(list(range(26, 42, 2)))
73 electronEfficiencyBins_HI.extend(list(range(42, 45, 3)))
74 electronEfficiencyBins_HI.extend(list(range(45, 50, 5)))
75 electronEfficiencyBins_HI.extend(list(range(50, 70, 10)))
76 electronEfficiencyBins_HI.extend(list(range(70, 101, 30)))
77 
78 photonEfficiencyThresholds_HI = electronEfficiencyThresholds_HI
79 photonEfficiencyBins_HI = electronEfficiencyBins_HI
80 
81 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
82 ppRef_2017.toModify(
83  l1tEGammaOfflineDQM,
84  TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
85  TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
86  electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds_HI),
87  electronEfficiencyBins=cms.vdouble(electronEfficiencyBins_HI),
88  deepInspectionElectronThresholds=cms.vdouble(deepInspectionElectronThresholds_HI),
89  photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds_HI),
90  photonEfficiencyBins=cms.vdouble(photonEfficiencyBins_HI)
91 )
92 
93 # emulator module
94 l1tEGammaOfflineDQMEmu = l1tEGammaOfflineDQM.clone(
95  stage2CaloLayer2EGammaSource=cms.InputTag("simCaloStage2Digis"),
96 
97  histFolder=cms.string('L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco'),
98 )
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