1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
3 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
8 SiPixelPhase1DigisADC = DefaultHistoDigiCluster.clone(
10 title =
"Digi ADC values",
11 xlabel =
"adc readout",
16 StandardSpecificationTrend,
17 StandardSpecificationTrend2D,
18 StandardSpecificationPixelmapProfile,
19 StandardSpecification2DProfile,
20 StandardSpecifications1D
24 SiPixelPhase1DigisNdigis = DefaultHistoDigiCluster.clone(
34 StandardSpecificationTrend_Num,
35 StandardSpecification2DProfile_Num,
36 StandardSpecifications1D_Num,
38 Specification().groupBy(
"PXBarrel/PXLayer/Event")
40 .groupBy(
"PXBarrel/PXLayer")
41 .
save(nbins=100, xmin=0, xmax=40000),
42 Specification().groupBy(
"PXForward/PXDisk/Event")
44 .groupBy(
"PXForward/PXDisk/")
45 .
save(nbins=100, xmin=0, xmax=20000),
50 SiPixelPhase1ClustersNdigisInclusive = DefaultHistoDigiCluster.clone(
53 range_min = 0, range_max = 100000, range_nbins = 100,
57 StandardSpecificationInclusive_Num
62 SiPixelPhase1DigisNdigisPerFED = DefaultHisto.clone(
71 Specification().groupBy(
"FED/Event")
75 .groupBy(
"",
"EXTEND_X")
80 SiPixelPhase1DigisNdigisPerFEDtrend = DefaultHisto.clone(
81 name =
"feddigistrend",
90 Specification().groupBy(
"FED/Event")
92 .groupBy(
"FED/LumiBlock")
94 .groupBy(
"FED",
"EXTEND_X")
95 .groupBy(
"",
"EXTEND_Y")
97 Specification().groupBy(
"FED/Event")
101 .groupBy(
"",
"EXTEND_X")
106 SiPixelPhase1DigisEvents = DefaultHistoDigiCluster.clone(
108 title =
"Rate of Pixel Events",
109 xlabel =
"LumiBlock",
114 Specification().groupBy(
"LumiBlock")
116 .groupBy(
"",
"EXTEND_X").
save(),
117 Specification().groupBy(
"BX")
118 .groupBy(
"",
"EXTEND_X").
save()
122 SiPixelPhase1DigisHitmap = DefaultHistoDigiCluster.clone(
123 name =
"digi_occupancy",
124 title =
"Digi Occupancy",
128 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row/col")
129 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row",
"EXTEND_X")
130 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName",
"EXTEND_Y")
132 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/col")
133 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName",
"EXTEND_X")
135 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row")
136 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName",
"EXTEND_X")
138 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row/col")
139 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row",
"EXTEND_X")
140 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName",
"EXTEND_Y")
142 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/col")
143 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName",
"EXTEND_X")
145 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row")
146 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName",
"EXTEND_X")
148 StandardSpecificationOccupancy,
152 SiPixelPhase1DigisOccupancy = DefaultHistoReadout.clone(
154 title =
"Digi Occupancy",
157 Specification(PerReadout).groupBy(
"PXBarrel/FED/Channel")
158 .groupBy(
"PXBarrel/FED",
"EXTEND_X").
save(),
164 Specification(PerReadout).groupBy(
"PXForward/FED/Channel")
165 .groupBy(
"PXForward/FED",
"EXTEND_X").
save(),
171 Specification(PerReadout).groupBy(
"PXBarrel/FED")
172 .groupBy(
"PXBarrel",
"EXTEND_X").
save(),
174 Specification(PerReadout).groupBy(
"PXForward/FED")
175 .groupBy(
"PXForward",
"EXTEND_X").
save(),
181 SiPixelPhase1DigisConf = cms.VPSet(
182 SiPixelPhase1DigisADC,
183 SiPixelPhase1DigisNdigis,
184 SiPixelPhase1ClustersNdigisInclusive,
185 SiPixelPhase1DigisNdigisPerFED,
186 SiPixelPhase1DigisNdigisPerFEDtrend,
187 SiPixelPhase1DigisEvents,
188 SiPixelPhase1DigisHitmap,
189 SiPixelPhase1DigisOccupancy,
192 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
193 SiPixelPhase1DigisAnalyzer =
DQMEDAnalyzer(
'SiPixelPhase1Digis',
194 src = cms.InputTag(
"siPixelDigis"),
195 histograms = SiPixelPhase1DigisConf,
196 geometry = SiPixelPhase1Geometry,
197 triggerflags = trigger.SiPixelPhase1Triggers
200 SiPixelPhase1DigisHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
201 histograms = SiPixelPhase1DigisConf,
202 geometry = SiPixelPhase1Geometry