CMS 3D CMS Logo

SiPixelPhase1TrackClusters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
5 
6 SiPixelPhase1TrackClustersOnTrackCharge = DefaultHistoTrack.clone(
7  name = "charge",
8  title = "Corrected Cluster Charge (OnTrack)",
9  range_min = 0, range_max = 80e3, range_nbins = 100,
10  xlabel = "Charge (electrons)",
11 
12  specs = VPSet(
13  StandardSpecifications1D,
14  StandardSpecification2DProfile,
15 
16  #what is below is only for the timing client
17  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock")
18  .groupBy("PXBarrel", "EXTEND_Y")
19  .save(),
20  Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock")
21  .groupBy("PXForward", "EXTEND_Y")
22  .save(),
23 
24  Specification().groupBy("PXForward/PXRing").save(),
25 
26  Specification(PerModule).groupBy("PXForward/PXRing/Lumisection")
27  .reduce("MEAN")
28  .groupBy("PXForward/PXRing","EXTEND_X")
29  .save(),
30 
31  Specification(IsOffline).groupBy("PXForward/PXRing/LumiBlock")
32  .reduce("MEAN")
33  .groupBy("PXForward/PXRing","EXTEND_X")
34  .save(),
35 
36 
37  Specification(PerModule).groupBy("PXBarrel/PXLayer/Lumisection")
38  .reduce("MEAN")
39  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
40  .save(),
41 
42  Specification(PerModule).groupBy("PXForward/PXDisk/Lumisection")
43  .reduce("MEAN")
44  .groupBy("PXForward/PXDisk", "EXTEND_X")
45  .save(),
46 
47  Specification(IsOffline).groupBy("PXBarrel/PXLayer/LumiBlock")
48  .reduce("MEAN")
49  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
50  .save(),
51 
52  Specification(IsOffline).groupBy("PXForward/PXDisk/LumiBlock")
53  .reduce("MEAN")
54  .groupBy("PXForward/PXDisk", "EXTEND_X")
55  .save(),
56 
57  Specification(OverlayCurvesForTiming).groupBy("PXForward/PXDisk/OnlineBlock") # per-layer with history for online
58  .groupBy("PXForward/PXDisk", "EXTEND_Y")
59  .save(),
60  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/PXLayer/OnlineBlock") # per-layer with history for online
61  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
62  .save()
63  )
64 )
65 
66 SiPixelPhase1TrackClustersOnTrackBigPixelCharge = DefaultHistoTrack.clone(
67  name = "bigpixelcharge",
68  title = "Corrected Big Pixel Charge (OnTrack)",
69  range_min = 0, range_max = 80e3, range_nbins = 100,
70  xlabel = "Charge (electrons)",
71 
72  specs = VPSet(
73  Specification().groupBy("PXBarrel").save(),
74  Specification().groupBy("PXForward").save(),
75  Specification().groupBy("PXBarrel/PXLayer").save(),
76  Specification().groupBy("PXForward/PXDisk").save()
77  )
78 )
79 
80 SiPixelPhase1TrackClustersOnTrackNotBigPixelCharge = DefaultHistoTrack.clone(
81  name = "notbigpixelcharge",
82  title = "Corrected Not Big Pixel Charge (OnTrack)",
83  range_min = 0, range_max = 80e3, range_nbins = 100,
84  xlabel = "Charge (electrons)",
85  enabled=False,
86 
87  specs = VPSet(
88  Specification().groupBy("PXBarrel").save(),
89  Specification().groupBy("PXForward").save(),
90  Specification().groupBy("PXBarrel/PXLayer").save(),
91  Specification().groupBy("PXForward/PXDisk").save()
92  )
93 )
94 
95 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
96  name = "size",
97  title = "Total Cluster Size (OnTrack)",
98  range_min = 0, range_max = 30, range_nbins = 30,
99  xlabel = "size[pixels]",
100 
101  specs = VPSet(
102  StandardSpecifications1D,
103  StandardSpecification2DProfile,
104 
105  Specification().groupBy("PXForward/PXRing").save(),
106 
107  Specification(PerModule).groupBy("PXForward/PXRing/Lumisection")
108  .reduce("MEAN")
109  .groupBy("PXForward/PXRing","EXTEND_X")
110  .save(),
111 
112  Specification(IsOffline).groupBy("PXForward/PXRing/LumiBlock")
113  .reduce("MEAN")
114  .groupBy("PXForward/PXRing","EXTEND_X")
115  .save(),
116 
117  Specification(PerModule).groupBy("PXBarrel/PXLayer/Lumisection")
118  .reduce("MEAN")
119  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
120  .save(),
121 
122  Specification(PerModule).groupBy("PXForward/PXDisk/Lumisection")
123  .reduce("MEAN")
124  .groupBy("PXForward/PXDisk", "EXTEND_X")
125  .save(),
126 
127  Specification(IsOffline).groupBy("PXBarrel/PXLayer/LumiBlock")
128  .reduce("MEAN")
129  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
130  .save(),
131 
132  Specification(IsOffline).groupBy("PXForward/PXDisk/LumiBlock")
133  .reduce("MEAN")
134  .groupBy("PXForward/PXDisk", "EXTEND_X")
135  .save()
136  )
137 )
138 
139 SiPixelPhase1TrackClustersOnTrackShape = DefaultHistoTrack.clone(
140  topFolderName = "PixelPhase1/ClusterShape",
141  name = "shapeFilter",
142  title = "Shape filter (OnTrack)",
143  range_min = 0, range_max = 2, range_nbins = 2,
144  xlabel = "shapeFilter",
145 
146  specs = VPSet(
147  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
148  Specification().groupBy("PXForward/PXDisk").saveAll(),
149  StandardSpecification2DProfile,
150 
151  Specification(PerModule).groupBy("PXBarrel/PXLayer/Lumisection")
152  .reduce("MEAN")
153  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
154  .save(),
155 
156  Specification(PerModule).groupBy("PXForward/PXDisk/Lumisection")
157  .reduce("MEAN")
158  .groupBy("PXForward/PXDisk", "EXTEND_X")
159  .save(),
160 
161  Specification(IsOffline).groupBy("PXBarrel/PXLayer/LumiBlock")
162  .reduce("MEAN")
163  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
164  .save(),
165 
166  Specification(IsOffline).groupBy("PXForward/PXDisk/LumiBlock")
167  .reduce("MEAN")
168  .groupBy("PXForward/PXDisk", "EXTEND_X")
169  .save(),
170 
171  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
172  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
173 
174  )
175 )
176 
177 
178 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
179  name = "clusters_ontrack",
180  title = "Clusters_onTrack (valid hits)",
181  range_min = 0, range_max = 30, range_nbins = 30,
182  xlabel = "clusters",
183  dimensions = 0,
184 
185  specs = VPSet(
186 
187  StandardSpecificationTrend_Num,
188  StandardSpecification2DProfile_Num,
189 
190  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
191  .reduce("COUNT")
192  .groupBy("PXBarrel/PXLayer")
193  .save(nbins=50, xmin=0, xmax=5000),
194 
195  Specification().groupBy("PXForward/PXDisk/Event")
196  .reduce("COUNT")
197  .groupBy("PXForward/PXDisk/")
198  .save(nbins=50, xmin=0, xmax=2000),
199 
200  Specification().groupBy("PXBarrel/Event")
201  .reduce("COUNT")
202  .groupBy("PXBarrel")
203  .save(nbins=100, xmin=0, xmax=5000),
204 
205  Specification().groupBy("PXForward/Event")
206  .reduce("COUNT")
207  .groupBy("PXForward")
208  .save(nbins=100, xmin=0, xmax=5000),
209 
210  Specification().groupBy("PXAll/Event")
211  .reduce("COUNT")
212  .groupBy("PXAll")
213  .save(nbins=100, xmin=0, xmax=5000),
214 
215  Specification().groupBy("BX")
216  .groupBy("", "EXTEND_X").save(),
217 
218  Specification(PerModule).groupBy("PXBarrel/PXLayer/Event")
219  .reduce("COUNT")
220  .groupBy("PXBarrel/PXLayer/Lumisection")
221  .reduce("MEAN")
222  .groupBy("PXBarrel/PXLayer","EXTEND_X")
223  .save(),
224 
225  Specification(PerModule).groupBy("PXForward/PXDisk/Event")
226  .reduce("COUNT")
227  .groupBy("PXForward/PXDisk/Lumisection")
228  .reduce("MEAN")
229  .groupBy("PXForward/PXDisk","EXTEND_X")
230  .save(),
231 
232  Specification(IsOffline).groupBy("PXBarrel/PXLayer/Event")
233  .reduce("COUNT")
234  .groupBy("PXBarrel/PXLayer/LumiBlock")
235  .reduce("MEAN")
236  .groupBy("PXBarrel/PXLayer","EXTEND_X")
237  .save(),
238 
239  Specification(IsOffline).groupBy("PXForward/PXDisk/Event")
240  .reduce("COUNT")
241  .groupBy("PXForward/PXDisk/LumiBlock")
242  .reduce("MEAN")
243  .groupBy("PXForward/PXDisk","EXTEND_X")
244  .save(),
245 
246  #below is for timing client
247  Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
248  .reduce("COUNT")
249  .groupBy("PXForward/OnlineBlock")
250  .groupBy("PXForward", "EXTEND_Y")
251  .save(),
252 
253  Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
254  .reduce("COUNT")
255  .groupBy("PXBarrel/OnlineBlock")
256  .groupBy("PXBarrel", "EXTEND_Y")
257  .save()
258 
259  )
260 )
261 
262 
263 SiPixelPhase1TrackClustersOnTrackPositionB = DefaultHistoTrack.clone(
264  name = "clusterposition_zphi_ontrack",
265  title = "Cluster_onTrack Positions",
266  range_min = -60, range_max = 60, range_nbins = 300,
267  range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
268  xlabel = "Global Z", ylabel = "Global \phi",
269  dimensions = 2,
270  specs = VPSet(
271  Specification().groupBy("PXBarrel/PXLayer").save(),
272  Specification().groupBy("").save(),
273  )
274 )
275 
276 SiPixelPhase1TrackClustersOnTrackPositionF = DefaultHistoTrack.clone(
277  name = "clusterposition_xy_ontrack",
278  title = "Cluster_onTrack Positions",
279  xlabel = "Global X", ylabel = "Global Y",
280  range_min = -20, range_max = 20, range_nbins = 200,
281  range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
282  dimensions = 2,
283  specs = VPSet(
284  Specification().groupBy("PXForward/PXDisk").save(),
285  )
286 )
287 
288 SiPixelPhase1DigisHitmapOnTrack = DefaultHistoTrack.clone(
289  name = "digi_occupancy_ontrack",
290  title = "Digi Occupancy (OnTrack)",
291  ylabel = "#digis",
292  dimensions = 0,
293  specs = VPSet(
294  Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row/col")
295  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row", "EXTEND_X")
296  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName", "EXTEND_Y")
297  .save(),
298  Specification(PerModule).groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row/col")
299  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row", "EXTEND_X")
300  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName", "EXTEND_Y")
301  .save(),
302  StandardSpecificationOccupancy,
303  )
304 )
305 
306 SiPixelPhase1DigisNdigisOnTrack = DefaultHistoTrack.clone(
307  name = "digis on-track", # 'Count of' added automatically
308  title = "Digis on-track",
309  xlabel = "digis (on-track)",
310  range_min = 0,
311  range_max = 300,
312  range_nbins = 50,
313  dimensions = 0, # this is a count
314 
315  specs = VPSet(
316  StandardSpecificationTrend_Num,
317  StandardSpecification2DProfile_Num,
318 
319  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
320  .reduce("COUNT")
321  .groupBy("PXBarrel/PXLayer")
322  .save(nbins=100, xmin=0, xmax=40000),
323  Specification().groupBy("PXForward/PXDisk/Event")
324  .reduce("COUNT")
325  .groupBy("PXForward/PXDisk/")
326  .save(nbins=100, xmin=0, xmax=20000),
327  )
328 )
329 
330 
331 
332 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
333  name = "ntracks",
334  title = "Number of Tracks",
335  xlabel = "All - Pixel - BPIX - FPIX",
336  range_min = 1, range_max = 5, range_nbins = 4,
337  dimensions = 1,
338  specs = VPSet(
339  Specification().groupBy("").save()
340  )
341 )
342 
343 SiPixelPhase1TrackClustersNTracksInVolume = DefaultHistoTrack.clone(
344  name = "ntracksinpixvolume",
345  title = "Number of Tracks in Pixel fiducial Volume",
346  xlabel = "without hits - with hits",
347  range_min = 0, range_max = 2, range_nbins = 2,
348  dimensions = 1,
349  specs = VPSet(
350  Specification().groupBy("").save()
351  )
352 )
353 
354 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter = DefaultHistoTrack.clone(
355  name = "sizeyvseta_on_track_outer",
356  title = "Cluster Size along Beamline vs. Track #eta (OnTrack) outer ladders",
357  xlabel = "Track #eta",
358  ylabel = "length [pixels]",
359  range_min = -3.2, range_max = 3.2, range_nbins = 64,
360  range_y_min = 0, range_y_max = 30, range_y_nbins = 30,
361  dimensions = 2,
362  specs = VPSet(
363  Specification().groupBy("PXBarrel/PXLayer").save()
364  )
365 )
366 
367 SiPixelPhase1ClustersSizeVsEtaOnTrackInner = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
368  name = "sizeyvseta_on_track_inner",
369  title = "Cluster Size along Beamline vs. Track #eta (OnTrack) inner ladders",
370 )
371 
372 
373 SiPixelPhase1TrackClustersOnTrackSizeYOuter = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
374  topFolderName = "PixelPhase1/ClusterShape",
375  name = "sizey_on_track_outer",
376  title = "Cluster Size along Beamline vs. prediction (OnTrack) outer ladders",
377  xlabel = "prediction",
378  ylabel = "length [pixels]",
379  range_min = 0, range_max = 30, range_nbins = 60
380 )
381 
382 SiPixelPhase1TrackClustersOnTrackSizeYInner = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
383  name = "sizey_on_track_inner",
384  title = "Cluster Size along Beamline vs. prediction (OnTrack) inner ladders",
385 )
386 
387 SiPixelPhase1TrackClustersOnTrackSizeYF = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
388  name = "sizey_on_track_forward",
389  title = "Cluster Size ortogonal to Beamline vs. prediction (OnTrack) forward",
390  range_y_min = 0, range_y_max = 10, range_y_nbins = 10,
391  range_min = 0, range_max = 10, range_nbins = 20,
392  specs = VPSet(
393  Specification().groupBy("PXForward/PXDisk").save(),
394  )
395 )
396 
397 
398 SiPixelPhase1TrackClustersOnTrackSizeXOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
399  name = "sizex_on_track_outer",
400  title = "Cluster Size along radial vs. prediction (OnTrack) outer ladders",
401  range_min = 0, range_max = 8, range_nbins = 16,
402  range_y_min = 0, range_y_max = 8, range_y_nbins = 8
403 
404 )
405 
406 SiPixelPhase1TrackClustersOnTrackSizeXInner = SiPixelPhase1TrackClustersOnTrackSizeXOuter.clone(
407  name = "sizex_on_track_inner",
408  title = "Cluster Size along radial vs. prediction (OnTrack) inner ladders",
409 )
410 
411 SiPixelPhase1TrackClustersOnTrackSizeXF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
412  name = "sizex_on_track_forward",
413  title = "Cluster Size radial vs. prediction (OnTrack) forward",
414 )
415 
416 
417 
418 SiPixelPhase1TrackClustersOnTrackSizeXYOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
419  name = "sizexy_on_track_outer",
420  title = "Cluster Size x vs y (OnTrack) outer ladders",
421  xlabel = "y size",
422  ylabel = "x size",
423  range_min = 0, range_max = 20, range_nbins = 20,
424  range_y_min = 0, range_y_max = 10, range_y_nbins = 10
425 )
426 
427 SiPixelPhase1TrackClustersOnTrackSizeXYInner = SiPixelPhase1TrackClustersOnTrackSizeXYOuter.clone(
428  name = "sizexy_on_track_inner",
429  title = "Cluster Size x vs y (OnTrack) inner ladders"
430 )
431 
432 SiPixelPhase1TrackClustersOnTrackSizeXYF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
433  name = "sizexy_on_track_forward",
434  title = "Cluster Size x vs y (OnTrack) forward",
435  xlabel = "y size",
436  ylabel = "x size",
437  range_min = 0, range_max = 10, range_nbins = 10,
438  range_y_min = 0, range_y_max = 10, range_y_nbins = 10
439 
440 )
441 
442 SiPixelPhase1ClustersChargeVsSizeOnTrack = DefaultHistoTrack.clone(
443  name = "chargevssize_on_track",
444  title = "Cluster Charge vs. Cluster Size (OnTrack)",
445  xlabel = "size[pixels]",
446  ylabel = "Cluster charge",
447  range_min = 0, range_max = 30, range_nbins = 15,
448  range_y_min = 0, range_y_max = 80e3, range_y_nbins = 100,
449  dimensions = 2,
450  specs = VPSet(
451  Specification().groupBy("PXBarrel/PXLayer").save(),
452  Specification().groupBy("PXForward/PXDisk").save()
453  )
454 )
455 
456 SiPixelPhase1TrackClustersOnTrackChargeOuter = DefaultHistoTrack.clone(
457  name = "chargeOuter",
458  title = "Corrected Cluster Charge (OnTrack) outer ladders",
459  range_min = 0, range_max = 80e3, range_nbins = 100,
460  xlabel = "Charge (electrons)",
461 
462  specs = VPSet(
463  Specification().groupBy("PXBarrel/PXLayer").save()
464  )
465 )
466 
467 SiPixelPhase1TrackClustersOnTrackChargeInner = SiPixelPhase1TrackClustersOnTrackChargeOuter.clone(
468  name = "chargeInner",
469  title = "Corrected Cluster Charge (OnTrack) inner ladders"
470 )
471 
472 SiPixelPhase1TrackClustersOnTrackShapeOuter = DefaultHistoTrack.clone(
473  topFolderName = "PixelPhase1/ClusterShape",
474  name = "shapeFilterOuter",
475  title = "Shape filter (OnTrack) Outer Ladders",
476  range_min = 0, range_max = 2, range_nbins = 2,
477  xlabel = "shapeFilter",
478  specs = VPSet(
479  Specification().groupBy("PXBarrel/PXLayer").save()
480  )
481 )
482 
483 SiPixelPhase1TrackClustersOnTrackShapeInner = SiPixelPhase1TrackClustersOnTrackShapeOuter.clone(
484  name = "shapeFilterInner",
485  title = "Shape filter (OnTrack) Inner Ladders",
486 )
487 
488 # copy this in the enum
489 SiPixelPhase1TrackClustersConf = cms.VPSet(
490  SiPixelPhase1TrackClustersOnTrackCharge,
491  SiPixelPhase1TrackClustersOnTrackBigPixelCharge,
492  SiPixelPhase1TrackClustersOnTrackNotBigPixelCharge,
493  SiPixelPhase1TrackClustersOnTrackSize,
494  SiPixelPhase1TrackClustersOnTrackShape,
495  SiPixelPhase1TrackClustersOnTrackNClusters,
496  SiPixelPhase1TrackClustersOnTrackPositionB,
497  SiPixelPhase1TrackClustersOnTrackPositionF,
498  SiPixelPhase1DigisHitmapOnTrack,
499  SiPixelPhase1DigisNdigisOnTrack,
500 
501  SiPixelPhase1TrackClustersNTracks,
502  SiPixelPhase1TrackClustersNTracksInVolume,
503 
504  SiPixelPhase1ClustersSizeVsEtaOnTrackOuter,
505  SiPixelPhase1ClustersSizeVsEtaOnTrackInner,
506  SiPixelPhase1TrackClustersOnTrackChargeOuter,
507  SiPixelPhase1TrackClustersOnTrackChargeInner,
508 
509  SiPixelPhase1TrackClustersOnTrackShapeOuter,
510  SiPixelPhase1TrackClustersOnTrackShapeInner,
511 
512  SiPixelPhase1TrackClustersOnTrackSizeXOuter,
513  SiPixelPhase1TrackClustersOnTrackSizeXInner,
514  SiPixelPhase1TrackClustersOnTrackSizeXF,
515  SiPixelPhase1TrackClustersOnTrackSizeYOuter,
516  SiPixelPhase1TrackClustersOnTrackSizeYInner,
517  SiPixelPhase1TrackClustersOnTrackSizeYF,
518 
519  SiPixelPhase1TrackClustersOnTrackSizeXYOuter,
520  SiPixelPhase1TrackClustersOnTrackSizeXYInner,
521  SiPixelPhase1TrackClustersOnTrackSizeXYF,
522  SiPixelPhase1ClustersChargeVsSizeOnTrack
523 )
524 
525 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
526 SiPixelPhase1TrackClustersAnalyzer = DQMEDAnalyzer('SiPixelPhase1TrackClusters',
527  clusters = cms.InputTag("siPixelClusters"),
528  clusterShapeCache = cms.InputTag("siPixelClusterShapeCache"),
529  tracks = cms.InputTag("generalTracks"),
530  vertices = cms.InputTag("offlinePrimaryVertices"),
531  histograms = SiPixelPhase1TrackClustersConf,
532  geometry = SiPixelPhase1Geometry,
533  triggerflags = trigger.SiPixelPhase1Triggers
534 )
535 
536 SiPixelPhase1TrackClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
537  histograms = SiPixelPhase1TrackClustersConf,
538  geometry = SiPixelPhase1Geometry
539 )
save
Definition: cuy.py:1164