CMS 3D CMS Logo

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