1 import FWCore.ParameterSet.Config
as cms
3 hltTauDQMofflineProcess =
"HLT" 6 TauRefProducer = cms.EDProducer(
"HLTTauRefProducer",
8 PFTaus = cms.untracked.PSet(
9 PFTauDiscriminators = cms.untracked.VInputTag(
10 cms.InputTag(
"hpsPFTauDiscriminationByDecayModeFinding"),
11 cms.InputTag(
"hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
12 cms.InputTag(
"hpsPFTauDiscriminationByLooseMuonRejection3"),
13 cms.InputTag(
"hpsPFTauDiscriminationByMVA6TightElectronRejection")
15 doPFTaus = cms.untracked.bool(
True),
16 ptMin = cms.untracked.double(15.0),
17 etaMin = cms.untracked.double(-2.5),
18 etaMax = cms.untracked.double(2.5),
19 phiMin = cms.untracked.double(-3.15),
20 phiMax = cms.untracked.double(3.15),
21 PFTauProducer = cms.untracked.InputTag(
"hpsPFTauProducer")
23 Electrons = cms.untracked.PSet(
24 ElectronCollection = cms.untracked.InputTag(
"gedGsfElectrons"),
25 doID = cms.untracked.bool(
False),
26 InnerConeDR = cms.untracked.double(0.02),
27 MaxIsoVar = cms.untracked.double(0.02),
28 doElectrons = cms.untracked.bool(
True),
29 TrackCollection = cms.untracked.InputTag(
"generalTracks"),
30 OuterConeDR = cms.untracked.double(0.6),
31 ptMin = cms.untracked.double(15.0),
32 doTrackIso = cms.untracked.bool(
True),
33 ptMinTrack = cms.untracked.double(1.5),
34 lipMinTrack = cms.untracked.double(0.2),
35 IdCollection = cms.untracked.InputTag(
"elecIDext")
37 Jets = cms.untracked.PSet(
38 JetCollection = cms.untracked.InputTag(
"ak4PFJetsCHS"),
39 etMin = cms.untracked.double(15.0),
40 doJets = cms.untracked.bool(
False)
42 Towers = cms.untracked.PSet(
43 TowerCollection = cms.untracked.InputTag(
"towerMaker"),
44 etMin = cms.untracked.double(10.0),
45 doTowers = cms.untracked.bool(
False),
46 towerIsolation = cms.untracked.double(5.0)
49 Muons = cms.untracked.PSet(
50 doMuons = cms.untracked.bool(
True),
51 MuonCollection = cms.untracked.InputTag(
"muons"),
52 ptMin = cms.untracked.double(15.0)
55 Photons = cms.untracked.PSet(
56 doPhotons = cms.untracked.bool(
False),
57 PhotonCollection = cms.untracked.InputTag(
"gedPhotons"),
58 etMin = cms.untracked.double(15.0),
59 ECALIso = cms.untracked.double(3.0)
62 MET = cms.untracked.PSet(
63 doMET = cms.untracked.bool(
True),
64 METCollection = cms.untracked.InputTag(
"caloMet"),
65 ptMin = cms.untracked.double(0.0)
68 EtaMin = cms.untracked.double(-2.3),
69 EtaMax = cms.untracked.double(2.3),
70 PhiMin = cms.untracked.double(-3.15),
71 PhiMax = cms.untracked.double(3.15)
76 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
77 hltTauOfflineMonitor_PFTaus =
DQMEDAnalyzer(
'HLTTauDQMOfflineSource',
78 HLTProcessName = cms.untracked.string(hltTauDQMofflineProcess),
79 DQMBaseFolder = cms.untracked.string(
"HLT/TAU/PFTaus"),
80 TriggerResultsSrc = cms.untracked.InputTag(
"TriggerResults",
"", hltTauDQMofflineProcess),
81 TriggerEventSrc = cms.untracked.InputTag(
"hltTriggerSummaryAOD",
"", hltTauDQMofflineProcess),
82 L1Plotter = cms.untracked.PSet(
83 DQMFolder = cms.untracked.string(
'L1'),
84 L1Taus = cms.untracked.InputTag(
"caloStage2Digis",
"Tau"),
85 L1ETM = cms.untracked.InputTag(
"caloStage2Digis",
"EtSum"),
86 L1ETMMin = cms.untracked.double(50),
88 Paths = cms.untracked.string(
"PFTau"),
89 PtHistoBins = cms.untracked.int32(50),
90 PtHistoMax = cms.untracked.double(500),
91 PathSummaryPlotter = cms.untracked.PSet(
92 DQMFolder = cms.untracked.string(
'Summary'),
95 doMatching = cms.untracked.bool(
True),
96 matchFilters = cms.untracked.VPSet(
98 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"PFTaus"),
99 matchObjectID = cms.untracked.int32(15),
102 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"Electrons"),
103 matchObjectID = cms.untracked.int32(11),
106 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"Muons"),
107 matchObjectID = cms.untracked.int32(13),
110 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"MET"),
111 matchObjectID = cms.untracked.int32(0),
117 hltTauOfflineMonitor_Inclusive = hltTauOfflineMonitor_PFTaus.clone(
118 DQMBaseFolder =
"HLT/TAU/Inclusive",
120 doMatching = cms.untracked.bool(
False),
121 matchFilters = cms.untracked.VPSet(),
126 genericTriggerSelectionParameters = cms.PSet(
127 andOr = cms.bool(
False ),
128 dbLabel = cms.string(
"PFTauDQMTrigger"),
129 andOrHlt = cms.bool(
True),
130 hltInputTag = cms.InputTag(
"TriggerResults",
"", hltTauDQMofflineProcess),
132 errorReplyHlt = cms.bool(
False),
133 verbosityLevel = cms.uint32(0)
135 return genericTriggerSelectionParameters
138 hltTauOfflineMonitor_TagAndProbe = hltTauOfflineMonitor_PFTaus.clone(
139 DQMBaseFolder = cms.untracked.string(
"HLT/TAU/TagAndProbe"),
141 doMatching = cms.untracked.bool(
True),
142 matchFilters = cms.untracked.VPSet(
144 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"PFTaus"),
145 matchObjectID = cms.untracked.int32(15),
148 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"Electrons"),
149 matchObjectID = cms.untracked.int32(11),
152 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"Muons"),
153 matchObjectID = cms.untracked.int32(13),
156 FilterName = cms.untracked.InputTag(
"TauRefProducer",
"MET"),
157 matchObjectID = cms.untracked.int32(0),
161 TagAndProbe = cms.untracked.VPSet(
163 name = cms.string(
'MuTauTemplate'),
164 xvariable = cms.string(
'Tau'),
165 nPtBins = cms.int32(20),
166 ptmin = cms.double(0.),
167 ptmax = cms.double(200.),
168 nEtaBins = cms.int32(20),
169 etamin = cms.double(-2.5),
170 etamax = cms.double(2.5),
171 nPhiBins = cms.int32(20),
172 phimin = cms.double(-3.15),
173 phimax = cms.double(3.15),
178 name = cms.string(
'ETauTemplate'),
179 xvariable = cms.string(
'Tau'),
180 nPtBins = cms.int32(20),
181 ptmin = cms.double(0.),
182 ptmax = cms.double(200.),
183 nEtaBins = cms.int32(20),
184 etamin = cms.double(-2.5),
185 etamax = cms.double(2.5),
186 nPhiBins = cms.int32(20),
187 phimin = cms.double(-3.15),
188 phimax = cms.double(3.15),
193 name = cms.string(
'TauMETTemplate'),
194 xvariable = cms.string(
'MET'),
195 nPtBins = cms.int32(50),
196 ptmin = cms.double(0.),
197 ptmax = cms.double(500.),
198 nPhiBins = cms.int32(20),
199 phimin = cms.double(-3.15),
200 phimax = cms.double(3.15),
205 name = cms.string(
'IsoMu20_eta2p1'),
206 xvariable = cms.string(
'Muon'),
207 nPtBins = cms.int32(20),
208 ptmin = cms.double(0.),
209 ptmax = cms.double(200.),
210 nEtaBins = cms.int32(20),
211 etamin = cms.double(-2.5),
212 etamax = cms.double(2.5),
213 nPhiBins = cms.int32(20),
214 phimin = cms.double(-3.15),
215 phimax = cms.double(3.15),
218 nOfflObjs = cms.untracked.uint32(2)
221 name = cms.string(
'IsoMu24_eta2p1'),
222 xvariable = cms.string(
'Muon'),
223 nPtBins = cms.int32(20),
224 ptmin = cms.double(0.),
225 ptmax = cms.double(200.),
226 nEtaBins = cms.int32(20),
227 etamin = cms.double(-2.5),
228 etamax = cms.double(2.5),
229 nPhiBins = cms.int32(20),
230 phimin = cms.double(-3.15),
231 phimax = cms.double(3.15),
236 name = cms.string(
'Ele24_eta2p1_WPTight_Gsf'),
237 xvariable = cms.string(
'Electron'),
238 nPtBins = cms.int32(20),
239 ptmin = cms.double(0.),
240 ptmax = cms.double(200.),
241 nEtaBins = cms.int32(20),
242 etamin = cms.double(-2.5),
243 etamax = cms.double(2.5),
244 nPhiBins = cms.int32(20),
245 phimin = cms.double(-3.15),
246 phimax = cms.double(3.15),
def TriggerSelectionParameters(hltpaths)