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 
8 
9 
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/TrackEfficiency'
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 
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/SeedMon/"+str(_step))
270  _mod.doPUmonitoring = cms.bool(False)
271  _mod.doLumiAnalysis = cms.bool(False)
272  _mod.doPlotsVsGoodPVtx = cms.bool(False)
273  _mod.SeedProducer = _pset.seedInputTag
274  _mod.TCProducer = _pset.trackCandInputTag
275  _mod.AlgoName = cms.string( str(_step) )
276  _mod.TkSeedSizeBin = _pset.trackSeedSizeBin
277  _mod.TkSeedSizeMin = _pset.trackSeedSizeMin
278  _mod.TkSeedSizeMax = _pset.trackSeedSizeMax
279  _mod.ClusterLabels = _pset.clusterLabel
280  if _pset.clusterLabel == cms.vstring('Pix') :
281  _mod.NClusPxBin = _pset.clusterBin
282  _mod.NClusPxMax = _pset.clusterMax
283  elif _pset.clusterLabel == cms.vstring('Strip') or _pset.clusterLabel == cms.vstring('Tot') :
284  _mod.NClusStrBin = _pset.clusterBin
285  _mod.NClusStrMax = _pset.clusterMax
286  if hasattr(_pset, "RegionProducer") or hasattr(_pset, "RegionSeedingLayersProducer"):
287  _mod.doRegionPlots = True
288  _copyIfExists(_mod, _pset, "RegionProducer")
289  _copyIfExists(_mod, _pset, "RegionSeedingLayersProducer")
290  _copyIfExists(_mod, _pset, "RegionSizeBin")
291  _copyIfExists(_mod, _pset, "RegionSizeMax")
292  if hasattr(_pset, "RegionCandidates"):
293  _mod.doRegionCandidatePlots = True
294  _mod.RegionCandidates = _pset.RegionCandidates
295  if hasattr(_pset, "trajCandPerSeedBin"):
296  _mod.SeedCandBin = _pset.trajCandPerSeedBin
297  _mod.SeedCandMax = _pset.trajCandPerSeedMax
298 
299 # DQM Services
300 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
301 dqmInfoTracking = DQMEDAnalyzer('DQMEventInfo',
302  subSystemFolder = cms.untracked.string('Tracking')
303 )
304 
305 # LogMessageMonitor ####
306 
308 
309 
311 
312 for module in selectedModules :
313  label = str(module)+'LogMessageMonCommon'
314  locals()[label] = LogMessageMonCommon.clone()
315  locals()[label].pluginsMonName = pluginsMonName[module]
316  locals()[label].modules = modulesLabel[module]
317  locals()[label].categories = categories[module]
318  locals()[label].setLabel(label)
319 
320  label = str(module)+'LogMessageMonMB'
321  locals()[label] = LogMessageMonMB.clone()
322  locals()[label].pluginsMonName = pluginsMonName[module]
323  locals()[label].modules = modulesLabel[module]
324  locals()[label].categories = categories[module]
325  locals()[label].setLabel(label)
326 
327 
328 # dEdx monitor ####
329 
331 
332 
334 
335 
336 # temporary patch in order to have BXlumi
338 
339 # import v0 monitoring
341 
342 # better clone for now because goodOfflinePrimaryVertices is used also
343 # within the reco sequence, and without cloning framework will throw
344 # "unrunnable schedule" exception for workflows without --runUnscheduled
345 from CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi import goodOfflinePrimaryVertices
346 trackingDQMgoodOfflinePrimaryVertices = goodOfflinePrimaryVertices.clone()
347 
348 
349 # import PV resolution
351 from Configuration.Eras.Modifier_run3_common_cff import run3_common
352 run3_common.toModify(primaryVertexResolution, forceSCAL = False)
353 # Sequence
354 TrackingDQMSourceTier0 = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
355 # dEdx monitoring
356 TrackingDQMSourceTier0 += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking
357 #TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking
358 # # temporary patch in order to have BXlumi
359 # * lumiProducer
360 # track collections
361 for tracks in selectedTracks :
362  if tracks != 'generalTracks':
363  TrackingDQMSourceTier0 += cms.ignore(sequenceName[tracks])
364  label = 'TrackerCollisionSelectedTrackMonCommon' + str(tracks)
365  TrackingDQMSourceTier0 += cms.ignore(locals()[label])
366 # seeding monitoring
367 for _eraName, _postfix, _era in _cfg.allEras():
368  mvaSel = _utils.getMVASelectors(_postfix)
369  _seq = cms.Sequence()
370  for step in locals()["selectedIterTrackingStep"+_postfix]:
371  if step in mvaSel:
372  locals()["TrackSeedMon"+step].doMVAPlots = True
373  locals()["TrackSeedMon"+step].TrackProducerForMVA = mvaSel[step][0]
374  locals()["TrackSeedMon"+step].MVAProducers = mvaSel[step][1]
375 
376  _seq += locals()["TrackSeedMon"+step]
377  if _eraName == "":
378  locals()["TrackSeedMonSequence"] = _seq
379  else:
380  _era.toReplaceWith(TrackSeedMonSequence, _seq)
381 TrackingDQMSourceTier0 += TrackSeedMonSequence
382 # MessageLog
383 for module in selectedModules :
384  label = str(module)+'LogMessageMonCommon'
385  TrackingDQMSourceTier0 += locals()[label]
386 TrackingDQMSourceTier0 += voMonitoringSequence
387 TrackingDQMSourceTier0 += voWcutMonitoringSequence
388 TrackingDQMSourceTier0 += primaryVertexResolution
389 TrackingDQMSourceTier0 += dqmInfoTracking
390 
391 
392 TrackingDQMSourceTier0Common = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
393 # dEdx monitoring
394 TrackingDQMSourceTier0Common += (dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking)
395 #TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking)
396 
397 for tracks in selectedTracks :
398  if tracks != 'generalTracks':
399  TrackingDQMSourceTier0Common+=cms.ignore(sequenceName[tracks])
400  label = 'TrackerCollisionSelectedTrackMonCommon' + str(tracks)
401  TrackingDQMSourceTier0Common += cms.ignore(locals()[label])
402 # seeding monitoring
403 TrackingDQMSourceTier0Common += TrackSeedMonSequence
404 # MessageLog
405 for module in selectedModules :
406  label = str(module)+'LogMessageMonCommon'
407  TrackingDQMSourceTier0Common += locals()[label]
408 TrackingDQMSourceTier0Common += voMonitoringCommonSequence
409 TrackingDQMSourceTier0Common += voWcutMonitoringCommonSequence
410 TrackingDQMSourceTier0Common += primaryVertexResolution
411 TrackingDQMSourceTier0Common += dqmInfoTracking
412 
413 TrackingDQMSourceTier0MinBias = cms.Sequence(cms.ignore(trackingDQMgoodOfflinePrimaryVertices))
414 # dEdx monitoring
415 TrackingDQMSourceTier0MinBias += dedxHarmonicSequence * dEdxMonCommon * dEdxHitMonCommon * TrackMon_ckf * TrackSplitMonitor * dqmInfoTracking
416 #TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking#TrackMon_ckf*TrackEffMon_ckf
417 # * lumiProducer
418 # monitor track collections
419 for tracks in selectedTracks :
420  if tracks != 'generalTracks':
421  TrackingDQMSourceTier0MinBias += cms.ignore(sequenceName[tracks])
422 
423  for topology in [ 'MB', 'ZBnoHIPnoOOT', 'ZBHIPnoOOT', 'ZBHIPOOT']:
424  label = 'TrackerCollisionSelectedTrackMon' + str(topology) + str(tracks)
425  TrackingDQMSourceTier0MinBias += cms.ignore(locals()[label])
426 # seeding monitoring
427 TrackingDQMSourceTier0MinBias += TrackSeedMonSequence
428 # MessageLog
429 for module in selectedModules :
430  label = str(module)+'LogMessageMonMB'
431  TrackingDQMSourceTier0MinBias += locals()[label]
432 # V0 monitoring
433 TrackingDQMSourceTier0MinBias += voMonitoringMBSequence
434 TrackingDQMSourceTier0MinBias += voMonitoringZBnoHIPnoOOTSequence
435 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPnoOOTSequence
436 TrackingDQMSourceTier0MinBias += voMonitoringZBHIPOOTSequence
437 TrackingDQMSourceTier0MinBias += voWcutMonitoringMBSequence
438 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBnoHIPnoOOTSequence
439 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPnoOOTSequence
440 TrackingDQMSourceTier0MinBias += voWcutMonitoringZBHIPOOTSequence
441 # PV resolution
442 TrackingDQMSourceTier0MinBias += primaryVertexResolution
443 
444 TrackingDQMSourceTier0MinBias += dqmInfoTracking
445 
LogMessageMonitor_cff
load the different flavour of settings of the LogMessageMonitor module
dedxHarmonic2monitor_cfi
load which dedx
dEdxAnalyzer_cff
load the different flavour of settings of the dEdxAnalyzer module
lumiProducer_cff
primaryVertexResolution_cfi
str
#define str(s)
Definition: TestProcessor.cc:52
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
IterTrackingModules4seedMonitoring_cfi
goodOfflinePrimaryVertices_cfi
TrackerCollisionTrackingMonitor_cff
load the different flavour of settings of the TrackingMonitor module
V0Monitor_cff
TrackSplittingMonitor_cfi
EDModules2monitor_cfi
load which are the module to monitor
TrackingSourceConfig_Tier0_cff._copyIfExists
def _copyIfExists(mod, pset, name)
Definition: TrackingSourceConfig_Tier0_cff.py:260
TrackCollections2monitor_cff
load which are the tracks collection 2 be monitored