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