CMS 3D CMS Logo

TrackingMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 trackingMonHLT = DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi.TrackerCollisionTrackMon.clone(
5  beamSpot = "hltOnlineBeamSpot",
6  primaryVertex = "hltPixelVertices",
7  doAllPlots = False,
8  doLumiAnalysis = False,
9  #doProfilesVsLS = True,
10  doDCAPlots = True,
11  pvNDOF = 1,
12  doProfilesVsLS = True,
13  #doPlotsVsGoodPVtx = True,
14  doEffFromHitPatternVsPU = True,
15  doEffFromHitPatternVsBX = True,
16  doEffFromHitPatternVsLUMI = True,
17  doPlotsVsGoodPVtx = True,
18  doPlotsVsLUMI = True,
19  doPlotsVsBX = True
20 )
21 pixelTracksMonitoringHLT = trackingMonHLT.clone(
22  FolderName = 'HLT/Tracking/pixelTracks',
23  TrackProducer = 'hltPixelTracks',
24  allTrackProducer = 'hltPixelTracks',
25  doEffFromHitPatternVsPU = False,
26  doEffFromHitPatternVsBX = False,
27  doEffFromHitPatternVsLUMI = False
28 )
29 iter0TracksMonitoringHLT = trackingMonHLT.clone(
30  FolderName = 'HLT/Tracking/iter0',
31  TrackProducer = 'hltIter0PFlowCtfWithMaterialTracks',
32  allTrackProducer = 'hltIter0PFlowCtfWithMaterialTracks',
33  doEffFromHitPatternVsPU = True,
34  doEffFromHitPatternVsBX = False,
35  doEffFromHitPatternVsLUMI = False
36 )
37 iter0HPTracksMonitoringHLT = trackingMonHLT.clone(
38  FolderName = 'HLT/Tracking/iter0HP',
39  TrackProducer = 'hltIter0PFlowTrackSelectionHighPurity',
40  allTrackProducer = 'hltIter0PFlowTrackSelectionHighPurity',
41  doEffFromHitPatternVsPU = True,
42  doEffFromHitPatternVsBX = False,
43  doEffFromHitPatternVsLUMI = False
44 )
45 iter1TracksMonitoringHLT = trackingMonHLT.clone(
46  FolderName = 'HLT/Tracking/iter1',
47  TrackProducer = 'hltIter1PFlowCtfWithMaterialTracks',
48  allTrackProducer = 'hltIter1PFlowCtfWithMaterialTracks',
49  doEffFromHitPatternVsPU = True,
50  doEffFromHitPatternVsBX = False,
51  doEffFromHitPatternVsLUMI = False
52 )
53 iter1HPTracksMonitoringHLT = trackingMonHLT.clone(
54  FolderName = 'HLT/Tracking/iter1HP',
55  TrackProducer = 'hltIter1PFlowTrackSelectionHighPurity',
56  allTrackProducer = 'hltIter1PFlowTrackSelectionHighPurity',
57  doEffFromHitPatternVsPU = True,
58  doEffFromHitPatternVsBX = False,
59  doEffFromHitPatternVsLUMI = False
60 )
61 iter2TracksMonitoringHLT = trackingMonHLT.clone(
62  FolderName = 'HLT/Tracking/iter2',
63  TrackProducer = 'hltIter2PFlowCtfWithMaterialTracks',
64  allTrackProducer = 'hltIter2PFlowCtfWithMaterialTracks',
65  doEffFromHitPatternVsPU = True,
66  doEffFromHitPatternVsBX = False,
67  doEffFromHitPatternVsLUMI = False
68 )
69 iter2HPTracksMonitoringHLT = trackingMonHLT.clone(
70  FolderName = 'HLT/Tracking/iter2HP',
71  TrackProducer = 'hltIter2PFlowTrackSelectionHighPurity',
72  allTrackProducer = 'hltIter2PFlowTrackSelectionHighPurity',
73  doEffFromHitPatternVsPU = True,
74  doEffFromHitPatternVsBX = False,
75  doEffFromHitPatternVsLUMI = False
76 )
77 iter2MergedTracksMonitoringHLT = trackingMonHLT.clone(
78  FolderName = 'HLT/Tracking/iter2Merged',
79  TrackProducer = 'hltIter2Merged',
80  allTrackProducer = 'hltIter2Merged',
81  doEffFromHitPatternVsPU = True,
82  doEffFromHitPatternVsBX = False,
83  doEffFromHitPatternVsLUMI = False
84 )
85 iterHLTTracksMonitoringHLT = trackingMonHLT.clone(
86  FolderName = 'HLT/Tracking/tracks',
87  TrackProducer = 'hltMergedTracks',
88  allTrackProducer = 'hltMergedTracks',
89  doEffFromHitPatternVsPU = True,
90  doEffFromHitPatternVsBX = True,
91  doEffFromHitPatternVsLUMI = True,
92  doDCAPlots = True,
93  doPVPlots = cms.bool(True),
94  doBSPlots = cms.bool(True),
95  doSIPPlots = cms.bool(True)
96 )
97 iter3TracksMonitoringHLT = trackingMonHLT.clone(
98  FolderName = 'HLT/Tracking/iter3Merged',
99  TrackProducer = 'hltIter3Merged',
100  allTrackProducer = 'hltIter3Merged'
101 )
102 iter4TracksMonitoringHLT = trackingMonHLT.clone(
103  FolderName = 'HLT/Tracking/iter4Merged',
104  TrackProducer = 'hltIter4Merged',
105  allTrackProducer = 'hltIter4Merged'
106 )
107 trackingMonitorHLT = cms.Sequence(
108  pixelTracksMonitoringHLT
109  + iter0HPTracksMonitoringHLT
110 # + iter1HPTracksMonitoringHLT
111 # + iter2HPTracksMonitoringHLT
112  + iter2MergedTracksMonitoringHLT
113  + iterHLTTracksMonitoringHLT
114 )
115 
116 trackingMonitorHLTall = cms.Sequence(
117  pixelTracksMonitoringHLT
118  + iter0TracksMonitoringHLT
119  + iter0HPTracksMonitoringHLT
120  + iter1TracksMonitoringHLT
121  + iter1HPTracksMonitoringHLT
122  + iter2TracksMonitoringHLT
123  + iter2HPTracksMonitoringHLT
124  + iter2MergedTracksMonitoringHLT
125  + iterHLTTracksMonitoringHLT
126 # + iter3TracksMonitoringHLT
127 # + iter4TracksMonitoringHLT
128 )
129 
130 
136 egmTrackingMonHLT = trackingMonHLT.clone(
137  primaryVertex = "hltElectronsVertex",
138  doEffFromHitPatternVsPU = False,
139  doEffFromHitPatternVsBX = False,
140  doEffFromHitPatternVsLUMI = False
141 )
142 gsfTracksMonitoringHLT = egmTrackingMonHLT.clone(
143  FolderName = 'HLT/EGM/Tracking/GSF',
144  TrackProducer = 'hltEgammaGsfTracks',
145  allTrackProducer = 'hltEgammaGsfTracks'
146 )
147 pixelTracksForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
148  FolderName = 'HLT/EGM/Tracking/pixelTracks',
149  TrackProducer = 'hltPixelTracksElectrons',
150  allTrackProducer = 'hltPixelTracksElectrons'
151 )
152 iter0ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
153  FolderName = 'HLT/EGM/Tracking/iter0',
154  TrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks',
155  allTrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks'
156 )
157 iter0HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
158  FolderName = 'HLT/EGM/Tracking/iter0HP',
159  TrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity',
160  allTrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity'
161 )
162 iter1ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
163  FolderName = 'HLT/EGM/Tracking/iter1',
164  TrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks',
165  allTrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks'
166 )
167 iter1HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
168  FolderName = 'HLT/EGM/Tracking/iter1HP',
169  TrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity',
170  allTrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity'
171 )
172 iter1MergedForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
173  FolderName = 'HLT/EGM/Tracking/iter1Merged',
174  TrackProducer = 'hltIter1MergedForElectrons',
175  allTrackProducer = 'hltIter1MergedForElectrons'
176 )
177 iter2ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
178  FolderName = 'HLT/EGM/Tracking/iter2',
179  TrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks',
180  allTrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks'
181 )
182 iter2HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
183  FolderName = 'HLT/EGM/Tracking/iter2HP',
184  TrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity',
185  allTrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity'
186 )
187 iterHLTTracksForElectronsMonitoringHLT = egmTrackingMonHLT.clone(
188  FolderName = 'HLT/EGM/Tracking/iter2Merged',
189  TrackProducer = 'hltIter2MergedForElectrons',
190  allTrackProducer = 'hltIter2MergedForElectrons'
191 )
192 
193 egmTrackingMonitorHLT = cms.Sequence(
194  gsfTracksMonitoringHLT
195  + pixelTracksForElectronsTracksMonitoringHLT
196  + iter0HPForElectronsTracksMonitoringHLT
197 # + iter1HPForElectronsTracksMonitoringHLT
198 # + iter2HPForElectronsTracksMonitoringHLT
199  + iterHLTTracksForElectronsMonitoringHLT
200 )
201 
202 trkHLTDQMSourceExtra = cms.Sequence(
203 )
204 
205 from Configuration.Eras.Modifier_run3_common_cff import run3_common
206 run3_common.toReplaceWith(trackingMonitorHLT, cms.Sequence(pixelTracksMonitoringHLT + iterHLTTracksMonitoringHLT))
207 run3_common.toReplaceWith(trackingMonitorHLTall, cms.Sequence(pixelTracksMonitoringHLT + iter0TracksMonitoringHLT + iterHLTTracksMonitoringHLT))
208 run3_common.toReplaceWith(egmTrackingMonitorHLT, cms.Sequence(gsfTracksMonitoringHLT))