CMS 3D CMS Logo

TrackingSourceConfig_Tier0_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
3 import RecoTracker.IterativeTracking.iterativeTkUtils as _utils
4 import six
5 
6 ### load which are the tracks collection 2 be monitored
8 
9 ### load the different flavour of settings of the TrackingMonitor module
11 
12 #import DQM.TrackingMonitor.TrackerCosmicsTrackingMonitor_cfi
13 import DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi
14 TrackMon_ckf = DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi.TrackEffMon.clone()
15 TrackMon_ckf.TKTrackCollection = 'generalTracks'#ctfWithMaterialTracksBeamHaloMuon'#rsWithMaterialTracksP5'#muons'#globalCosmicMuons'#ctfWithMaterialTracksP5'
16 TrackMon_ckf.AlgoName = 'CKFTk'
17 TrackMon_ckf.FolderName = 'Tracking/TrackParameters'
18 
19 # Clone for RS Tracks
20 #import DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi
21 #TrackEffMon_rs = DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi.TrackEffMon.clone()
22 #TrackEffMon_rs.TKTrackCollection = 'rsWithMaterialTracksP5'
23 #TrackEffMon_rs.AlgoName = 'RSTk'
24 #TrackEffMon_rs.FolderName = 'Tracking/TrackParameters/TrackEfficiency'
25 
26 # Clone for Beam Halo Tracks
27 #import DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi
28 #TrackEffMon_bhmuon = DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi.TrackEffMon.clone()
29 #TrackEffMon_bhmuon.TKTrackCollection = 'ctfWithMaterialTracksBeamHaloMuon'
30 #TrackEffMon_bhmuon.AlgoName = 'BHMuonTk'
31 #TrackEffMon_bhmuon.FolderName = 'Tracking/TrackParameters/TrackEfficiency'
32 
33 # Split Tracking
35 TrackSplitMonitor.FolderName = 'Tracking/TrackParameters/SplitTracks'
36 
37 
38 # DQM Services
39 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
40 dqmInfoTracking = DQMEDAnalyzer('DQMEventInfo',
41  subSystemFolder = cms.untracked.string('Tracking')
42 )
43 
44 
45 ### define one EDAnalyzer per each track collection
46 ### following suggestion 2. in
47 ### https://hypernews.cern.ch/HyperNews/CMS/get/sw-develtools/1908/1.html
48 for tracks in selectedTracks :
49  label = 'TrackerCollisionSelectedTrackMonCommon' + str(tracks)
50  locals()[label] = TrackerCollisionTrackMonCommon.clone()
51  locals()[label].TrackProducer = cms.InputTag(tracks)
52  locals()[label].allTrackProducer = cms.InputTag(allTrackProducer[tracks])
53  locals()[label].FolderName = cms.string(mainfolderName[tracks])
54  locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
55  locals()[label].TrackPtMin = trackPtMin[tracks]
56  locals()[label].TrackPtBin = trackPtN[tracks]
57  locals()[label].TrackPtMax = trackPtMax[tracks]
58  locals()[label].TrackPBin = trackPtN[tracks]
59  locals()[label].TrackPMin = trackPtMin[tracks]
60  locals()[label].TrackPMax = trackPtMax[tracks]
61  locals()[label].doDCAPlots = doPlotsPCA[tracks]
62  locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
63  locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
64  locals()[label].doSIPPlots = doPlotsPCA[tracks]
65  locals()[label].numCut = numCutString[tracks]
66  locals()[label].denCut = denCutString[tracks]
67  locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
68  locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
69  locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
70  locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
71  locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
72  locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
73  locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
74  locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
75  locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
76  locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
77  locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
78  locals()[label].doPUmonitoring = doPUmonitoring [tracks]
79  locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
80  locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
81  locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
82  locals()[label].doEffFromHitPatternVsLUMI = doEffFromHitPatternVsLumi [tracks]
83  if tracks == 'generalTracks':
84  locals()[label].doEffFromHitPatternVsBX = False
85  else:
86  locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX[tracks]
87 # locals()[label].doStopSource = doStopSource [tracks]
88  locals()[label].setLabel(label)
89 
90  # ZeroBias
91  label = 'TrackerCollisionSelectedTrackMonMB' + str(tracks)
92  locals()[label] = TrackerCollisionTrackMonMB.clone()
93  locals()[label].TrackProducer = cms.InputTag(tracks)
94  locals()[label].FolderName = cms.string(mainfolderName[tracks])
95  locals()[label].PVFolderName = cms.string(vertexfolderName[tracks])
96  locals()[label].TrackPtMin = trackPtMin[tracks]
97  locals()[label].TrackPtBin = trackPtN[tracks]
98  locals()[label].TrackPtMax = trackPtMax[tracks]
99  locals()[label].TrackPBin = trackPtN[tracks]
100  locals()[label].TrackPMin = trackPtMin[tracks]
101  locals()[label].TrackPMax = trackPtMax[tracks]
102  locals()[label].doDCAPlots = doPlotsPCA[tracks]
103  locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
104  locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
105  locals()[label].doSIPPlots = doPlotsPCA[tracks]
106  locals()[label].numCut = numCutString[tracks]
107  locals()[label].denCut = denCutString[tracks]
108  locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
109  locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
110  locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
111  locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
112  locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
113  locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
114  locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
115  locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
116  locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
117  locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
118  locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
119  locals()[label].doPUmonitoring = doPUmonitoring [tracks]
120  locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
121  locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
122  locals()[label].doPlotsVsLUMI = cms.bool(True)
123  locals()[label].doPlotsVsBX = cms.bool(True)
124  locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
125  locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
126  locals()[label].doEffFromHitPatternVsLUMI = cms.bool(True)
127  locals()[label].doStopSource = doStopSource [tracks]
128  locals()[label].setLabel(label)
129 
130  # ZeroBias, no hip, no OOT pu (1st collision after abort gap) ###
131  label = 'TrackerCollisionSelectedTrackMonZBnoHIPnoOOT' + str(tracks)
132  locals()[label] = TrackerCollisionTrackMonZBnoHIPnoOOT.clone()
133  locals()[label].TrackProducer = cms.InputTag(tracks)
134  locals()[label].FolderName = cms.string(mainfolderName[tracks]+"/noHIP_noOOT_INpu")
135  locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+"/noHIP_noOOT_INpu")
136  locals()[label].TrackPtMin = trackPtMin[tracks]
137  locals()[label].TrackPtBin = trackPtN[tracks]
138  locals()[label].TrackPtMax = trackPtMax[tracks]
139  locals()[label].TrackPBin = trackPtN[tracks]
140  locals()[label].TrackPMin = trackPtMin[tracks]
141  locals()[label].TrackPMax = trackPtMax[tracks]
142  locals()[label].doDCAPlots = doPlotsPCA[tracks]
143  locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
144  locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
145  locals()[label].doSIPPlots = doPlotsPCA[tracks]
146  locals()[label].numCut = numCutString[tracks]
147  locals()[label].denCut = denCutString[tracks]
148  locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
149  locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
150  locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
151  locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
152  locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
153  locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
154  locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
155  locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
156  locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
157  locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
158  locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
159  locals()[label].doPUmonitoring = doPUmonitoring [tracks]
160  locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
161  locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
162  locals()[label].doPlotsVsLUMI = cms.bool(True)
163  locals()[label].doPlotsVsBX = cms.bool(True)
164  locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
165  locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
166  locals()[label].doEffFromHitPatternVsLUMI = False
167  locals()[label].doStopSource = doStopSource [tracks]
168  locals()[label].setLabel(label)
169 
170  # ZeroBias, hip, no OOT pu (1st collision in train) ###
171  label = 'TrackerCollisionSelectedTrackMonZBHIPnoOOT' + str(tracks)
172  locals()[label] = TrackerCollisionTrackMonZBHIPnoOOT.clone()
173  locals()[label].TrackProducer = cms.InputTag(tracks)
174  locals()[label].FolderName = cms.string(mainfolderName[tracks]+"/HIP_noOOT_INpu")
175  locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+"/HIP_noOOT_INpu")
176  locals()[label].TrackPtMin = trackPtMin[tracks]
177  locals()[label].TrackPtBin = trackPtN[tracks]
178  locals()[label].TrackPtMax = trackPtMax[tracks]
179  locals()[label].TrackPBin = trackPtN[tracks]
180  locals()[label].TrackPMin = trackPtMin[tracks]
181  locals()[label].TrackPMax = trackPtMax[tracks]
182  locals()[label].doDCAPlots = doPlotsPCA[tracks]
183  locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
184  locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
185  locals()[label].doSIPPlots = doPlotsPCA[tracks]
186  locals()[label].numCut = numCutString[tracks]
187  locals()[label].denCut = denCutString[tracks]
188  locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
189  locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
190  locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
191  locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
192  locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
193  locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
194  locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
195  locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
196  locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
197  locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
198  locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
199  locals()[label].doPUmonitoring = doPUmonitoring [tracks]
200  locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
201  locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
202  locals()[label].doPlotsVsLUMI = cms.bool(True)
203  locals()[label].doPlotsVsBX = cms.bool(True)
204  locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
205  locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
206  locals()[label].doEffFromHitPatternVsLUMI = False
207  locals()[label].doStopSource = doStopSource [tracks]
208  locals()[label].setLabel(label)
209 
210 
211  # ZeroBias, hip, OOT pu (1st collision after train) ###
212  label = 'TrackerCollisionSelectedTrackMonZBHIPOOT' + str(tracks)
213  locals()[label] = TrackerCollisionTrackMonZBHIPOOT.clone()
214  locals()[label].TrackProducer = cms.InputTag(tracks)
215  locals()[label].FolderName = cms.string(mainfolderName[tracks]+"/HIP_OOT_noINpu")
216  locals()[label].PVFolderName = cms.string(vertexfolderName[tracks]+"/HIP_OOT_noINpu")
217  locals()[label].TrackPtMin = trackPtMin[tracks]
218  locals()[label].TrackPtBin = trackPtN[tracks]
219  locals()[label].TrackPtMax = trackPtMax[tracks]
220  locals()[label].TrackPBin = trackPtN[tracks]
221  locals()[label].TrackPMin = trackPtMin[tracks]
222  locals()[label].TrackPMax = trackPtMax[tracks]
223  locals()[label].doDCAPlots = doPlotsPCA[tracks]
224  locals()[label].doDCAwrtPVPlots = doPlotsPCA[tracks]
225  locals()[label].doDCAwrt000Plots = doPlotsPCA[tracks]
226  locals()[label].doSIPPlots = doPlotsPCA[tracks]
227  locals()[label].numCut = numCutString[tracks]
228  locals()[label].denCut = denCutString[tracks]
229  locals()[label].doGoodTracksPlots = doGoodTracksPlots [tracks]
230  locals()[label].doTrackerSpecific = doTrackerSpecific [tracks]
231  locals()[label].doHitPropertiesPlots = doHitPropertiesPlots [tracks]
232  locals()[label].doGeneralPropertiesPlots = doGeneralPropertiesPlots [tracks]
233  locals()[label].doBeamSpotPlots = doBeamSpotPlots [tracks]
234  locals()[label].doSeedParameterHistos = doSeedParameterHistos [tracks]
235  locals()[label].doRecHitVsPhiVsEtaPerTrack = doRecHitVsPhiVsEtaPerTrack [tracks]
236  locals()[label].doRecHitVsPtVsEtaPerTrack = doRecHitVsPtVsEtaPerTrack [tracks]
237  locals()[label].doGoodTrackRecHitVsPhiVsEtaPerTrack = doGoodTrackRecHitVsPhiVsEtaPerTrack [tracks]
238  locals()[label].doLayersVsPhiVsEtaPerTrack = doLayersVsPhiVsEtaPerTrack [tracks]
239  locals()[label].doGoodTrackLayersVsPhiVsEtaPerTrack = doGoodTrackLayersVsPhiVsEtaPerTrack [tracks]
240  locals()[label].doPUmonitoring = doPUmonitoring [tracks]
241  locals()[label].doPlotsVsBXlumi = doPlotsVsBXlumi [tracks]
242  locals()[label].doPlotsVsGoodPVtx = doPlotsVsGoodPVtx [tracks]
243  locals()[label].doPlotsVsLUMI = cms.bool(True)
244  locals()[label].doPlotsVsBX = cms.bool(True)
245  locals()[label].doEffFromHitPatternVsPU = doEffFromHitPatternVsPU [tracks]
246  locals()[label].doEffFromHitPatternVsBX = doEffFromHitPatternVsBX [tracks]
247  locals()[label].doEffFromHitPatternVsLUMI = False
248  locals()[label].doStopSource = doStopSource [tracks]
249  locals()[label].setLabel(label)
250 
251 
252 #-------------------------------------------------
253 # Tracking Monitor
254 #-------------------------------------------------
255 import DQM.TrackingMonitor.TrackingMonitorSeed_cfi
256 
258 # Create first modules for all possible iterations, select later which
259 # ones to actually use based on era
260 def _copyIfExists(mod, pset, name):
261  if hasattr(pset, name):
262  setattr(mod, name, getattr(pset, name))
263 for _step, _pset in six.iteritems(seedMonitoring):
264  _mod = DQM.TrackingMonitor.TrackingMonitorSeed_cfi.TrackMonSeed.clone(
265  doTrackCandHistos = cms.bool(True)
266  )
267  locals()['TrackSeedMon'+str(_step)] = _mod
268  _mod.TrackProducer = cms.InputTag("generalTracks")
269  _mod.FolderName = cms.string("Tracking/TrackParameters/generalTracks")
270  _mod.SeedProducer = _pset.seedInputTag
271  _mod.TCProducer = _pset.trackCandInputTag
272  _mod.AlgoName = cms.string( str(_step) )
273  _mod.TkSeedSizeBin = _pset.trackSeedSizeBin
274  _mod.TkSeedSizeMin = _pset.trackSeedSizeMin
275  _mod.TkSeedSizeMax = _pset.trackSeedSizeMax
276  _mod.ClusterLabels = _pset.clusterLabel
277  if _pset.clusterLabel == cms.vstring('Pix') :
278  _mod.NClusPxBin = _pset.clusterBin
279  _mod.NClusPxMax = _pset.clusterMax
280  elif _pset.clusterLabel == cms.vstring('Strip') or _pset.clusterLabel == cms.vstring('Tot') :
281  _mod.NClusStrBin = _pset.clusterBin
282  _mod.NClusStrMax = _pset.clusterMax
283  if hasattr(_pset, "RegionProducer") or hasattr(_pset, "RegionSeedingLayersProducer"):
284  _mod.doRegionPlots = True
285  _copyIfExists(_mod, _pset, "RegionProducer")
286  _copyIfExists(_mod, _pset, "RegionSeedingLayersProducer")
287  _copyIfExists(_mod, _pset, "RegionSizeBin")
288  _copyIfExists(_mod, _pset, "RegionSizeMax")
289  if hasattr(_pset, "RegionCandidates"):
290  _mod.doRegionCandidatePlots = True
291  _mod.RegionCandidates = _pset.RegionCandidates
292  if hasattr(_pset, "trajCandPerSeedBin"):
293  _mod.SeedCandBin = _pset.trajCandPerSeedBin
294  _mod.SeedCandMax = _pset.trajCandPerSeedMax
295 
296 # DQM Services
297 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
298 dqmInfoTracking = DQMEDAnalyzer('DQMEventInfo',
299  subSystemFolder = cms.untracked.string('Tracking')
300 )
301 
302 # LogMessageMonitor ####
303 ### load which are the module to monitor
305 
306 ### load the different flavour of settings of the LogMessageMonitor module
308 
309 for module in selectedModules :
310  label = str(module)+'LogMessageMonCommon'
311  locals()[label] = LogMessageMonCommon.clone()
312  locals()[label].pluginsMonName = pluginsMonName[module]
313  locals()[label].modules = modulesLabel[module]
314  locals()[label].categories = categories[module]
315  locals()[label].setLabel(label)
316 
317  label = str(module)+'LogMessageMonMB'
318  locals()[label] = LogMessageMonMB.clone()
319  locals()[label].pluginsMonName = pluginsMonName[module]
320  locals()[label].modules = modulesLabel[module]
321  locals()[label].categories = categories[module]
322  locals()[label].setLabel(label)
323 
324 
325 # dEdx monitor ####
326 ### load which dedx
328 
329 ### load the different flavour of settings of the dEdxAnalyzer module
331 
332 
333 # temporary patch in order to have BXlumi
335 
336 # import v0 monitoring
338 
339 # better clone for now because goodOfflinePrimaryVertices is used also
340 # within the reco sequence, and without cloning framework will throw
341 # "unrunnable schedule" exception for workflows without --runUnscheduled
342 from CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi import goodOfflinePrimaryVertices
343 trackingDQMgoodOfflinePrimaryVertices = goodOfflinePrimaryVertices.clone()
344 
345 
346 # import PV resolution
348 # Sequence
349 TrackingDQMSourceTier0 = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
350 # dEdx monitoring
351 TrackingDQMSourceTier0 += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking
352 #TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking
353 # # temporary patch in order to have BXlumi
354 # * lumiProducer
355 # track collections
356 for tracks in selectedTracks :
357  if tracks != 'generalTracks':
358  TrackingDQMSourceTier0 += cms.ignore(sequenceName[tracks])
359  label = 'TrackerCollisionSelectedTrackMonCommon' + str(tracks)
360  TrackingDQMSourceTier0 += cms.ignore(locals()[label])
361 # seeding monitoring
362 for _eraName, _postfix, _era in _cfg.allEras():
363  mvaSel = _utils.getMVASelectors(_postfix)
364  _seq = cms.Sequence()
365  for step in locals()["selectedIterTrackingStep"+_postfix]:
366  if step in mvaSel:
367  locals()["TrackSeedMon"+step].doMVAPlots = True
368  locals()["TrackSeedMon"+step].TrackProducerForMVA = mvaSel[step][0]
369  locals()["TrackSeedMon"+step].MVAProducers = mvaSel[step][1]
370 
371  _seq += locals()["TrackSeedMon"+step]
372  if _eraName == "":
373  locals()["TrackSeedMonSequence"] = _seq
374  else:
375  _era.toReplaceWith(TrackSeedMonSequence, _seq)
376 TrackingDQMSourceTier0 += TrackSeedMonSequence
377 # MessageLog
378 for module in selectedModules :
379  label = str(module)+'LogMessageMonCommon'
380  TrackingDQMSourceTier0 += locals()[label]
381 TrackingDQMSourceTier0 += voMonitoringSequence
382 TrackingDQMSourceTier0 += voWcutMonitoringSequence
383 TrackingDQMSourceTier0 += primaryVertexResolution
384 TrackingDQMSourceTier0 += dqmInfoTracking
385 
386 
387 TrackingDQMSourceTier0Common = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
388 # dEdx monitoring
389 TrackingDQMSourceTier0Common += (dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking)
390 #TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking)
391 ## monitor track collections
392 for tracks in selectedTracks :
393  if tracks != 'generalTracks':
394  TrackingDQMSourceTier0Common+=cms.ignore(sequenceName[tracks])
395  label = 'TrackerCollisionSelectedTrackMonCommon' + str(tracks)
396  TrackingDQMSourceTier0Common += cms.ignore(locals()[label])
397 # seeding monitoring
398 TrackingDQMSourceTier0Common += TrackSeedMonSequence
399 # MessageLog
400 for module in selectedModules :
401  label = str(module)+'LogMessageMonCommon'
402  TrackingDQMSourceTier0Common += locals()[label]
403 TrackingDQMSourceTier0Common += voMonitoringCommonSequence
404 TrackingDQMSourceTier0Common += voWcutMonitoringCommonSequence
405 TrackingDQMSourceTier0Common += primaryVertexResolution
406 TrackingDQMSourceTier0Common += dqmInfoTracking
407 
408 TrackingDQMSourceTier0MinBias = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
409 # dEdx monitoring
410 TrackingDQMSourceTier0MinBias += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking
411 #TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking#TrackMon_ckf*TrackEffMon_ckf
412 # * lumiProducer
413 # monitor track collections
414 for tracks in selectedTracks :
415  if tracks != 'generalTracks':
416  TrackingDQMSourceTier0MinBias += cms.ignore(sequenceName[tracks])
417 
418  for topology in [ 'MB', 'ZBnoHIPnoOOT', 'ZBHIPnoOOT', 'ZBHIPOOT']:
419  label = 'TrackerCollisionSelectedTrackMon' + str(topology) + str(tracks)
420  TrackingDQMSourceTier0MinBias += cms.ignore(locals()[label])
421 # seeding monitoring
422 TrackingDQMSourceTier0MinBias += TrackSeedMonSequence
423 # MessageLog
424 for module in selectedModules :
425  label = str(module)+'LogMessageMonMB'
426  TrackingDQMSourceTier0MinBias += locals()[label]
427 # V0 monitoring
428 TrackingDQMSourceTier0MinBias += voMonitoringMBSequence
429 TrackingDQMSourceTier0MinBias += voMonitoringZBnoHIPnoOOTSequence
430 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPnoOOTSequence
431 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPOOTSequence
432 TrackingDQMSourceTier0MinBias += voWcutMonitoringMBSequence
433 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBnoHIPnoOOTSequence
434 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPnoOOTSequence
435 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPOOTSequence
436 # PV resolution
437 TrackingDQMSourceTier0MinBias += primaryVertexResolution
438 
439 TrackingDQMSourceTier0MinBias += dqmInfoTracking
440 
load which dedx
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
#define str(s)