CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingMonitor_cfi.py
Go to the documentation of this file.
2 
3 from DQM.TrackingMonitor.BXlumiParameters_cfi import BXlumiSetup
4 
5 TrackMon = cms.EDAnalyzer("TrackingMonitor",
6 
7  # input tags
8  TrackProducer = cms.InputTag("generalTracks"),
9  SeedProducer = cms.InputTag("initialStepSeeds"),
10  TCProducer = cms.InputTag("initialStepTrackCandidates"),
11  ClusterLabels = cms.vstring('Tot'), # to decide which Seeds-Clusters correlation plots to have default is Total other options 'Strip', 'Pix'
12  beamSpot = cms.InputTag("offlineBeamSpot"),
13  primaryVertex = cms.InputTag('offlinePrimaryVertices'),
14 
15  BXlumiSetup = BXlumiSetup.clone(),
16 # lumi = cms.InputTag('lumiProducer'),
17 # # taken from
18 # # DPGAnalysis/SiStripTools/src/DigiLumiCorrHistogramMaker.cc
19 # # the scale factor 6.37 should follow the lumi prescriptions
20 # # AS SOON AS THE CORRECTED LUMI WILL BE AVAILABLE IT HAS TO BE SET TO 1.
21 # lumiScale = cms.double(6.37),
22 
23  # PU monitoring
24  primaryVertexInputTags = cms.VInputTag(),
25  selPrimaryVertexInputTags = cms.VInputTag(),
26  pvLabels = cms.vstring(),
27 
28  # output parameters
29  OutputMEsInRootFile = cms.bool(False),
30  AlgoName = cms.string('GenTk'),
31  Quality = cms.string(''),
32  OutputFileName = cms.string('MonitorTrack.root'),
33  FolderName = cms.string('Tracking/GlobalParameters'),
34  BSFolderName = cms.string('Tracking/ParametersVsBeamSpot'),
35  PVFolderName = cms.string('Tracking/PrimaryVertices'),
36 
37  # determines where to evaluate track parameters
38  # options: 'default' --> straight up track parametes
39  # 'ImpactPoint' --> evalutate at impact point
40  # 'InnerSurface' --> evalutate at innermost measurement state
41  # 'OuterSurface' --> evalutate at outermost measurement state
42 
43  MeasurementState = cms.string('ImpactPoint'),
44 
45  # which plots to do
46  doTestPlots = cms.bool(False),
47  doAllPlots = cms.bool(True),
48  doTrackerSpecific = cms.bool(False),
49  doBeamSpotPlots = cms.bool(False),
50  doSeedParameterHistos = cms.bool(False),
51  doTrackCandHistos = cms.bool(False),
52  doDCAPlots = cms.bool(False),
53  doDCAwrt000Plots = cms.bool(False),
54  doGeneralPropertiesPlots = cms.bool(False),
55  doHitPropertiesPlots = cms.bool(False),
56  doGoodTrackPlots = cms.bool(False),
57  doMeasurementStatePlots = cms.bool(True),
58  doProfilesVsLS = cms.bool(False),
59  doRecHitVsPhiVsEtaPerTrack = cms.bool(False),
60  doGoodTrackRecHitVsPhiVsEtaPerTrack = cms.bool(False),
61  doLayersVsPhiVsEtaPerTrack = cms.bool(False),
62  doGoodTrackLayersVsPhiVsEtaPerTrack = cms.bool(False),
63  doGoodTrack2DChi2Plots = cms.bool(False),
64  doThetaPlots = cms.bool(False),
65  doTrackPxPyPlots = cms.bool(False),
66  doPUmonitoring = cms.bool(False),
67  doPlotsVsBXlumi = cms.bool(False),
68  doPlotsVsGoodPVtx = cms.bool(False),
69 
70 
71  #which seed plots to do
72  doSeedNumberHisto = cms.bool(False),
73  doSeedVsClusterHisto = cms.bool(False),
74  doSeedPTHisto = cms.bool(False),
75  doSeedETAHisto = cms.bool(False),
76  doSeedPHIHisto = cms.bool(False),
77  doSeedPHIVsETAHisto = cms.bool(False),
78  doSeedThetaHisto = cms.bool(False),
79  doSeedQHisto = cms.bool(False),
80  doSeedDxyHisto= cms.bool(False),
81  doSeedDzHisto= cms.bool(False),
82  doSeedNRecHitsHisto= cms.bool(False),
83  doSeedNVsPhiProf= cms.bool(False),
84  doSeedNVsEtaProf= cms.bool(False),
85 
86  TTRHBuilder = cms.string('WithTrackAngle'),
87 
88  # Luminosity based analysis
89  doLumiAnalysis = cms.bool(False),
90  # For plots vs LS
91  LSBin = cms.int32(2000),
92  LSMin = cms.double(0),
93  LSMax = cms.double(2000.),
94 
95  # paramters of the Track
96  # ============================================================
97 
98  # chi2
99  Chi2Bin = cms.int32(50),
100  Chi2Max = cms.double(199.5),
101  Chi2Min = cms.double(-0.5),
102 
103  # chi2 dof
104  Chi2NDFBin = cms.int32(50),
105  Chi2NDFMax = cms.double(19.5),
106  Chi2NDFMin = cms.double(-0.5),
107 
108  # chi^2 probability
109  Chi2ProbBin = cms.int32(100),
110  Chi2ProbMax = cms.double(1.0),
111  Chi2ProbMin = cms.double(0.0),
112 
113  # Number of Tracks per Event
114  TkSizeBin = cms.int32(100),
115  TkSizeMax = cms.double(99.5),
116  TkSizeMin = cms.double(-0.5),
117 
118  # Number of seeds per Event
119  TkSeedSizeBin = cms.int32(150),
120  TkSeedSizeMax = cms.double(149.5),
121  TkSeedSizeMin = cms.double(-0.5),
122 
123  # Number of Track Cadidates per Event
124  TCSizeBin = cms.int32(150),
125  TCSizeMax = cms.double(149.5),
126  TCSizeMin = cms.double(-0.5),
127 
128  # num rec hits
129  TrackQBin = cms.int32(8),
130  TrackQMax = cms.double(2.5),
131  TrackQMin = cms.double(-2.5),
132 
133  # num rec hits in seed
134  SeedHitBin = cms.int32(6),
135  SeedHitMax = cms.double(5.5),
136  SeedHitMin = cms.double(-0.5),
137 
138  # num rec hits per track candidate
139  TCHitBin = cms.int32(40),
140  TCHitMax = cms.double(39.5),
141  TCHitMin = cms.double(-0.5),
142 
143  # num rec hits
144  RecHitBin = cms.int32(40),
145  RecHitMax = cms.double(39.5),
146  RecHitMin = cms.double(-0.5),
147 
148  # mean rec hits
149  MeanHitBin = cms.int32(30),
150  MeanHitMax = cms.double(29.5),
151  MeanHitMin = cms.double(-0.5),
152 
153  # num TOB rec hits
154  TOBHitBin = cms.int32(15),
155  TOBHitMax = cms.double(14.5),
156  TOBHitMin = cms.double(-0.5),
157 
158  # num TIB rec hits
159  TIBHitBin = cms.int32(15),
160  TIBHitMax = cms.double(14.5),
161  TIBHitMin = cms.double(-0.5),
162 
163  # num TID rec hits
164  TIDHitBin = cms.int32(15),
165  TIDHitMax = cms.double(14.5),
166  TIDHitMin = cms.double(-0.5),
167 
168  # num TEC rec hits
169  TECHitBin = cms.int32(25),
170  TECHitMax = cms.double(24.5),
171  TECHitMin = cms.double(-0.5),
172 
173  # num PXB rec hits
174  PXBHitBin = cms.int32(10),
175  PXBHitMax = cms.double(9.5),
176  PXBHitMin = cms.double(-0.5),
177 
178  # num PXF rec hits
179  PXFHitBin = cms.int32(10),
180  PXFHitMax = cms.double(9.5),
181  PXFHitMin = cms.double(-0.5),
182 
183  # num rec hits lost
184  RecLostBin = cms.int32(10),
185  RecLostMax = cms.double(9.5),
186  RecLostMin = cms.double(-0.5),
187 
188  # num layers
189  RecLayBin = cms.int32(25),
190  RecLayMax = cms.double(24.5),
191  RecLayMin = cms.double(-0.5),
192 
193  # mean layers
194  MeanLayBin = cms.int32(20),
195  MeanLayMax = cms.double(19.5),
196  MeanLayMin = cms.double(-0.5),
197 
198  # num TOB Layers
199  TOBLayBin = cms.int32(10),
200  TOBLayMax = cms.double(9.5),
201  TOBLayMin = cms.double(-0.5),
202 
203  # num TIB Layers
204  TIBLayBin = cms.int32(6),
205  TIBLayMax = cms.double(5.5),
206  TIBLayMin = cms.double(-0.5),
207 
208  # num TID Layers
209  TIDLayBin = cms.int32(6),
210  TIDLayMax = cms.double(5.5),
211  TIDLayMin = cms.double(-0.5),
212 
213  # num TEC Layers
214  TECLayBin = cms.int32(15),
215  TECLayMax = cms.double(14.5),
216  TECLayMin = cms.double(-0.5),
217 
218  # num PXB Layers
219  PXBLayBin = cms.int32(6),
220  PXBLayMax = cms.double(5.5),
221  PXBLayMin = cms.double(-0.5),
222 
223  # num PXF Layers
224  PXFLayBin = cms.int32(6),
225  PXFLayMax = cms.double(5.5),
226  PXFLayMin = cms.double(-0.5),
227 
228  # Track |p|
229  TrackPBin = cms.int32(100),
230  TrackPMax = cms.double(100),
231  TrackPMin = cms.double(0),
232 
233  # Track pT
234  TrackPtBin = cms.int32(100),
235  TrackPtMax = cms.double(100),
236  TrackPtMin = cms.double(0.1),
237 
238  # Track px
239  TrackPxBin = cms.int32(50),
240  TrackPxMax = cms.double(50.0),
241  TrackPxMin = cms.double(-50.0),
242 
243  # Track py
244  TrackPyBin = cms.int32(50),
245  TrackPyMax = cms.double(50.0),
246  TrackPyMin = cms.double(-50.0),
247 
248  # Track pz
249  TrackPzBin = cms.int32(50),
250  TrackPzMax = cms.double(50.0),
251  TrackPzMin = cms.double(-50.0),
252 
253  # track theta
254  ThetaBin = cms.int32(32),
255  ThetaMax = cms.double(3.2),
256  ThetaMin = cms.double(0.0),
257 
258  # track eta
259  EtaBin = cms.int32(26),
260  EtaMax = cms.double(2.5),
261  EtaMin = cms.double(-2.5),
262 
263  # track phi
264  PhiBin = cms.int32(32),
265  PhiMax = cms.double(3.141592654),
266  PhiMin = cms.double(-3.141592654),
267 
268  # Track |p| error
269  pErrBin = cms.int32(50),
270  pErrMax = cms.double(1.0),
271  pErrMin = cms.double(0.0),
272 
273  # Track pT error
274  ptErrBin = cms.int32(50),
275  ptErrMax = cms.double(1.0),
276  ptErrMin = cms.double(0.0),
277 
278  # Track px error
279  pxErrBin = cms.int32(50),
280  pxErrMax = cms.double(1.0),
281  pxErrMin = cms.double(0.0),
282 
283  # Track py error
284  pyErrBin = cms.int32(50),
285  pyErrMax = cms.double(1.0),
286  pyErrMin = cms.double(0.0),
287 
288  # Track pz error
289  pzErrBin = cms.int32(50),
290  pzErrMax = cms.double(1.0),
291  pzErrMin = cms.double(0.0),
292 
293  # track eta error
294  etaErrBin = cms.int32(50),
295  etaErrMax = cms.double(0.1),
296  etaErrMin = cms.double(0.0),
297 
298  # track phi Error
299  phiErrBin = cms.int32(50),
300  phiErrMax = cms.double(0.1),
301  phiErrMin = cms.double(0.0),
302 
303  # PCA x position
304  VXBin = cms.int32(100),
305  VXMax = cms.double(0.5),
306  VXMin = cms.double(-0.5),
307 
308  # PCA y position
309  VYBin = cms.int32(100),
310  VYMax = cms.double(0.5),
311  VYMin = cms.double(-0.5),
312 
313  # PCA z position
314  VZBin = cms.int32(100),
315  VZMax = cms.double(30.0),
316  VZMin = cms.double(-30.0),
317 
318  # PCA x position for 2D plot
319  X0Bin = cms.int32(100),
320  X0Max = cms.double(0.5),
321  X0Min = cms.double(-0.5),
322 
323  # PCA y position for 2D plot
324  Y0Bin = cms.int32(100),
325  Y0Max = cms.double(0.5),
326  Y0Min = cms.double(-0.5),
327 
328  # PCA z position for 2D plot
329  Z0Bin = cms.int32(120),
330  Z0Max = cms.double(60.0),
331  Z0Min = cms.double(-60.0),
332 
333  # Track dxy (transverse impact parameter)
334  DxyBin = cms.int32(100),
335  DxyMax = cms.double(0.5),
336  DxyMin = cms.double(-0.5),
337 
338  # Seed dxy (transverse impact parameter)
339  SeedDxyBin = cms.int32(100),
340  SeedDxyMax = cms.double(0.5),
341  SeedDxyMin = cms.double(-0.5),
342 
343  # Seed dz (longitudinal impact parameter)
344  SeedDzBin = cms.int32(120),
345  SeedDzMax = cms.double(30.0),
346  SeedDzMin = cms.double(-30.0),
347 
348  # Track Candidate dxy (transverse impact parameter)
349  TCDxyBin = cms.int32(100),
350  TCDxyMax = cms.double(100.0),
351  TCDxyMin = cms.double(-100.0),
352 
353  # Track Candidate dz (transverse impact parameter)
354  TCDzBin = cms.int32(100),
355  TCDzMax = cms.double(400.0),
356  TCDzMin = cms.double(-400.0),
357 
358 #######################################
359 ## needed for tracksVScluster and seedVScluster
360 
361  # NCluster Pixel
362  NClusPxBin = cms.int32(200),
363  NClusPxMax = cms.double(19999.5),
364  NClusPxMin = cms.double(-0.5),
365 
366  # NCluster Strip
367  NClusStrBin = cms.int32(500),
368  NClusStrMax = cms.double(99999.5),
369  NClusStrMin = cms.double(-0.5),
370 
371  # NCluster Vs Tracks
372  NTrk2DBin = cms.int32(50),
373  NTrk2DMax = cms.double(1999.5),
374  NTrk2DMin = cms.double(-0.5),
375 
376  # PU monitoring
377  # Nunmber of Good Primary Vertices
378  GoodPVtxBin = cms.int32(60),
379  GoodPVtxMin = cms.double( 0.),
380  GoodPVtxMax = cms.double(60.),
381 
382 # # BXlumi
383 # BXlumiBin = cms.int32(400),
384 # BXlumiMin = cms.double(2000),
385 # BXlumiMax = cms.double(6000),
386 
387 )