1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1ClustersCharge = DefaultHistoDigiCluster.clone(
8 title =
"Cluster Charge",
9 range_min = 0, range_max = 300e3, range_nbins = 150,
10 xlabel =
"Charge (electrons)",
13 StandardSpecification2DProfile,
14 StandardSpecificationPixelmapProfile,
15 StandardSpecificationTrend,
16 StandardSpecifications1D,
17 StandardSpecificationTrend2D
21 SiPixelPhase1ClustersBigPixelCharge = DefaultHistoDigiCluster.clone(
22 name =
"bigpixelcharge",
23 title =
"Big Pixel Charge",
24 range_min = 0, range_max = 80e3, range_nbins = 100,
25 xlabel =
"Charge (electrons)",
28 Specification().groupBy(
"PXBarrel").
save(),
29 Specification().groupBy(
"PXForward").
save(),
30 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
31 Specification().groupBy(
"PXForward/PXDisk").
save()
35 SiPixelPhase1ClustersNotBigPixelCharge = DefaultHistoDigiCluster.clone(
36 name =
"notbigpixelcharge",
37 title =
"Not Big Pixel Charge",
38 range_min = 0, range_max = 80e3, range_nbins = 100,
39 xlabel =
"Charge (electrons)",
43 Specification().groupBy(
"PXBarrel").
save(),
44 Specification().groupBy(
"PXForward").
save(),
45 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
46 Specification().groupBy(
"PXForward/PXDisk").
save()
50 SiPixelPhase1ClustersSize = DefaultHistoDigiCluster.clone(
52 title =
"Total Cluster Size",
53 range_min = 0, range_max = 30, range_nbins = 30,
54 xlabel =
"size[pixels]",
56 StandardSpecification2DProfile,
57 StandardSpecificationPixelmapProfile,
58 StandardSpecificationTrend,
59 StandardSpecifications1D,
60 StandardSpecificationTrend2D
64 SiPixelPhase1ClustersSizeX = DefaultHistoDigiCluster.clone(
66 title =
"Cluster Size in X",
67 range_min = 0, range_max = 30, range_nbins = 30,
68 xlabel =
"size[pixels]",
73 StandardSpecifications1D,
78 SiPixelPhase1ClustersSizeY = DefaultHistoDigiCluster.clone(
80 title =
"Cluster Size in Y",
81 range_min = 0, range_max = 30, range_nbins = 30,
82 xlabel =
"size[pixels]",
87 StandardSpecifications1D,
92 SiPixelPhase1ClustersNClusters = DefaultHistoDigiCluster.clone(
95 range_min = 0, range_max = 100, range_nbins = 25,
100 StandardSpecificationOccupancy,
101 StandardSpecification2DProfile_Num,
102 StandardSpecificationTrend_Num,
103 StandardSpecifications1D_Num,
105 Specification().groupBy(
"PXBarrel/PXLayer/Event")
107 .groupBy(
"PXBarrel/PXLayer")
108 .
save(nbins=50, xmin=0, xmax=10000),
109 Specification().groupBy(
"PXForward/PXDisk/Event")
111 .groupBy(
"PXForward/PXDisk/")
112 .
save(nbins=50, xmin=0, xmax=5000),
117 SiPixelPhase1ClustersNClustersInclusive = DefaultHistoDigiCluster.clone(
120 range_min = 0, range_max = 20000, range_nbins = 100,
124 StandardSpecificationInclusive_Num
129 SiPixelPhase1ClustersEventrate = DefaultHistoDigiCluster.clone(
130 name =
"clustereventrate",
131 title =
"Number of Events with clusters",
136 Specification().groupBy(
"Lumisection")
137 .groupBy(
"",
"EXTEND_X").
save(),
138 Specification().groupBy(
"BX")
139 .groupBy(
"",
"EXTEND_X").
save()
145 SiPixelPhase1ClustersPositionB = DefaultHistoDigiCluster.clone(
146 name =
"clusterposition_zphi",
147 title =
"Cluster Positions",
148 range_min = -60, range_max = 60, range_nbins = 300,
149 range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
150 xlabel =
"Global Z", ylabel =
"Global \phi",
153 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
154 Specification().groupBy(
"").
save(),
158 SiPixelPhase1ClustersPositionF = DefaultHistoDigiCluster.clone(
159 name =
"clusterposition_xy",
160 title =
"Cluster Positions",
161 xlabel =
"Global X", ylabel =
"Global Y",
162 range_min = -20, range_max = 20, range_nbins = 200,
163 range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
166 Specification().groupBy(
"PXForward/PXDisk").
save(),
167 Specification().groupBy(
"PXForward").
save(),
172 SiPixelPhase1ClustersPositionXZ = DefaultHistoDigiCluster.clone(
174 name =
"clusterposition_xz",
175 title =
"Cluster Positions",
176 xlabel =
"Global X", ylabel =
"Global Z",
177 range_min = -20, range_max = 20, range_nbins = 200,
178 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
184 SiPixelPhase1ClustersPositionYZ = DefaultHistoDigiCluster.clone(
186 name =
"clusterposition_yz",
187 title =
"Cluster Positions",
188 xlabel =
"Global Y", ylabel =
"Global Z",
189 range_min = -20, range_max = 20, range_nbins = 200,
190 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
196 SiPixelPhase1ClustersSizeVsEta = DefaultHistoDigiCluster.clone(
198 title =
"Cluster Size along Beamline vs. Cluster position #eta",
199 xlabel =
"Cluster #eta",
200 ylabel =
"length [pixels]",
201 range_min = -3.2, range_max = 3.2, range_nbins = 40,
202 range_y_min = 0, range_y_max = 40, range_y_nbins = 40,
205 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
206 Specification().groupBy(
"PXBarrel").
save()
210 SiPixelPhase1ClustersReadoutCharge = DefaultHistoReadout.clone(
212 title =
"Cluster Charge",
213 range_min = 0, range_max = 200e3, range_nbins = 200,
214 xlabel =
"Charge (electrons)",
216 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector").
save(),
217 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder").
save()
226 SiPixelPhase1ClustersReadoutNClusters = DefaultHistoReadout.clone(
229 range_min = 0, range_max = 100, range_nbins = 25,
233 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
234 .groupBy(
"PXBarrel/Shell/Sector").
save(),
235 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
236 .groupBy(
"PXForward/HalfCylinder").
save(),
238 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
239 .groupBy(
"PXBarrel/Shell/Sector/LumiBlock").reduce(
"MEAN")
240 .groupBy(
"PXBarrel/Shell/Sector",
"EXTEND_X").
save(),
241 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
242 .groupBy(
"PXForward/HalfCylinder/LumiBlock").reduce(
"MEAN")
243 .groupBy(
"PXForward/HalfCylinder",
"EXTEND_X").
save(),
247 SiPixelPhase1ClustersPixelToStripRatio = DefaultHistoDigiCluster.clone(
249 name =
"cluster_ratio",
250 title =
"Pixel to Strip clusters ratio",
256 Specification().groupBy(
"PXAll").
save(100, 0, 1),
257 Specification().groupBy(
"PXAll/LumiBlock")
259 .groupBy(
"PXAll",
"EXTEND_X")
261 Specification().groupBy(
"PXAll/BX")
263 .groupBy(
"PXAll",
"EXTEND_X")
269 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
270 run3_common.toModify(SiPixelPhase1ClustersNClustersInclusive, range_max = 40000, range_nbins=200)
272 SiPixelPhase1ClustersConf = cms.VPSet(
273 SiPixelPhase1ClustersCharge,
274 SiPixelPhase1ClustersBigPixelCharge,
275 SiPixelPhase1ClustersNotBigPixelCharge,
276 SiPixelPhase1ClustersSize,
277 SiPixelPhase1ClustersSizeX,
278 SiPixelPhase1ClustersSizeY,
279 SiPixelPhase1ClustersNClusters,
280 SiPixelPhase1ClustersNClustersInclusive,
281 SiPixelPhase1ClustersEventrate,
282 SiPixelPhase1ClustersPositionB,
283 SiPixelPhase1ClustersPositionF,
284 SiPixelPhase1ClustersPositionXZ,
285 SiPixelPhase1ClustersPositionYZ,
286 SiPixelPhase1ClustersSizeVsEta,
287 SiPixelPhase1ClustersReadoutCharge,
288 SiPixelPhase1ClustersReadoutNClusters,
289 SiPixelPhase1ClustersPixelToStripRatio
292 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
294 pixelSrc = cms.InputTag(
"siPixelClusters"),
295 stripSrc = cms.InputTag(
"siStripClusters"),
296 histograms = SiPixelPhase1ClustersConf,
297 geometry = SiPixelPhase1Geometry,
298 triggerflags = trigger.SiPixelPhase1Triggers
302 histograms = SiPixelPhase1ClustersConf,
303 geometry = SiPixelPhase1Geometry