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()
111 SiPixelPhase1RecHitsOnEdge = DefaultHistoTrack.clone(
114 range_min = 0, range_max = 30, range_nbins = 30,
119 StandardSpecificationTrend_Num,
120 StandardSpecificationOccupancy,
121 Specification().groupBy(
"PXBarrel/PXLayer/Event")
123 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
125 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
127 Specification().groupBy(
"PXForward/PXDisk/Event")
129 .groupBy(
"PXForward/PXDisk/LumiBlock")
131 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
133 Specification().groupBy(
"PXBarrel/PXLayer/Event")
135 .groupBy(
"PXBarrel/PXLayer/")
136 .
save(nbins=100, xmin=0, xmax=500),
137 Specification().groupBy(
"PXBarrel/Event")
140 .
save(nbins=100, xmin=0, xmax=500),
142 Specification().groupBy(
"PXForward/PXDisk/Event")
144 .groupBy(
"PXForward/PXDisk/")
145 .
save(nbins=100, xmin=0, xmax=500),
146 Specification().groupBy(
"PXForward/PXDisk/Event")
148 .groupBy(
"PXForward")
149 .
save(nbins=100, xmin=0, xmax=500),
151 Specification().groupBy(
"PXAll/Event")
154 .
save(nbins=100, xmin=0, xmax=500)
159 SiPixelPhase1RecHitsOtherBad = DefaultHistoTrack.clone(
162 range_min = 0, range_max = 30, range_nbins = 30,
167 StandardSpecificationTrend_Num,
168 StandardSpecificationOccupancy,
169 Specification().groupBy(
"PXBarrel/PXLayer/Event")
171 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
173 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
175 Specification().groupBy(
"PXForward/PXDisk/Event")
177 .groupBy(
"PXForward/PXDisk/LumiBlock")
179 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
181 Specification().groupBy(
"PXBarrel/PXLayer/Event")
183 .groupBy(
"PXBarrel/PXLayer/")
184 .
save(nbins=100, xmin=0, xmax=500),
185 Specification().groupBy(
"PXBarrel/Event")
188 .
save(nbins=100, xmin=0, xmax=500),
190 Specification().groupBy(
"PXForward/PXDisk/Event")
192 .groupBy(
"PXForward/PXDisk/")
193 .
save(nbins=100, xmin=0, xmax=500),
194 Specification().groupBy(
"PXForward/PXDisk/Event")
196 .groupBy(
"PXForward")
197 .
save(nbins=100, xmin=0, xmax=500),
199 Specification().groupBy(
"PXAll/Event")
202 .
save(nbins=100, xmin=0, xmax=500)
206 SiPixelPhase1RecHitsConf = cms.VPSet(
207 SiPixelPhase1RecHitsNRecHits,
208 SiPixelPhase1RecHitsClustX,
209 SiPixelPhase1RecHitsClustY,
210 SiPixelPhase1RecHitsErrorX,
211 SiPixelPhase1RecHitsErrorY,
212 SiPixelPhase1RecHitsPosition,
213 SiPixelPhase1RecHitsProb,
214 SiPixelPhase1RecHitsOnEdge,
215 SiPixelPhase1RecHitsOtherBad,
218 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
220 src = cms.InputTag(
"generalTracks"),
221 histograms = SiPixelPhase1RecHitsConf,
222 geometry = SiPixelPhase1Geometry,
223 onlyValidHits = cms.bool(
False),
224 triggerflags = trigger.SiPixelPhase1Triggers,
225 VertexCut = cms.untracked.bool(
True)
229 histograms = SiPixelPhase1RecHitsConf,
230 geometry = SiPixelPhase1Geometry