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