1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1TrackClustersOnTrackCharge = DefaultHistoTrack.clone(
8 title =
"Corrected Cluster Charge (OnTrack)",
9 range_min = 0, range_max = 80e3, range_nbins = 100,
10 xlabel =
"Charge (electrons)",
13 StandardSpecifications1D,
14 StandardSpecification2DProfile,
17 Specification(OverlayCurvesForTiming).groupBy(
"PXBarrel/OnlineBlock")
18 .groupBy(
"PXBarrel",
"EXTEND_Y")
20 Specification(OverlayCurvesForTiming).groupBy(
"PXForward/OnlineBlock")
21 .groupBy(
"PXForward",
"EXTEND_Y")
24 Specification().groupBy(
"PXForward/PXRing").
save(),
26 Specification(PerModule).groupBy(
"PXForward/PXRing/Lumisection")
28 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
31 Specification(IsOffline).groupBy(
"PXForward/PXRing/LumiBlock")
33 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
37 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
39 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
42 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
44 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
47 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
49 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
52 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
54 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
57 Specification(OverlayCurvesForTiming).groupBy(
"PXForward/PXDisk/OnlineBlock")
58 .groupBy(
"PXForward/PXDisk",
"EXTEND_Y")
60 Specification(OverlayCurvesForTiming).groupBy(
"PXBarrel/PXLayer/OnlineBlock")
61 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
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)",
73 Specification().groupBy(
"PXBarrel").
save(),
74 Specification().groupBy(
"PXForward").
save(),
75 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
76 Specification().groupBy(
"PXForward/PXDisk").
save()
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)",
88 Specification().groupBy(
"PXBarrel").
save(),
89 Specification().groupBy(
"PXForward").
save(),
90 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
91 Specification().groupBy(
"PXForward/PXDisk").
save()
95 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
97 title =
"Total Cluster Size (OnTrack)",
98 range_min = 0, range_max = 30, range_nbins = 30,
99 xlabel =
"size[pixels]",
102 StandardSpecifications1D,
103 StandardSpecification2DProfile,
105 Specification().groupBy(
"PXForward/PXRing").
save(),
107 Specification(PerModule).groupBy(
"PXForward/PXRing/Lumisection")
109 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
112 Specification(IsOffline).groupBy(
"PXForward/PXRing/LumiBlock")
114 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
117 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
119 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
122 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
124 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
127 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
129 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
132 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
134 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
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",
147 Specification().groupBy(
"PXBarrel/PXLayer").saveAll(),
148 Specification().groupBy(
"PXForward/PXDisk").saveAll(),
149 StandardSpecification2DProfile,
151 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
153 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
156 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
158 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
161 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
163 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
166 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
168 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
171 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
172 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save()
178 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
179 name =
"clusters_ontrack",
180 title =
"Clusters_onTrack (valid hits)",
181 range_min = 0, range_max = 30, range_nbins = 30,
187 StandardSpecificationTrend_Num,
188 StandardSpecification2DProfile_Num,
190 Specification().groupBy(
"PXBarrel/PXLayer/Event")
192 .groupBy(
"PXBarrel/PXLayer")
193 .
save(nbins=50, xmin=0, xmax=5000),
195 Specification().groupBy(
"PXForward/PXDisk/Event")
197 .groupBy(
"PXForward/PXDisk/")
198 .
save(nbins=50, xmin=0, xmax=2000),
200 Specification().groupBy(
"PXBarrel/Event")
203 .
save(nbins=100, xmin=0, xmax=5000),
205 Specification().groupBy(
"PXForward/Event")
207 .groupBy(
"PXForward")
208 .
save(nbins=100, xmin=0, xmax=5000),
210 Specification().groupBy(
"PXAll/Event")
213 .
save(nbins=100, xmin=0, xmax=5000),
215 Specification().groupBy(
"BX")
216 .groupBy(
"",
"EXTEND_X").
save(),
218 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Event")
220 .groupBy(
"PXBarrel/PXLayer/Lumisection")
222 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
225 Specification(PerModule).groupBy(
"PXForward/PXDisk/Event")
227 .groupBy(
"PXForward/PXDisk/Lumisection")
229 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
232 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/Event")
234 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
236 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
239 Specification(IsOffline).groupBy(
"PXForward/PXDisk/Event")
241 .groupBy(
"PXForward/PXDisk/LumiBlock")
243 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
247 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
249 .groupBy(
"PXForward/OnlineBlock")
250 .groupBy(
"PXForward",
"EXTEND_Y")
253 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
255 .groupBy(
"PXBarrel/OnlineBlock")
256 .groupBy(
"PXBarrel",
"EXTEND_Y")
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",
271 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
272 Specification().groupBy(
"").
save(),
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,
284 Specification().groupBy(
"PXForward/PXDisk").
save(),
288 SiPixelPhase1DigisHitmapOnTrack = DefaultHistoTrack.clone(
289 name =
"digi_occupancy_ontrack",
290 title =
"Digi Occupancy (OnTrack)",
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")
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")
302 StandardSpecificationOccupancy,
306 SiPixelPhase1DigisNdigisOnTrack = DefaultHistoTrack.clone(
307 name =
"digis on-track",
308 title =
"Digis on-track",
309 xlabel =
"digis (on-track)",
316 StandardSpecificationTrend_Num,
317 StandardSpecification2DProfile_Num,
319 Specification().groupBy(
"PXBarrel/PXLayer/Event")
321 .groupBy(
"PXBarrel/PXLayer")
322 .
save(nbins=100, xmin=0, xmax=40000),
323 Specification().groupBy(
"PXForward/PXDisk/Event")
325 .groupBy(
"PXForward/PXDisk/")
326 .
save(nbins=100, xmin=0, xmax=20000),
332 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
334 title =
"Number of Tracks",
335 xlabel =
"All - Pixel - BPIX - FPIX",
336 range_min = 1, range_max = 5, range_nbins = 4,
339 Specification().groupBy(
"").
save()
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,
350 Specification().groupBy(
"").
save()
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,
363 Specification().groupBy(
"PXBarrel/PXLayer").
save()
367 SiPixelPhase1ClustersSizeVsEtaOnTrackInner = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
368 name =
"sizeyvseta_on_track_inner",
369 title =
"Cluster Size along Beamline vs. Track #eta (OnTrack) inner ladders",
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
382 SiPixelPhase1TrackClustersOnTrackSizeYInner = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
383 name =
"sizey_on_track_inner",
384 title =
"Cluster Size along Beamline vs. prediction (OnTrack) inner ladders",
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,
393 Specification().groupBy(
"PXForward/PXDisk").
save(),
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
406 SiPixelPhase1TrackClustersOnTrackSizeXInner = SiPixelPhase1TrackClustersOnTrackSizeXOuter.clone(
407 name =
"sizex_on_track_inner",
408 title =
"Cluster Size along radial vs. prediction (OnTrack) inner ladders",
411 SiPixelPhase1TrackClustersOnTrackSizeXF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
412 name =
"sizex_on_track_forward",
413 title =
"Cluster Size radial vs. prediction (OnTrack) forward",
418 SiPixelPhase1TrackClustersOnTrackSizeXYOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
419 name =
"sizexy_on_track_outer",
420 title =
"Cluster Size x vs y (OnTrack) outer ladders",
423 range_min = 0, range_max = 20, range_nbins = 20,
424 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
427 SiPixelPhase1TrackClustersOnTrackSizeXYInner = SiPixelPhase1TrackClustersOnTrackSizeXYOuter.clone(
428 name =
"sizexy_on_track_inner",
429 title =
"Cluster Size x vs y (OnTrack) inner ladders"
432 SiPixelPhase1TrackClustersOnTrackSizeXYF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
433 name =
"sizexy_on_track_forward",
434 title =
"Cluster Size x vs y (OnTrack) forward",
437 range_min = 0, range_max = 10, range_nbins = 10,
438 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
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,
451 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
452 Specification().groupBy(
"PXForward/PXDisk").
save()
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)",
463 Specification().groupBy(
"PXBarrel/PXLayer").
save()
467 SiPixelPhase1TrackClustersOnTrackChargeInner = SiPixelPhase1TrackClustersOnTrackChargeOuter.clone(
468 name =
"chargeInner",
469 title =
"Corrected Cluster Charge (OnTrack) inner ladders"
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",
479 Specification().groupBy(
"PXBarrel/PXLayer").
save()
483 SiPixelPhase1TrackClustersOnTrackShapeInner = SiPixelPhase1TrackClustersOnTrackShapeOuter.clone(
484 name =
"shapeFilterInner",
485 title =
"Shape filter (OnTrack) Inner Ladders",
489 SiPixelPhase1TrackClustersConf = cms.VPSet(
490 SiPixelPhase1TrackClustersOnTrackCharge,
491 SiPixelPhase1TrackClustersOnTrackBigPixelCharge,
492 SiPixelPhase1TrackClustersOnTrackNotBigPixelCharge,
493 SiPixelPhase1TrackClustersOnTrackSize,
494 SiPixelPhase1TrackClustersOnTrackShape,
495 SiPixelPhase1TrackClustersOnTrackNClusters,
496 SiPixelPhase1TrackClustersOnTrackPositionB,
497 SiPixelPhase1TrackClustersOnTrackPositionF,
498 SiPixelPhase1DigisHitmapOnTrack,
499 SiPixelPhase1DigisNdigisOnTrack,
501 SiPixelPhase1TrackClustersNTracks,
502 SiPixelPhase1TrackClustersNTracksInVolume,
504 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter,
505 SiPixelPhase1ClustersSizeVsEtaOnTrackInner,
506 SiPixelPhase1TrackClustersOnTrackChargeOuter,
507 SiPixelPhase1TrackClustersOnTrackChargeInner,
509 SiPixelPhase1TrackClustersOnTrackShapeOuter,
510 SiPixelPhase1TrackClustersOnTrackShapeInner,
512 SiPixelPhase1TrackClustersOnTrackSizeXOuter,
513 SiPixelPhase1TrackClustersOnTrackSizeXInner,
514 SiPixelPhase1TrackClustersOnTrackSizeXF,
515 SiPixelPhase1TrackClustersOnTrackSizeYOuter,
516 SiPixelPhase1TrackClustersOnTrackSizeYInner,
517 SiPixelPhase1TrackClustersOnTrackSizeYF,
519 SiPixelPhase1TrackClustersOnTrackSizeXYOuter,
520 SiPixelPhase1TrackClustersOnTrackSizeXYInner,
521 SiPixelPhase1TrackClustersOnTrackSizeXYF,
522 SiPixelPhase1ClustersChargeVsSizeOnTrack
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
537 histograms = SiPixelPhase1TrackClustersConf,
538 geometry = SiPixelPhase1Geometry