1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
5 SiPixelPhase1ClustersCharge = DefaultHistoDigiCluster.clone(
7 title =
"Cluster Charge",
8 range_min = 0, range_max = 300e3, range_nbins = 150,
9 xlabel =
"Charge (electrons)",
12 StandardSpecification2DProfile,
13 StandardSpecificationPixelmapProfile,
14 StandardSpecificationTrend,
15 StandardSpecifications1D,
16 StandardSpecificationTrend2D
20 SiPixelPhase1ClustersSize = DefaultHistoDigiCluster.clone(
22 title =
"Total Cluster Size",
23 range_min = 0, range_max = 30, range_nbins = 30,
24 xlabel =
"size[pixels]",
26 StandardSpecification2DProfile,
27 StandardSpecificationPixelmapProfile,
28 StandardSpecificationTrend,
29 StandardSpecifications1D,
30 StandardSpecificationTrend2D
34 SiPixelPhase1ClustersSizeX = DefaultHistoDigiCluster.clone(
36 title =
"Cluster Size in X",
37 range_min = 0, range_max = 30, range_nbins = 30,
38 xlabel =
"size[pixels]",
43 StandardSpecifications1D,
48 SiPixelPhase1ClustersSizeY = DefaultHistoDigiCluster.clone(
50 title =
"Cluster Size in Y",
51 range_min = 0, range_max = 30, range_nbins = 30,
52 xlabel =
"size[pixels]",
57 StandardSpecifications1D,
62 SiPixelPhase1ClustersNClusters = DefaultHistoDigiCluster.clone(
65 range_min = 0, range_max = 30, range_nbins = 60,
70 StandardSpecificationOccupancy,
71 StandardSpecification2DProfile_Num,
72 StandardSpecificationTrend_Num,
73 StandardSpecifications1D_Num,
75 Specification().groupBy(
"PXBarrel/PXLayer/Event")
77 .groupBy(
"PXBarrel/PXLayer")
78 .
save(nbins=50, xmin=0, xmax=10000),
79 Specification().groupBy(
"PXForward/PXDisk/Event")
81 .groupBy(
"PXForward/PXDisk/")
82 .
save(nbins=50, xmin=0, xmax=5000),
87 SiPixelPhase1ClustersNClustersInclusive = DefaultHistoDigiCluster.clone(
90 range_min = 0, range_max = 20000, range_nbins = 100,
94 StandardSpecificationInclusive_Num
99 SiPixelPhase1ClustersEventrate = DefaultHistoDigiCluster.clone(
100 name =
"clustereventrate",
101 title =
"Number of Events with clusters",
106 Specification().groupBy(
"Lumisection")
107 .groupBy(
"",
"EXTEND_X").
save(),
108 Specification().groupBy(
"BX")
109 .groupBy(
"",
"EXTEND_X").
save()
115 SiPixelPhase1ClustersPositionB = DefaultHistoDigiCluster.clone(
116 name =
"clusterposition_zphi",
117 title =
"Cluster Positions",
118 range_min = -60, range_max = 60, range_nbins = 300,
119 range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
120 xlabel =
"Global Z", ylabel =
"Global \phi",
123 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
124 Specification().groupBy(
"").
save(),
128 SiPixelPhase1ClustersPositionF = DefaultHistoDigiCluster.clone(
129 name =
"clusterposition_xy",
130 title =
"Cluster Positions",
131 xlabel =
"Global X", ylabel =
"Global Y",
132 range_min = -20, range_max = 20, range_nbins = 200,
133 range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
136 Specification().groupBy(
"PXForward/PXDisk").
save(),
137 Specification().groupBy(
"PXForward").
save(),
142 SiPixelPhase1ClustersPositionXZ = DefaultHistoDigiCluster.clone(
144 name =
"clusterposition_xz",
145 title =
"Cluster Positions",
146 xlabel =
"Global X", ylabel =
"Global Z",
147 range_min = -20, range_max = 20, range_nbins = 200,
148 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
154 SiPixelPhase1ClustersPositionYZ = DefaultHistoDigiCluster.clone(
156 name =
"clusterposition_yz",
157 title =
"Cluster Positions",
158 xlabel =
"Global Y", ylabel =
"Global Z",
159 range_min = -20, range_max = 20, range_nbins = 200,
160 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
166 SiPixelPhase1ClustersSizeVsEta = DefaultHistoDigiCluster.clone(
168 title =
"Cluster Size along Beamline vs. Cluster position #eta",
169 xlabel =
"Cluster #eta",
170 ylabel =
"length [pixels]",
171 range_min = -3.2, range_max = 3.2, range_nbins = 40,
172 range_y_min = 0, range_y_max = 40, range_y_nbins = 40,
175 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
176 Specification().groupBy(
"PXBarrel").
save()
180 SiPixelPhase1ClustersReadoutCharge = DefaultHistoReadout.clone(
182 title =
"Cluster Charge",
183 range_min = 0, range_max = 200e3, range_nbins = 200,
184 xlabel =
"Charge (electrons)",
186 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector").
save(),
187 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder").
save()
196 SiPixelPhase1ClustersReadoutNClusters = DefaultHistoReadout.clone(
199 range_min = 0, range_max = 30, range_nbins = 30,
203 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
204 .groupBy(
"PXBarrel/Shell/Sector").
save(),
205 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
206 .groupBy(
"PXForward/HalfCylinder").
save(),
208 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
209 .groupBy(
"PXBarrel/Shell/Sector/Lumisection").reduce(
"MEAN")
210 .groupBy(
"PXBarrel/Shell/Sector",
"EXTEND_X").
save(),
211 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
212 .groupBy(
"PXForward/HalfCylinder/Lumisection").reduce(
"MEAN")
213 .groupBy(
"PXForward/HalfCylinder",
"EXTEND_X").
save(),
217 SiPixelPhase1ClustersPixelToStripRatio = DefaultHistoDigiCluster.clone(
218 name =
"cluster_ratio",
219 title =
"Pixel to Strip clusters ratio",
225 Specification().groupBy(
"PXAll").
save(100, 0, 1),
226 Specification().groupBy(
"PXAll/Lumisection")
228 .groupBy(
"PXAll",
"EXTEND_X")
230 Specification().groupBy(
"PXAll/BX")
232 .groupBy(
"PXAll",
"EXTEND_X")
237 SiPixelPhase1ClustersConf = cms.VPSet(
238 SiPixelPhase1ClustersCharge,
239 SiPixelPhase1ClustersSize,
240 SiPixelPhase1ClustersSizeX,
241 SiPixelPhase1ClustersSizeY,
242 SiPixelPhase1ClustersNClusters,
243 SiPixelPhase1ClustersNClustersInclusive,
244 SiPixelPhase1ClustersEventrate,
245 SiPixelPhase1ClustersPositionB,
246 SiPixelPhase1ClustersPositionF,
247 SiPixelPhase1ClustersPositionXZ,
248 SiPixelPhase1ClustersPositionYZ,
249 SiPixelPhase1ClustersSizeVsEta,
250 SiPixelPhase1ClustersReadoutCharge,
251 SiPixelPhase1ClustersReadoutNClusters,
252 SiPixelPhase1ClustersPixelToStripRatio
256 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as triggerflag
257 SiPixelPhase1ClustersTriggers = cms.VPSet(
262 SiPixelPhase1ClustersAnalyzer = cms.EDAnalyzer(
"SiPixelPhase1Clusters",
263 pixelSrc = cms.InputTag(
"siPixelClusters"),
264 stripSrc = cms.InputTag(
"siStripClusters"),
265 histograms = SiPixelPhase1ClustersConf,
266 geometry = SiPixelPhase1Geometry,
267 triggerflag = SiPixelPhase1ClustersTriggers,
270 SiPixelPhase1ClustersHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
271 histograms = SiPixelPhase1ClustersConf,
272 geometry = SiPixelPhase1Geometry