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 SiPixelPhase1ClustersSize = DefaultHistoDigiCluster.clone(
23 title =
"Total Cluster Size",
24 range_min = 0, range_max = 30, range_nbins = 30,
25 xlabel =
"size[pixels]",
27 StandardSpecification2DProfile,
28 StandardSpecificationPixelmapProfile,
29 StandardSpecificationTrend,
30 StandardSpecifications1D,
31 StandardSpecificationTrend2D
35 SiPixelPhase1ClustersSizeX = DefaultHistoDigiCluster.clone(
37 title =
"Cluster Size in X",
38 range_min = 0, range_max = 30, range_nbins = 30,
39 xlabel =
"size[pixels]",
44 StandardSpecifications1D,
49 SiPixelPhase1ClustersSizeY = DefaultHistoDigiCluster.clone(
51 title =
"Cluster Size in Y",
52 range_min = 0, range_max = 30, range_nbins = 30,
53 xlabel =
"size[pixels]",
58 StandardSpecifications1D,
63 SiPixelPhase1ClustersNClusters = DefaultHistoDigiCluster.clone(
66 range_min = 0, range_max = 30, range_nbins = 60,
71 StandardSpecificationOccupancy,
72 StandardSpecification2DProfile_Num,
73 StandardSpecificationTrend_Num,
74 StandardSpecifications1D_Num,
76 Specification().groupBy(
"PXBarrel/PXLayer/Event")
78 .groupBy(
"PXBarrel/PXLayer")
79 .
save(nbins=50, xmin=0, xmax=10000),
80 Specification().groupBy(
"PXForward/PXDisk/Event")
82 .groupBy(
"PXForward/PXDisk/")
83 .
save(nbins=50, xmin=0, xmax=5000),
88 SiPixelPhase1ClustersNClustersInclusive = DefaultHistoDigiCluster.clone(
91 range_min = 0, range_max = 20000, range_nbins = 100,
95 StandardSpecificationInclusive_Num
100 SiPixelPhase1ClustersEventrate = DefaultHistoDigiCluster.clone(
101 name =
"clustereventrate",
102 title =
"Number of Events with clusters",
107 Specification().groupBy(
"Lumisection")
108 .groupBy(
"",
"EXTEND_X").
save(),
109 Specification().groupBy(
"BX")
110 .groupBy(
"",
"EXTEND_X").
save()
116 SiPixelPhase1ClustersPositionB = DefaultHistoDigiCluster.clone(
117 name =
"clusterposition_zphi",
118 title =
"Cluster Positions",
119 range_min = -60, range_max = 60, range_nbins = 300,
120 range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
121 xlabel =
"Global Z", ylabel =
"Global \phi",
124 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
125 Specification().groupBy(
"").
save(),
129 SiPixelPhase1ClustersPositionF = DefaultHistoDigiCluster.clone(
130 name =
"clusterposition_xy",
131 title =
"Cluster Positions",
132 xlabel =
"Global X", ylabel =
"Global Y",
133 range_min = -20, range_max = 20, range_nbins = 200,
134 range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
137 Specification().groupBy(
"PXForward/PXDisk").
save(),
138 Specification().groupBy(
"PXForward").
save(),
143 SiPixelPhase1ClustersPositionXZ = DefaultHistoDigiCluster.clone(
145 name =
"clusterposition_xz",
146 title =
"Cluster Positions",
147 xlabel =
"Global X", ylabel =
"Global Z",
148 range_min = -20, range_max = 20, range_nbins = 200,
149 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
155 SiPixelPhase1ClustersPositionYZ = DefaultHistoDigiCluster.clone(
157 name =
"clusterposition_yz",
158 title =
"Cluster Positions",
159 xlabel =
"Global Y", ylabel =
"Global Z",
160 range_min = -20, range_max = 20, range_nbins = 200,
161 range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
167 SiPixelPhase1ClustersSizeVsEta = DefaultHistoDigiCluster.clone(
169 title =
"Cluster Size along Beamline vs. Cluster position #eta",
170 xlabel =
"Cluster #eta",
171 ylabel =
"length [pixels]",
172 range_min = -3.2, range_max = 3.2, range_nbins = 40,
173 range_y_min = 0, range_y_max = 40, range_y_nbins = 40,
176 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
177 Specification().groupBy(
"PXBarrel").
save()
181 SiPixelPhase1ClustersReadoutCharge = DefaultHistoReadout.clone(
183 title =
"Cluster Charge",
184 range_min = 0, range_max = 200e3, range_nbins = 200,
185 xlabel =
"Charge (electrons)",
187 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector").
save(),
188 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder").
save()
197 SiPixelPhase1ClustersReadoutNClusters = DefaultHistoReadout.clone(
200 range_min = 0, range_max = 30, range_nbins = 30,
204 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
205 .groupBy(
"PXBarrel/Shell/Sector").
save(),
206 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
207 .groupBy(
"PXForward/HalfCylinder").
save(),
209 Specification(PerReadout).groupBy(
"PXBarrel/Shell/Sector/DetId/Event").reduce(
"COUNT")
210 .groupBy(
"PXBarrel/Shell/Sector/LumiBlock").reduce(
"MEAN")
211 .groupBy(
"PXBarrel/Shell/Sector",
"EXTEND_X").
save(),
212 Specification(PerReadout).groupBy(
"PXForward/HalfCylinder/DetId/Event").reduce(
"COUNT")
213 .groupBy(
"PXForward/HalfCylinder/LumiBlock").reduce(
"MEAN")
214 .groupBy(
"PXForward/HalfCylinder",
"EXTEND_X").
save(),
218 SiPixelPhase1ClustersPixelToStripRatio = DefaultHistoDigiCluster.clone(
220 name =
"cluster_ratio",
221 title =
"Pixel to Strip clusters ratio",
227 Specification().groupBy(
"PXAll").
save(100, 0, 1),
228 Specification().groupBy(
"PXAll/LumiBlock")
230 .groupBy(
"PXAll",
"EXTEND_X")
232 Specification().groupBy(
"PXAll/BX")
234 .groupBy(
"PXAll",
"EXTEND_X")
239 SiPixelPhase1ClustersConf = cms.VPSet(
240 SiPixelPhase1ClustersCharge,
241 SiPixelPhase1ClustersSize,
242 SiPixelPhase1ClustersSizeX,
243 SiPixelPhase1ClustersSizeY,
244 SiPixelPhase1ClustersNClusters,
245 SiPixelPhase1ClustersNClustersInclusive,
246 SiPixelPhase1ClustersEventrate,
247 SiPixelPhase1ClustersPositionB,
248 SiPixelPhase1ClustersPositionF,
249 SiPixelPhase1ClustersPositionXZ,
250 SiPixelPhase1ClustersPositionYZ,
251 SiPixelPhase1ClustersSizeVsEta,
252 SiPixelPhase1ClustersReadoutCharge,
253 SiPixelPhase1ClustersReadoutNClusters,
254 SiPixelPhase1ClustersPixelToStripRatio
257 SiPixelPhase1ClustersAnalyzer = cms.EDAnalyzer(
"SiPixelPhase1Clusters",
258 pixelSrc = cms.InputTag(
"siPixelClusters"),
259 stripSrc = cms.InputTag(
"siStripClusters"),
260 histograms = SiPixelPhase1ClustersConf,
261 geometry = SiPixelPhase1Geometry,
262 triggerflags = trigger.SiPixelPhase1Triggers
265 SiPixelPhase1ClustersHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
266 histograms = SiPixelPhase1ClustersConf,
267 geometry = SiPixelPhase1Geometry