1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone(
9 range_min = 0, range_max = 30, range_nbins = 30,
14 StandardSpecificationTrend_Num,
15 Specification().groupBy(
"PXBarrel/Event")
18 .
save(nbins=100, xmin=0, xmax=5000),
20 Specification().groupBy(
"PXForward/Event")
23 .
save(nbins=100, xmin=0, xmax=5000),
25 Specification().groupBy(
"PXAll/Event")
28 .
save(nbins=100, xmin=0, xmax=5000)
33 SiPixelPhase1RecHitsClustX = DefaultHistoTrack.clone(
34 name =
"clustersize_x",
35 title =
"Cluster Size X (OnTrack)",
36 range_min = 0, range_max = 50, range_nbins = 50,
37 xlabel =
"size[pixels]",
40 StandardSpecification2DProfile
44 SiPixelPhase1RecHitsClustY = SiPixelPhase1RecHitsClustX.clone(
45 name =
"clustersize_y",
46 title =
"Cluster Size Y (OnTrack)",
47 xlabel =
"size[pixels]" 50 SiPixelPhase1RecHitsErrorX = DefaultHistoTrack.clone(
52 name =
"rechiterror_x",
53 title =
"RecHit Error in X-direction",
54 range_min = 0, range_max = 0.02, range_nbins = 100,
58 StandardSpecification2DProfile
62 SiPixelPhase1RecHitsErrorY = SiPixelPhase1RecHitsErrorX.clone(
64 name =
"rechiterror_y",
65 title =
"RecHit Error in Y-direction",
69 SiPixelPhase1RecHitsPosition = DefaultHistoTrack.clone(
72 title =
"Position of RecHits on Module",
73 range_min = -1, range_max = 1, range_nbins = 100,
74 range_y_min = -4, range_y_max = 4, range_y_nbins = 100,
79 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/DetId").
save(),
80 Specification(PerModule).groupBy(
"PXForward/PXDisk/DetId").
save(),
84 SiPixelPhase1RecHitsProb = DefaultHistoTrack.clone(
86 title =
"Cluster Probability",
87 xlabel =
"log_10(Pr)",
88 range_min = -10, range_max = 1, range_nbins = 50,
92 Specification().groupBy(
"PXBarrel/PXLayer").saveAll(),
93 Specification().groupBy(
"PXForward/PXDisk").saveAll(),
94 StandardSpecification2DProfile,
96 Specification().groupBy(
"PXBarrel/LumiBlock")
98 .groupBy(
"PXBarrel",
"EXTEND_X")
101 Specification().groupBy(
"PXForward/LumiBlock")
103 .groupBy(
"PXForward",
"EXTEND_X")
106 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
107 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save()
112 SiPixelPhase1RecHitsConf = cms.VPSet(
113 SiPixelPhase1RecHitsNRecHits,
114 SiPixelPhase1RecHitsClustX,
115 SiPixelPhase1RecHitsClustY,
116 SiPixelPhase1RecHitsErrorX,
117 SiPixelPhase1RecHitsErrorY,
118 SiPixelPhase1RecHitsPosition,
119 SiPixelPhase1RecHitsProb,
122 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
123 SiPixelPhase1RecHitsAnalyzer =
DQMEDAnalyzer(
'SiPixelPhase1RecHits',
124 src = cms.InputTag(
"generalTracks"),
125 histograms = SiPixelPhase1RecHitsConf,
126 geometry = SiPixelPhase1Geometry,
127 onlyValidHits = cms.bool(
False),
128 triggerflags = trigger.SiPixelPhase1Triggers
131 SiPixelPhase1RecHitsHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
132 histograms = SiPixelPhase1RecHitsConf,
133 geometry = SiPixelPhase1Geometry