1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
14 for tracks
in selectedTracks :
15 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
16 locals()[label] = TrackerCollisionTrackMonCommon.clone()
17 locals()[label].TrackProducer = cms.InputTag(tracks)
18 locals()[label].FolderName = cms.string(mainfolderName[tracks])
19 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
20 locals()[label].TrackPtMin = trackPtMin[tracks]
21 locals()[label].TrackPtBin = trackPtN[tracks]
22 locals()[label].TrackPtMax = trackPtMax[tracks]
23 locals()[label].TrackPBin = trackPtN[tracks]
24 locals()[label].TrackPMin = trackPtMin[tracks]
25 locals()[label].TrackPMax = trackPtMax[tracks]
26 locals()[label].doDCAPlots = doPlotsPCA[tracks]
27 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
28 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
29 locals()[label].doSIPPlots = doPlotsPCA[tracks]
30 locals()[label].numCut = numCutString[tracks]
31 locals()[label].denCut = denCutString[tracks]
32 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
33 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
34 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
35 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
36 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
37 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
38 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
39 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
40 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
41 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
42 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
43 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
44 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
45 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
46 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
47 if tracks ==
'generalTracks':
48 locals()[label].doEffFromHitPatternVsBX =
False 50 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX[tracks]
52 locals()[label].setLabel(label)
55 label =
'TrackerCollisionSelectedTrackMonMB' +
str(tracks)
56 locals()[label] = TrackerCollisionTrackMonMB.clone()
57 locals()[label].TrackProducer = cms.InputTag(tracks)
58 locals()[label].FolderName = cms.string(mainfolderName[tracks])
59 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
60 locals()[label].TrackPtMin = trackPtMin[tracks]
61 locals()[label].TrackPtBin = trackPtN[tracks]
62 locals()[label].TrackPtMax = trackPtMax[tracks]
63 locals()[label].TrackPBin = trackPtN[tracks]
64 locals()[label].TrackPMin = trackPtMin[tracks]
65 locals()[label].TrackPMax = trackPtMax[tracks]
66 locals()[label].doDCAPlots = doPlotsPCA[tracks]
67 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
68 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
69 locals()[label].doSIPPlots = doPlotsPCA[tracks]
70 locals()[label].numCut = numCutString[tracks]
71 locals()[label].denCut = denCutString[tracks]
72 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
73 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
74 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
75 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
76 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
77 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
78 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
79 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
80 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
81 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
82 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
83 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
84 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
85 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
86 locals()[label].doPlotsVsLUMI = cms.bool(
True)
87 locals()[label].doPlotsVsBX = cms.bool(
True)
88 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
89 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
90 locals()[label].doEffFromHitPatternVsLUMI = cms.bool(
True)
91 locals()[label].doStopSource = doStopSource [tracks]
92 locals()[label].setLabel(label)
95 label =
'TrackerCollisionSelectedTrackMonZBnoHIPnoOOT' +
str(tracks)
96 locals()[label] = TrackerCollisionTrackMonZBnoHIPnoOOT.clone()
97 locals()[label].TrackProducer = cms.InputTag(tracks)
98 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/noHIP_noOOT_INpu")
99 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/noHIP_noOOT_INpu")
100 locals()[label].TrackPtMin = trackPtMin[tracks]
101 locals()[label].TrackPtBin = trackPtN[tracks]
102 locals()[label].TrackPtMax = trackPtMax[tracks]
103 locals()[label].TrackPBin = trackPtN[tracks]
104 locals()[label].TrackPMin = trackPtMin[tracks]
105 locals()[label].TrackPMax = trackPtMax[tracks]
106 locals()[label].doDCAPlots = doPlotsPCA[tracks]
107 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
108 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
109 locals()[label].doSIPPlots = doPlotsPCA[tracks]
110 locals()[label].numCut = numCutString[tracks]
111 locals()[label].denCut = denCutString[tracks]
112 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
113 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
114 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
115 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
116 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
117 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
118 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
119 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
120 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
121 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
122 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
123 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
124 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
125 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
126 locals()[label].doPlotsVsLUMI = cms.bool(
True)
127 locals()[label].doPlotsVsBX = cms.bool(
True)
128 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
129 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
130 locals()[label].doEffFromHitPatternVsLUMI = cms.bool(
True)
131 locals()[label].doStopSource = doStopSource [tracks]
132 locals()[label].setLabel(label)
135 label =
'TrackerCollisionSelectedTrackMonZBHIPnoOOT' +
str(tracks)
136 locals()[label] = TrackerCollisionTrackMonZBHIPnoOOT.clone()
137 locals()[label].TrackProducer = cms.InputTag(tracks)
138 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/HIP_noOOT_INpu")
139 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/HIP_noOOT_INpu")
140 locals()[label].TrackPtMin = trackPtMin[tracks]
141 locals()[label].TrackPtBin = trackPtN[tracks]
142 locals()[label].TrackPtMax = trackPtMax[tracks]
143 locals()[label].TrackPBin = trackPtN[tracks]
144 locals()[label].TrackPMin = trackPtMin[tracks]
145 locals()[label].TrackPMax = trackPtMax[tracks]
146 locals()[label].doDCAPlots = doPlotsPCA[tracks]
147 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
148 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
149 locals()[label].doSIPPlots = doPlotsPCA[tracks]
150 locals()[label].numCut = numCutString[tracks]
151 locals()[label].denCut = denCutString[tracks]
152 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
153 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
154 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
155 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
156 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
157 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
158 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
159 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
160 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
161 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
162 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
163 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
164 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
165 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
166 locals()[label].doPlotsVsLUMI = cms.bool(
True)
167 locals()[label].doPlotsVsBX = cms.bool(
True)
168 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
169 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
170 locals()[label].doEffFromHitPatternVsLUMI = cms.bool(
True)
171 locals()[label].doStopSource = doStopSource [tracks]
172 locals()[label].setLabel(label)
176 label =
'TrackerCollisionSelectedTrackMonZBHIPOOT' +
str(tracks)
177 locals()[label] = TrackerCollisionTrackMonZBHIPOOT.clone()
178 locals()[label].TrackProducer = cms.InputTag(tracks)
179 locals()[label].FolderName = cms.string(mainfolderName[tracks]+
"/HIP_OOT_noINpu")
180 locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+
"/HIP_OOT_noINpu")
181 locals()[label].TrackPtMin = trackPtMin[tracks]
182 locals()[label].TrackPtBin = trackPtN[tracks]
183 locals()[label].TrackPtMax = trackPtMax[tracks]
184 locals()[label].TrackPBin = trackPtN[tracks]
185 locals()[label].TrackPMin = trackPtMin[tracks]
186 locals()[label].TrackPMax = trackPtMax[tracks]
187 locals()[label].doDCAPlots = doPlotsPCA[tracks]
188 locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
189 locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
190 locals()[label].doSIPPlots = doPlotsPCA[tracks]
191 locals()[label].numCut = numCutString[tracks]
192 locals()[label].denCut = denCutString[tracks]
193 locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
194 locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
195 locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
196 locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
197 locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
198 locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
199 locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
200 locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
201 locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
202 locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
203 locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
204 locals()[label].doPUmonitoring = doPUmonitoring [tracks]
205 locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
206 locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
207 locals()[label].doPlotsVsLUMI = cms.bool(
True)
208 locals()[label].doPlotsVsBX = cms.bool(
True)
209 locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
210 locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
211 locals()[label].doEffFromHitPatternVsLUMI = cms.bool(
True)
212 locals()[label].doStopSource = doStopSource [tracks]
213 locals()[label].setLabel(label)
219 import DQM.TrackingMonitor.TrackingMonitorSeed_cfi
224 for step
in seedInputTag.iterkeys():
225 label =
'TrackSeedMon'+
str(step)
226 locals()[label] = DQM.TrackingMonitor.TrackingMonitorSeed_cfi.TrackMonSeed.clone(
227 doTrackCandHistos = cms.bool(
True)
229 locals()[label].TrackProducer = cms.InputTag(
"generalTracks")
230 locals()[label].FolderName = cms.string(
"Tracking/TrackParameters/generalTracks")
231 locals()[label].SeedProducer = seedInputTag[step]
232 locals()[label].TCProducer = trackCandInputTag[step]
233 locals()[label].AlgoName = cms.string(
str(step) )
234 locals()[label].TkSeedSizeBin = trackSeedSizeBin[step]
235 locals()[label].TkSeedSizeMin = trackSeedSizeMin[step]
236 locals()[label].TkSeedSizeMax = trackSeedSizeMax[step]
237 locals()[label].ClusterLabels = clusterLabel[step]
238 if clusterLabel[step] == cms.vstring(
'Pix') :
239 locals()[label].NClusPxBin = clusterBin[step]
240 locals()[label].NClusPxMax = clusterMax[step]
241 elif clusterLabel[step] == cms.vstring(
'Strip')
or clusterLabel[step] == cms.vstring(
'Tot') :
242 locals()[label].NClusStrBin = clusterBin[step]
243 locals()[label].NClusStrMax = clusterMax[step]
246 dqmInfoTracking = cms.EDAnalyzer(
"DQMEventInfo",
247 subSystemFolder = cms.untracked.string(
'Tracking')
257 for module
in selectedModules :
258 label =
str(module)+
'LogMessageMonCommon' 259 locals()[label] = LogMessageMonCommon.clone()
260 locals()[label].pluginsMonName = pluginsMonName[module]
261 locals()[label].modules = modulesLabel[module]
262 locals()[label].categories = categories[module]
263 locals()[label].setLabel(label)
265 label =
str(module)+
'LogMessageMonMB' 266 locals()[label] = LogMessageMonMB.clone()
267 locals()[label].pluginsMonName = pluginsMonName[module]
268 locals()[label].modules = modulesLabel[module]
269 locals()[label].categories = categories[module]
270 locals()[label].setLabel(label)
291 from PhysicsTools.SelectorUtils.pvSelector_cfi
import pvSelector
293 trackingDQMgoodOfflinePrimaryVertices = goodOfflinePrimaryVertices.clone()
294 trackingDQMgoodOfflinePrimaryVertices.filterParams = pvSelector.clone( minNdof = cms.double(4.0), maxZ = cms.double(24.0) )
295 trackingDQMgoodOfflinePrimaryVertices.src=cms.InputTag(
'offlinePrimaryVertices')
296 trackingDQMgoodOfflinePrimaryVertices.filter = cms.bool(
False)
300 TrackingDQMSourceTier0 = cms.Sequence()
302 TrackingDQMSourceTier0 += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon
306 for tracks
in selectedTracks :
307 if tracks !=
'generalTracks':
308 TrackingDQMSourceTier0 += cms.ignore(sequenceName[tracks])
309 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
310 TrackingDQMSourceTier0 += cms.ignore(locals()[label])
312 for _eraName, _postfix, _era
in _cfg.allEras():
313 _seq = cms.Sequence()
314 for step
in locals()[
"selectedIterTrackingStep"+_postfix]:
315 _seq += locals()[
"TrackSeedMon"+step]
317 locals()[
"TrackSeedMonSequence"] = _seq
319 _era.toReplaceWith(TrackSeedMonSequence, _seq)
320 TrackingDQMSourceTier0 += TrackSeedMonSequence
322 for module
in selectedModules :
323 label =
str(module)+
'LogMessageMonCommon' 324 TrackingDQMSourceTier0 += locals()[label]
325 TrackingDQMSourceTier0 += voMonitoringSequence
326 TrackingDQMSourceTier0 += voWcutMonitoringSequence
327 TrackingDQMSourceTier0 += dqmInfoTracking
330 TrackingDQMSourceTier0Common = cms.Sequence()
332 TrackingDQMSourceTier0Common += (dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon)
334 for tracks
in selectedTracks :
335 if tracks !=
'generalTracks':
336 TrackingDQMSourceTier0Common+=cms.ignore(sequenceName[tracks])
337 label =
'TrackerCollisionSelectedTrackMonCommon' +
str(tracks)
338 TrackingDQMSourceTier0Common += cms.ignore(locals()[label])
340 TrackingDQMSourceTier0Common += TrackSeedMonSequence
342 for module
in selectedModules :
343 label =
str(module)+
'LogMessageMonCommon' 344 TrackingDQMSourceTier0Common += locals()[label]
345 TrackingDQMSourceTier0Common += voMonitoringCommonSequence
346 TrackingDQMSourceTier0Common += voWcutMonitoringCommonSequence
347 TrackingDQMSourceTier0Common += dqmInfoTracking
349 TrackingDQMSourceTier0MinBias = cms.Sequence()
351 TrackingDQMSourceTier0MinBias += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon
355 for tracks
in selectedTracks :
356 if tracks !=
'generalTracks':
357 TrackingDQMSourceTier0MinBias += cms.ignore(sequenceName[tracks])
359 for topology
in [
'MB',
'ZBnoHIPnoOOT',
'ZBHIPnoOOT',
'ZBHIPOOT']:
360 label =
'TrackerCollisionSelectedTrackMon' +
str(topology) +
str(tracks)
361 TrackingDQMSourceTier0MinBias += cms.ignore(locals()[label])
363 TrackingDQMSourceTier0MinBias += TrackSeedMonSequence
365 for module
in selectedModules :
366 label =
str(module)+
'LogMessageMonMB' 367 TrackingDQMSourceTier0MinBias += locals()[label]
369 TrackingDQMSourceTier0MinBias += voMonitoringMBSequence
370 TrackingDQMSourceTier0MinBias += voMonitoringZBnoHIPnoOOTSequence
371 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPnoOOTSequence
372 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPOOTSequence
373 TrackingDQMSourceTier0MinBias += voWcutMonitoringMBSequence
374 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBnoHIPnoOOTSequence
375 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPnoOOTSequence
376 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPOOTSequence
378 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
load which are the module to monitor
load the different flavour of settings of the TrackingMonitor module