CMS 3D CMS Logo

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