1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
3 import RecoTracker.IterativeTracking.iterativeTkUtils
as _utils
15 for tracks
in selectedTracks :
16 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
17 locals()[label] = TrackerCollisionTrackMonCommon.clone()
18 locals()[label].TrackProducer = cms.InputTag(tracks)
19 locals()[label].allTrackProducer = cms.InputTag(allTrackProducer[tracks])
20 locals()[label].FolderName = cms.string(mainfolderName[tracks])
21 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
22 locals()[label].TrackPtMin = trackPtMin[tracks]
23 locals()[label].TrackPtBin = trackPtN[tracks]
24 locals()[label].TrackPtMax = trackPtMax[tracks]
25 locals()[label].TrackPBin = trackPtN[tracks]
26 locals()[label].TrackPMin = trackPtMin[tracks]
27 locals()[label].TrackPMax = trackPtMax[tracks]
28 locals()[label].doDCAPlots = doPlotsPCA[tracks]
29 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
30 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
31 locals()[label].doSIPPlots = doPlotsPCA[tracks]
32 locals()[label].numCut = numCutString[tracks]
33 locals()[label].denCut = denCutString[tracks]
34 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
35 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
36 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
37 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
38 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
39 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
40 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
41 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
42 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
43 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
44 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
45 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
46 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
47 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
48 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
49 locals()[label].doEffFromHitPatternVsLUMI = doEffFromHitPatternVsLumi [tracks]
50 if tracks ==
'generalTracks':
51 locals()[label].doEffFromHitPatternVsBX =
False 53 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX[tracks]
55 locals()[label].setLabel(label)
58 label =
'TrackerCollisionSelectedTrackMonMB' +
str(tracks)
59 locals()[label] = TrackerCollisionTrackMonMB.clone()
60 locals()[label].TrackProducer = cms.InputTag(tracks)
61 locals()[label].FolderName = cms.string(mainfolderName[tracks])
62 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
63 locals()[label].TrackPtMin = trackPtMin[tracks]
64 locals()[label].TrackPtBin = trackPtN[tracks]
65 locals()[label].TrackPtMax = trackPtMax[tracks]
66 locals()[label].TrackPBin = trackPtN[tracks]
67 locals()[label].TrackPMin = trackPtMin[tracks]
68 locals()[label].TrackPMax = trackPtMax[tracks]
69 locals()[label].doDCAPlots = doPlotsPCA[tracks]
70 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
71 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
72 locals()[label].doSIPPlots = doPlotsPCA[tracks]
73 locals()[label].numCut = numCutString[tracks]
74 locals()[label].denCut = denCutString[tracks]
75 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
76 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
77 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
78 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
79 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
80 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
81 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
82 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
83 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
84 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
85 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
86 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
87 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
88 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
89 locals()[label].doPlotsVsLUMI = cms.bool(
True)
90 locals()[label].doPlotsVsBX = cms.bool(
True)
91 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
92 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
93 locals()[label].doEffFromHitPatternVsLUMI = cms.bool(
True)
94 locals()[label].doStopSource = doStopSource [tracks]
95 locals()[label].setLabel(label)
98 label =
'TrackerCollisionSelectedTrackMonZBnoHIPnoOOT' +
str(tracks)
99 locals()[label] = TrackerCollisionTrackMonZBnoHIPnoOOT.clone()
100 locals()[label].TrackProducer = cms.InputTag(tracks)
101 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/noHIP_noOOT_INpu")
102 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/noHIP_noOOT_INpu")
103 locals()[label].TrackPtMin = trackPtMin[tracks]
104 locals()[label].TrackPtBin = trackPtN[tracks]
105 locals()[label].TrackPtMax = trackPtMax[tracks]
106 locals()[label].TrackPBin = trackPtN[tracks]
107 locals()[label].TrackPMin = trackPtMin[tracks]
108 locals()[label].TrackPMax = trackPtMax[tracks]
109 locals()[label].doDCAPlots = doPlotsPCA[tracks]
110 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
111 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
112 locals()[label].doSIPPlots = doPlotsPCA[tracks]
113 locals()[label].numCut = numCutString[tracks]
114 locals()[label].denCut = denCutString[tracks]
115 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
116 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
117 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
118 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
119 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
120 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
121 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
122 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
123 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
124 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
125 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
126 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
127 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
128 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
129 locals()[label].doPlotsVsLUMI = cms.bool(
True)
130 locals()[label].doPlotsVsBX = cms.bool(
True)
131 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
132 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
133 locals()[label].doEffFromHitPatternVsLUMI =
False 134 locals()[label].doStopSource = doStopSource [tracks]
135 locals()[label].setLabel(label)
138 label =
'TrackerCollisionSelectedTrackMonZBHIPnoOOT' +
str(tracks)
139 locals()[label] = TrackerCollisionTrackMonZBHIPnoOOT.clone()
140 locals()[label].TrackProducer = cms.InputTag(tracks)
141 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/HIP_noOOT_INpu")
142 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/HIP_noOOT_INpu")
143 locals()[label].TrackPtMin = trackPtMin[tracks]
144 locals()[label].TrackPtBin = trackPtN[tracks]
145 locals()[label].TrackPtMax = trackPtMax[tracks]
146 locals()[label].TrackPBin = trackPtN[tracks]
147 locals()[label].TrackPMin = trackPtMin[tracks]
148 locals()[label].TrackPMax = trackPtMax[tracks]
149 locals()[label].doDCAPlots = doPlotsPCA[tracks]
150 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
151 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
152 locals()[label].doSIPPlots = doPlotsPCA[tracks]
153 locals()[label].numCut = numCutString[tracks]
154 locals()[label].denCut = denCutString[tracks]
155 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
156 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
157 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
158 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
159 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
160 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
161 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
162 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
163 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
164 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
165 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
166 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
167 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
168 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
169 locals()[label].doPlotsVsLUMI = cms.bool(
True)
170 locals()[label].doPlotsVsBX = cms.bool(
True)
171 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
172 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
173 locals()[label].doEffFromHitPatternVsLUMI =
False 174 locals()[label].doStopSource = doStopSource [tracks]
175 locals()[label].setLabel(label)
179 label =
'TrackerCollisionSelectedTrackMonZBHIPOOT' +
str(tracks)
180 locals()[label] = TrackerCollisionTrackMonZBHIPOOT.clone()
181 locals()[label].TrackProducer = cms.InputTag(tracks)
182 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/HIP_OOT_noINpu")
183 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/HIP_OOT_noINpu")
184 locals()[label].TrackPtMin = trackPtMin[tracks]
185 locals()[label].TrackPtBin = trackPtN[tracks]
186 locals()[label].TrackPtMax = trackPtMax[tracks]
187 locals()[label].TrackPBin = trackPtN[tracks]
188 locals()[label].TrackPMin = trackPtMin[tracks]
189 locals()[label].TrackPMax = trackPtMax[tracks]
190 locals()[label].doDCAPlots = doPlotsPCA[tracks]
191 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
192 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
193 locals()[label].doSIPPlots = doPlotsPCA[tracks]
194 locals()[label].numCut = numCutString[tracks]
195 locals()[label].denCut = denCutString[tracks]
196 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
197 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
198 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
199 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
200 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
201 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
202 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
203 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
204 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
205 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
206 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
207 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
208 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
209 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
210 locals()[label].doPlotsVsLUMI = cms.bool(
True)
211 locals()[label].doPlotsVsBX = cms.bool(
True)
212 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
213 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
214 locals()[label].doEffFromHitPatternVsLUMI =
False 215 locals()[label].doStopSource = doStopSource [tracks]
216 locals()[label].setLabel(label)
222 import DQM.TrackingMonitor.TrackingMonitorSeed_cfi
228 if hasattr(pset, name):
229 setattr(mod, name, getattr(pset, name))
230 for _step, _pset
in seedMonitoring.iteritems():
231 _mod = DQM.TrackingMonitor.TrackingMonitorSeed_cfi.TrackMonSeed.clone(
232 doTrackCandHistos = cms.bool(
True)
234 locals()[
'TrackSeedMon'+
str(_step)] = _mod
235 _mod.TrackProducer = cms.InputTag(
"generalTracks")
236 _mod.FolderName = cms.string(
"Tracking/TrackParameters/generalTracks")
237 _mod.SeedProducer = _pset.seedInputTag
238 _mod.TCProducer = _pset.trackCandInputTag
239 _mod.AlgoName = cms.string(
str(_step) )
240 _mod.TkSeedSizeBin = _pset.trackSeedSizeBin
241 _mod.TkSeedSizeMin = _pset.trackSeedSizeMin
242 _mod.TkSeedSizeMax = _pset.trackSeedSizeMax
243 _mod.ClusterLabels = _pset.clusterLabel
244 if _pset.clusterLabel == cms.vstring(
'Pix') :
245 _mod.NClusPxBin = _pset.clusterBin
246 _mod.NClusPxMax = _pset.clusterMax
247 elif _pset.clusterLabel == cms.vstring(
'Strip')
or _pset.clusterLabel == cms.vstring(
'Tot') :
248 _mod.NClusStrBin = _pset.clusterBin
249 _mod.NClusStrMax = _pset.clusterMax
250 if hasattr(_pset,
"RegionProducer")
or hasattr(_pset,
"RegionSeedingLayersProducer"):
251 _mod.doRegionPlots =
True 256 if hasattr(_pset,
"RegionCandidates"):
257 _mod.doRegionCandidatePlots =
True 258 _mod.RegionCandidates = _pset.RegionCandidates
259 if hasattr(_pset,
"trajCandPerSeedBin"):
260 _mod.SeedCandBin = _pset.trajCandPerSeedBin
261 _mod.SeedCandMax = _pset.trajCandPerSeedMax
264 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
266 subSystemFolder = cms.untracked.string(
'Tracking')
276 for module
in selectedModules :
277 label =
str(module)+
'LogMessageMonCommon' 278 locals()[label] = LogMessageMonCommon.clone()
279 locals()[label].pluginsMonName = pluginsMonName[module]
280 locals()[label].modules = modulesLabel[module]
281 locals()[label].categories = categories[module]
282 locals()[label].setLabel(label)
284 label =
str(module)+
'LogMessageMonMB' 285 locals()[label] = LogMessageMonMB.clone()
286 locals()[label].pluginsMonName = pluginsMonName[module]
287 locals()[label].modules = modulesLabel[module]
288 locals()[label].categories = categories[module]
289 locals()[label].setLabel(label)
310 trackingDQMgoodOfflinePrimaryVertices = goodOfflinePrimaryVertices.clone()
316 TrackingDQMSourceTier0 = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
318 TrackingDQMSourceTier0 += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon
322 for tracks
in selectedTracks :
323 if tracks !=
'generalTracks':
324 TrackingDQMSourceTier0 += cms.ignore(sequenceName[tracks])
325 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
326 TrackingDQMSourceTier0 += cms.ignore(locals()[label])
328 for _eraName, _postfix, _era
in _cfg.allEras():
329 mvaSel = _utils.getMVASelectors(_postfix)
330 _seq = cms.Sequence()
331 for step
in locals()[
"selectedIterTrackingStep"+_postfix]:
333 locals()[
"TrackSeedMon"+step].doMVAPlots =
True 334 locals()[
"TrackSeedMon"+step].TrackProducerForMVA = mvaSel[step][0]
335 locals()[
"TrackSeedMon"+step].MVAProducers = mvaSel[step][1]
337 _seq += locals()[
"TrackSeedMon"+step]
339 locals()[
"TrackSeedMonSequence"] = _seq
341 _era.toReplaceWith(TrackSeedMonSequence, _seq)
342 TrackingDQMSourceTier0 += TrackSeedMonSequence
344 for module
in selectedModules :
345 label =
str(module)+
'LogMessageMonCommon' 346 TrackingDQMSourceTier0 += locals()[label]
347 TrackingDQMSourceTier0 += voMonitoringSequence
348 TrackingDQMSourceTier0 += voWcutMonitoringSequence
349 TrackingDQMSourceTier0 += primaryVertexResolution
350 TrackingDQMSourceTier0 += dqmInfoTracking
353 TrackingDQMSourceTier0Common = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
355 TrackingDQMSourceTier0Common += (dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon)
357 for tracks
in selectedTracks :
358 if tracks !=
'generalTracks':
359 TrackingDQMSourceTier0Common+=cms.ignore(sequenceName[tracks])
360 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
361 TrackingDQMSourceTier0Common += cms.ignore(locals()[label])
363 TrackingDQMSourceTier0Common += TrackSeedMonSequence
365 for module
in selectedModules :
366 label =
str(module)+
'LogMessageMonCommon' 367 TrackingDQMSourceTier0Common += locals()[label]
368 TrackingDQMSourceTier0Common += voMonitoringCommonSequence
369 TrackingDQMSourceTier0Common += voWcutMonitoringCommonSequence
370 TrackingDQMSourceTier0Common += primaryVertexResolution
371 TrackingDQMSourceTier0Common += dqmInfoTracking
373 TrackingDQMSourceTier0MinBias = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
375 TrackingDQMSourceTier0MinBias += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon
378 for tracks
in selectedTracks :
379 if tracks !=
'generalTracks':
380 TrackingDQMSourceTier0MinBias += cms.ignore(sequenceName[tracks])
382 for topology
in [
'MB',
'ZBnoHIPnoOOT',
'ZBHIPnoOOT',
'ZBHIPOOT']:
383 label =
'TrackerCollisionSelectedTrackMon' +
str(topology) +
str(tracks)
384 TrackingDQMSourceTier0MinBias += cms.ignore(locals()[label])
386 TrackingDQMSourceTier0MinBias += TrackSeedMonSequence
388 for module
in selectedModules :
389 label =
str(module)+
'LogMessageMonMB' 390 TrackingDQMSourceTier0MinBias += locals()[label]
392 TrackingDQMSourceTier0MinBias += voMonitoringMBSequence
393 TrackingDQMSourceTier0MinBias += voMonitoringZBnoHIPnoOOTSequence
394 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPnoOOTSequence
395 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPOOTSequence
396 TrackingDQMSourceTier0MinBias += voWcutMonitoringMBSequence
397 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBnoHIPnoOOTSequence
398 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPnoOOTSequence
399 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPOOTSequence
401 TrackingDQMSourceTier0MinBias += primaryVertexResolution
403 TrackingDQMSourceTier0MinBias += dqmInfoTracking
load the different flavour of settings of the dEdxAnalyzer module
load which are the tracks collection 2 be monitored
load the different flavour of settings of the LogMessageMonitor module
def _copyIfExists(mod, pset, name)
load which are the module to monitor
load the different flavour of settings of the TrackingMonitor module