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 = "simCaloStage2Digis",
96  histFolder = 'L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco'
97 )