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 SiPixelPhase1TrackClustersOnTrackCorrCharge = DefaultHistoTrack.clone(
68 title =
"Template Corrected Cluster 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(),
77 Specification().groupBy(
"PXForward/PXRing").
save(),
81 SiPixelPhase1TrackTemplateCorr = SiPixelPhase1TrackClustersOnTrackCorrCharge.clone(
82 name =
"template_corr",
83 title =
"Template Correction",
84 range_min = 0, range_max = 3, range_nbins = 150,
88 SiPixelPhase1TrackClustersOnTrackBigPixelCharge = DefaultHistoTrack.clone(
89 name =
"bigpixelcharge",
90 title =
"Corrected Big Pixel Charge (OnTrack)",
91 range_min = 0, range_max = 80e3, range_nbins = 100,
92 xlabel =
"Charge (electrons)",
95 Specification().groupBy(
"PXBarrel").
save(),
96 Specification().groupBy(
"PXForward").
save(),
97 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
98 Specification().groupBy(
"PXForward/PXDisk").
save()
102 SiPixelPhase1TrackClustersOnTrackNotBigPixelCharge = DefaultHistoTrack.clone(
103 name =
"notbigpixelcharge",
104 title =
"Corrected Not Big Pixel Charge (OnTrack)",
105 range_min = 0, range_max = 80e3, range_nbins = 100,
106 xlabel =
"Charge (electrons)",
110 Specification().groupBy(
"PXBarrel").
save(),
111 Specification().groupBy(
"PXForward").
save(),
112 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
113 Specification().groupBy(
"PXForward/PXDisk").
save()
117 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
119 title =
"Total Cluster Size (OnTrack)",
120 range_min = 0, range_max = 30, range_nbins = 30,
121 xlabel =
"size[pixels]",
124 StandardSpecifications1D,
125 StandardSpecification2DProfile,
127 Specification().groupBy(
"PXForward/PXRing").
save(),
129 Specification(PerModule).groupBy(
"PXForward/PXRing/Lumisection")
131 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
134 Specification(IsOffline).groupBy(
"PXForward/PXRing/LumiBlock")
136 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
139 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
141 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
144 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
146 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
149 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
151 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
154 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
156 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
161 SiPixelPhase1TrackClustersOnTrackShape = DefaultHistoTrack.clone(
162 topFolderName =
"PixelPhase1/ClusterShape",
163 name =
"shapeFilter",
164 title =
"Shape filter (OnTrack)",
165 range_min = 0, range_max = 2, range_nbins = 2,
166 xlabel =
"shapeFilter",
169 Specification().groupBy(
"PXBarrel/PXLayer").saveAll(),
170 Specification().groupBy(
"PXForward/PXDisk").saveAll(),
171 StandardSpecification2DProfile,
173 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
175 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
178 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
180 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
183 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
185 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
188 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
190 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
193 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
194 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save()
200 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
201 name =
"clusters_ontrack",
202 title =
"Clusters_onTrack (valid hits)",
203 range_min = 0, range_max = 30, range_nbins = 30,
209 StandardSpecificationTrend_Num,
210 StandardSpecification2DProfile_Num,
212 Specification().groupBy(
"PXBarrel/PXLayer/Event")
214 .groupBy(
"PXBarrel/PXLayer")
215 .
save(nbins=50, xmin=0, xmax=5000),
217 Specification().groupBy(
"PXForward/PXDisk/Event")
219 .groupBy(
"PXForward/PXDisk/")
220 .
save(nbins=50, xmin=0, xmax=2000),
222 Specification().groupBy(
"PXBarrel/Event")
225 .
save(nbins=100, xmin=0, xmax=5000),
227 Specification().groupBy(
"PXForward/Event")
229 .groupBy(
"PXForward")
230 .
save(nbins=100, xmin=0, xmax=5000),
232 Specification().groupBy(
"PXAll/Event")
235 .
save(nbins=100, xmin=0, xmax=5000),
237 Specification().groupBy(
"BX")
238 .groupBy(
"",
"EXTEND_X").
save(),
240 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Event")
242 .groupBy(
"PXBarrel/PXLayer/Lumisection")
244 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
247 Specification(PerModule).groupBy(
"PXForward/PXDisk/Event")
249 .groupBy(
"PXForward/PXDisk/Lumisection")
251 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
254 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/Event")
256 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
258 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
261 Specification(IsOffline).groupBy(
"PXForward/PXDisk/Event")
263 .groupBy(
"PXForward/PXDisk/LumiBlock")
265 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
269 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
271 .groupBy(
"PXForward/OnlineBlock")
272 .groupBy(
"PXForward",
"EXTEND_Y")
275 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
277 .groupBy(
"PXBarrel/OnlineBlock")
278 .groupBy(
"PXBarrel",
"EXTEND_Y")
285 SiPixelPhase1TrackClustersOnTrackPositionB = DefaultHistoTrack.clone(
286 name =
"clusterposition_zphi_ontrack",
287 title =
"Cluster_onTrack Positions",
288 range_min = -60, range_max = 60, range_nbins = 300,
289 range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
290 xlabel =
"Global Z", ylabel =
"Global \phi",
293 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
294 Specification().groupBy(
"").
save(),
298 SiPixelPhase1TrackClustersOnTrackPositionF = DefaultHistoTrack.clone(
299 name =
"clusterposition_xy_ontrack",
300 title =
"Cluster_onTrack Positions",
301 xlabel =
"Global X", ylabel =
"Global Y",
302 range_min = -20, range_max = 20, range_nbins = 200,
303 range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
306 Specification().groupBy(
"PXForward/PXDisk").
save(),
310 SiPixelPhase1DigisHitmapOnTrack = DefaultHistoTrack.clone(
311 name =
"digi_occupancy_ontrack",
312 title =
"Digi Occupancy (OnTrack)",
316 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row/col")
317 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row",
"EXTEND_X")
318 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName",
"EXTEND_Y")
320 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row/col")
321 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row",
"EXTEND_X")
322 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName",
"EXTEND_Y")
324 StandardSpecificationOccupancy,
328 SiPixelPhase1DigisNdigisOnTrack = DefaultHistoTrack.clone(
329 name =
"digis on-track",
330 title =
"Digis on-track",
331 xlabel =
"digis (on-track)",
338 StandardSpecificationTrend_Num,
339 StandardSpecification2DProfile_Num,
341 Specification().groupBy(
"PXBarrel/PXLayer/Event")
343 .groupBy(
"PXBarrel/PXLayer")
344 .
save(nbins=100, xmin=0, xmax=40000),
345 Specification().groupBy(
"PXForward/PXDisk/Event")
347 .groupBy(
"PXForward/PXDisk/")
348 .
save(nbins=100, xmin=0, xmax=20000),
354 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
356 title =
"Number of Tracks",
357 xlabel =
"All - Pixel - BPIX - FPIX",
358 range_min = 1, range_max = 5, range_nbins = 4,
361 Specification().groupBy(
"").
save()
365 SiPixelPhase1TrackClustersNTracksInVolume = DefaultHistoTrack.clone(
366 name =
"ntracksinpixvolume",
367 title =
"Number of Tracks in Pixel fiducial Volume",
368 xlabel =
"without hits - with hits",
369 range_min = 0, range_max = 2, range_nbins = 2,
372 Specification().groupBy(
"").
save()
376 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter = DefaultHistoTrack.clone(
377 name =
"sizeyvseta_on_track_outer",
378 title =
"Cluster Size along Beamline vs. Track #eta (OnTrack) outer ladders",
379 xlabel =
"Track #eta",
380 ylabel =
"length [pixels]",
381 range_min = -3.2, range_max = 3.2, range_nbins = 64,
382 range_y_min = 0, range_y_max = 30, range_y_nbins = 30,
385 Specification().groupBy(
"PXBarrel/PXLayer").
save()
389 SiPixelPhase1ClustersSizeVsEtaOnTrackInner = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
390 name =
"sizeyvseta_on_track_inner",
391 title =
"Cluster Size along Beamline vs. Track #eta (OnTrack) inner ladders",
395 SiPixelPhase1TrackClustersOnTrackSizeYOuter = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
396 topFolderName =
"PixelPhase1/ClusterShape",
397 name =
"sizey_on_track_outer",
398 title =
"Cluster Size along Beamline vs. prediction (OnTrack) outer ladders",
399 xlabel =
"prediction",
400 ylabel =
"length [pixels]",
401 range_min = 0, range_max = 30, range_nbins = 60
404 SiPixelPhase1TrackClustersOnTrackSizeYInner = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
405 name =
"sizey_on_track_inner",
406 title =
"Cluster Size along Beamline vs. prediction (OnTrack) inner ladders",
409 SiPixelPhase1TrackClustersOnTrackSizeYF = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
410 name =
"sizey_on_track_forward",
411 title =
"Cluster Size ortogonal to Beamline vs. prediction (OnTrack) forward",
412 range_y_min = 0, range_y_max = 10, range_y_nbins = 10,
413 range_min = 0, range_max = 10, range_nbins = 20,
415 Specification().groupBy(
"PXForward/PXDisk").
save(),
420 SiPixelPhase1TrackClustersOnTrackSizeXOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
421 name =
"sizex_on_track_outer",
422 title =
"Cluster Size along radial vs. prediction (OnTrack) outer ladders",
423 range_min = 0, range_max = 8, range_nbins = 16,
424 range_y_min = 0, range_y_max = 8, range_y_nbins = 8
428 SiPixelPhase1TrackClustersOnTrackSizeXInner = SiPixelPhase1TrackClustersOnTrackSizeXOuter.clone(
429 name =
"sizex_on_track_inner",
430 title =
"Cluster Size along radial vs. prediction (OnTrack) inner ladders",
433 SiPixelPhase1TrackClustersOnTrackSizeXF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
434 name =
"sizex_on_track_forward",
435 title =
"Cluster Size radial vs. prediction (OnTrack) forward",
440 SiPixelPhase1TrackClustersOnTrackSizeXYOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
441 name =
"sizexy_on_track_outer",
442 title =
"Cluster Size x vs y (OnTrack) outer ladders",
445 range_min = 0, range_max = 20, range_nbins = 20,
446 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
449 SiPixelPhase1TrackClustersOnTrackSizeXYInner = SiPixelPhase1TrackClustersOnTrackSizeXYOuter.clone(
450 name =
"sizexy_on_track_inner",
451 title =
"Cluster Size x vs y (OnTrack) inner ladders" 454 SiPixelPhase1TrackClustersOnTrackSizeXYF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
455 name =
"sizexy_on_track_forward",
456 title =
"Cluster Size x vs y (OnTrack) forward",
459 range_min = 0, range_max = 10, range_nbins = 10,
460 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
464 SiPixelPhase1ClustersChargeVsSizeOnTrack = DefaultHistoTrack.clone(
465 name =
"chargevssize_on_track",
466 title =
"Cluster Charge vs. Cluster Size (OnTrack)",
467 xlabel =
"size[pixels]",
468 ylabel =
"Cluster charge",
469 range_min = 0, range_max = 30, range_nbins = 15,
470 range_y_min = 0, range_y_max = 80e3, range_y_nbins = 100,
473 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
474 Specification().groupBy(
"PXForward/PXDisk").
save()
478 SiPixelPhase1TrackClustersOnTrackChargeOuter = DefaultHistoTrack.clone(
479 name =
"chargeOuter",
480 title =
"Corrected Cluster Charge (OnTrack) outer ladders",
481 range_min = 0, range_max = 80e3, range_nbins = 100,
482 xlabel =
"Charge (electrons)",
485 Specification().groupBy(
"PXBarrel/PXLayer").
save()
489 SiPixelPhase1TrackClustersOnTrackChargeInner = SiPixelPhase1TrackClustersOnTrackChargeOuter.clone(
490 name =
"chargeInner",
491 title =
"Corrected Cluster Charge (OnTrack) inner ladders" 494 SiPixelPhase1TrackClustersOnTrackCorrChargeOuter = DefaultHistoTrack.clone(
495 name =
"chargeOuter_corr",
496 title =
"Template Corrected Cluster Charge (OnTrack) outer ladders",
497 range_min = 0, range_max = 80e3, range_nbins = 100,
498 xlabel =
"Charge (electrons)",
501 Specification().groupBy(
"PXBarrel/PXLayer").
save()
505 SiPixelPhase1TrackClustersOnTrackCorrChargeInner = SiPixelPhase1TrackClustersOnTrackCorrChargeOuter.clone(
506 name =
"chargeInner_corr",
507 title =
"Template Corrected Cluster Charge (OnTrack) inner ladders" 510 SiPixelPhase1TrackTemplateCorrOuter = SiPixelPhase1TrackClustersOnTrackCorrChargeOuter.clone(
511 name =
"templateOuter_corr",
512 title =
"Template Correction outer ladders",
513 range_min = 0, range_max = 3, range_nbins = 150,
517 SiPixelPhase1TrackTemplateCorrInner = SiPixelPhase1TrackTemplateCorrOuter.clone(
518 name =
"templateInner_corr",
519 title =
"Template Correction inner ladders" 523 SiPixelPhase1TrackClustersOnTrackShapeOuter = DefaultHistoTrack.clone(
524 topFolderName =
"PixelPhase1/ClusterShape",
525 name =
"shapeFilterOuter",
526 title =
"Shape filter (OnTrack) Outer Ladders",
527 range_min = 0, range_max = 2, range_nbins = 2,
528 xlabel =
"shapeFilter",
530 Specification().groupBy(
"PXBarrel/PXLayer").
save()
534 SiPixelPhase1TrackClustersOnTrackShapeInner = SiPixelPhase1TrackClustersOnTrackShapeOuter.clone(
535 name =
"shapeFilterInner",
536 title =
"Shape filter (OnTrack) Inner Ladders",
540 SiPixelPhase1TrackClustersConf = cms.VPSet(
541 SiPixelPhase1TrackClustersOnTrackCharge,
542 SiPixelPhase1TrackClustersOnTrackCorrCharge,
543 SiPixelPhase1TrackTemplateCorr,
544 SiPixelPhase1TrackClustersOnTrackBigPixelCharge,
545 SiPixelPhase1TrackClustersOnTrackNotBigPixelCharge,
546 SiPixelPhase1TrackClustersOnTrackSize,
547 SiPixelPhase1TrackClustersOnTrackShape,
548 SiPixelPhase1TrackClustersOnTrackNClusters,
549 SiPixelPhase1TrackClustersOnTrackPositionB,
550 SiPixelPhase1TrackClustersOnTrackPositionF,
551 SiPixelPhase1DigisHitmapOnTrack,
552 SiPixelPhase1DigisNdigisOnTrack,
554 SiPixelPhase1TrackClustersNTracks,
555 SiPixelPhase1TrackClustersNTracksInVolume,
557 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter,
558 SiPixelPhase1ClustersSizeVsEtaOnTrackInner,
559 SiPixelPhase1TrackClustersOnTrackChargeOuter,
560 SiPixelPhase1TrackClustersOnTrackChargeInner,
561 SiPixelPhase1TrackClustersOnTrackCorrChargeOuter,
562 SiPixelPhase1TrackClustersOnTrackCorrChargeInner,
563 SiPixelPhase1TrackTemplateCorrOuter,
564 SiPixelPhase1TrackTemplateCorrInner,
566 SiPixelPhase1TrackClustersOnTrackShapeOuter,
567 SiPixelPhase1TrackClustersOnTrackShapeInner,
569 SiPixelPhase1TrackClustersOnTrackSizeXOuter,
570 SiPixelPhase1TrackClustersOnTrackSizeXInner,
571 SiPixelPhase1TrackClustersOnTrackSizeXF,
572 SiPixelPhase1TrackClustersOnTrackSizeYOuter,
573 SiPixelPhase1TrackClustersOnTrackSizeYInner,
574 SiPixelPhase1TrackClustersOnTrackSizeYF,
576 SiPixelPhase1TrackClustersOnTrackSizeXYOuter,
577 SiPixelPhase1TrackClustersOnTrackSizeXYInner,
578 SiPixelPhase1TrackClustersOnTrackSizeXYF,
579 SiPixelPhase1ClustersChargeVsSizeOnTrack
582 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
583 SiPixelPhase1TrackClustersAnalyzer =
DQMEDAnalyzer(
'SiPixelPhase1TrackClusters',
584 clusters = cms.InputTag(
"siPixelClusters"),
585 clusterShapeCache = cms.InputTag(
"siPixelClusterShapeCache"),
586 tracks = cms.InputTag(
"generalTracks"),
587 vertices = cms.InputTag(
"offlinePrimaryVertices"),
588 histograms = SiPixelPhase1TrackClustersConf,
589 geometry = SiPixelPhase1Geometry,
590 triggerflags = trigger.SiPixelPhase1Triggers,
591 VertexCut = cms.untracked.bool(
True)
595 histograms = SiPixelPhase1TrackClustersConf,
596 geometry = SiPixelPhase1Geometry
T reduce(std::vector< T > x, Op op)