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 doubletRecoveryHPTracksMonitoringHLT = trackingMonHLT.clone(
131  FolderName = 'HLT/Tracking/doubletRecoveryTracks',
132  TrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurity',
133  allTrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurity',
134  doEffFromHitPatternVsPU = True,
135  doEffFromHitPatternVsBX = False,
136  doEffFromHitPatternVsLUMI = False
137 )
138 
139 
145 egmTrackingMonHLT = trackingMonHLT.clone(
146  primaryVertex = "hltElectronsVertex",
147  doEffFromHitPatternVsPU = False,
148  doEffFromHitPatternVsBX = False,
149  doEffFromHitPatternVsLUMI = False
150 )
151 gsfTracksMonitoringHLT = egmTrackingMonHLT.clone(
152  FolderName = 'HLT/EGM/Tracking/GSF',
153  TrackProducer = 'hltEgammaGsfTracks',
154  allTrackProducer = 'hltEgammaGsfTracks'
155 )
156 pixelTracksForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
157  FolderName = 'HLT/EGM/Tracking/pixelTracks',
158  TrackProducer = 'hltPixelTracksElectrons',
159  allTrackProducer = 'hltPixelTracksElectrons'
160 )
161 iter0ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
162  FolderName = 'HLT/EGM/Tracking/iter0',
163  TrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks',
164  allTrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks'
165 )
166 iter0HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
167  FolderName = 'HLT/EGM/Tracking/iter0HP',
168  TrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity',
169  allTrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity'
170 )
171 iter1ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
172  FolderName = 'HLT/EGM/Tracking/iter1',
173  TrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks',
174  allTrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks'
175 )
176 iter1HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
177  FolderName = 'HLT/EGM/Tracking/iter1HP',
178  TrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity',
179  allTrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity'
180 )
181 iter1MergedForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
182  FolderName = 'HLT/EGM/Tracking/iter1Merged',
183  TrackProducer = 'hltIter1MergedForElectrons',
184  allTrackProducer = 'hltIter1MergedForElectrons'
185 )
186 iter2ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
187  FolderName = 'HLT/EGM/Tracking/iter2',
188  TrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks',
189  allTrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks'
190 )
191 iter2HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
192  FolderName = 'HLT/EGM/Tracking/iter2HP',
193  TrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity',
194  allTrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity'
195 )
196 iterHLTTracksForElectronsMonitoringHLT = egmTrackingMonHLT.clone(
197  FolderName = 'HLT/EGM/Tracking/iter2Merged',
198  TrackProducer = 'hltIter2MergedForElectrons',
199  allTrackProducer = 'hltIter2MergedForElectrons'
200 )
201 
202 egmTrackingMonitorHLT = cms.Sequence(
203  gsfTracksMonitoringHLT
204  + pixelTracksForElectronsTracksMonitoringHLT
205  + iter0HPForElectronsTracksMonitoringHLT
206 # + iter1HPForElectronsTracksMonitoringHLT
207 # + iter2HPForElectronsTracksMonitoringHLT
208  + iterHLTTracksForElectronsMonitoringHLT
209 )
210 
211 trkHLTDQMSourceExtra = cms.Sequence(
212 )
213 
214 from Configuration.Eras.Modifier_run3_common_cff import run3_common
215 run3_common.toReplaceWith(trackingMonitorHLT, cms.Sequence(pixelTracksMonitoringHLT + iterHLTTracksMonitoringHLT + doubletRecoveryHPTracksMonitoringHLT )) # + iter0HPTracksMonitoringHLT ))
216 run3_common.toReplaceWith(trackingMonitorHLTall, cms.Sequence(pixelTracksMonitoringHLT + iter0TracksMonitoringHLT + iterHLTTracksMonitoringHLT))
217 run3_common.toReplaceWith(egmTrackingMonitorHLT, cms.Sequence(gsfTracksMonitoringHLT))