1 import FWCore.ParameterSet.Config
as cms
3 from DQM.SiPixelPhase1Common.SpecificationBuilder_cfi
import Specification, parent
5 SiPixelPhase1Geometry = cms.PSet(
7 upgradePhase = cms.int32(1),
13 module_rows = cms.int32(160),
14 module_cols = cms.int32(416),
15 roc_rows = cms.int32(80),
16 roc_cols = cms.int32(52),
17 n_rocs = cms.int32(16),
20 max_lumisection = cms.int32(5000),
21 max_bunchcrossing = cms.int32(3600),
24 CablingMapLabel = cms.string(
""),
27 onlineblock = cms.int32(20),
28 n_onlineblocks = cms.int32(100),
31 lumiblock = cms.int32(10),
38 PerModule = cms.PSet(enabled = cms.bool(
True))
39 PerLadder = cms.PSet(enabled = cms.bool(
True))
40 PerLayer2D = cms.PSet(enabled = cms.bool(
True))
41 PerLayer1D = cms.PSet(enabled = cms.bool(
True))
42 PerReadout = cms.PSet(enabled = cms.bool(
False))
43 OverlayCurvesForTiming= cms.PSet(enabled = cms.bool(
False))
44 IsOffline = cms.PSet(enabled = cms.bool(
True))
48 DefaultHisto = cms.PSet(
50 enabled = cms.bool(
True),
53 statsOverflows = cms.bool(
True),
57 perLumiHarvesting = cms.bool(
False),
64 bookUndefined = cms.bool(
False),
67 topFolderName = cms.string(
"PixelPhase1"),
70 name = cms.string(
"unnamed"),
71 title = cms.string(
"Histogram of Something"),
72 xlabel = cms.string(
"something"),
73 ylabel = cms.string(
"count"),
74 dimensions = cms.int32(1),
75 range_min = cms.double(0),
76 range_max = cms.double(100),
77 range_nbins = cms.int32(100),
78 range_y_min = cms.double(0),
79 range_y_max = cms.double(100),
80 range_y_nbins = cms.int32(100),
103 DefaultHistoDigiCluster=DefaultHisto.clone(
104 topFolderName =
"PixelPhase1/Phase1_MechanicalView" 107 DefaultHistoSummary=DefaultHisto.clone(
108 topFolderName =
"PixelPhase1/Summary" 111 DefaultHistoTrack=DefaultHisto.clone(
112 topFolderName =
"PixelPhase1/Tracks" 115 DefaultHistoReadout=DefaultHisto.clone(
116 topFolderName =
"PixelPhase1/FED/Readout" 120 StandardSpecifications1D = [
125 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder")
128 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
130 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade")
133 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk",
"EXTEND_X")
135 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
137 Specification().groupBy(
"PXBarrel").
save(),
138 Specification().groupBy(
"PXForward").
save(),
139 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
140 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save(),
142 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName").
save(),
143 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName").
save(),
145 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
147 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
149 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/SignedModule")
151 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
153 Specification().groupBy(
"PXBarrel/PXLayer")
155 Specification().groupBy(
"PXForward/PXDisk")
161 StandardSpecificationTrend = [
162 Specification(PerModule).groupBy(
"PXBarrel/Lumisection")
164 .groupBy(
"PXBarrel",
"EXTEND_X")
166 Specification(PerModule).groupBy(
"PXForward/Lumisection")
168 .groupBy(
"PXForward",
"EXTEND_X")
170 Specification(IsOffline).groupBy(
"PXBarrel/LumiBlock")
172 .groupBy(
"PXBarrel",
"EXTEND_X")
174 Specification(IsOffline).groupBy(
"PXForward/LumiBlock")
176 .groupBy(
"PXForward",
"EXTEND_X")
180 StandardSpecificationTrend2D = [
181 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
183 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
184 .groupBy(
"PXBarrel",
"EXTEND_Y")
186 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
188 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
189 .groupBy(
"PXForward",
"EXTEND_Y")
191 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
193 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
194 .groupBy(
"PXBarrel",
"EXTEND_Y")
196 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
198 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
199 .groupBy(
"PXForward",
"EXTEND_Y")
203 StandardSpecification2DProfile = [
204 Specification(PerLayer2D)
205 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
206 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
207 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
210 Specification(PerLayer2D)
211 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
212 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
213 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
218 StandardSpecification2DOccupancy = [
219 Specification(PerLayer2D)
220 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
221 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
222 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
224 Specification(PerLayer2D)
225 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
226 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
227 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
231 StandardSpecificationPixelmapProfile = [
232 Specification(PerLayer2D)
233 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
234 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
235 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
238 Specification(PerLayer2D)
239 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
240 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
241 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
246 StandardSpecificationOccupancy = [
247 Specification(PerLayer2D)
248 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
249 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
250 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
252 Specification(PerLayer2D)
253 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
254 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
255 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
265 StandardSpecifications1D_Num = [
266 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/DetId/Event")
268 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder").
save()
270 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
272 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/Event")
274 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName")
276 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/DetId/Event")
278 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade").
save()
280 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/",
"EXTEND_X")
282 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
284 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/Event")
286 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName")
289 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel/Event")
291 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
293 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
295 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule/Event")
297 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule")
299 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
304 StandardSpecificationInclusive_Num = [
305 Specification().groupBy(
"PXBarrel/Event")
309 Specification().groupBy(
"PXForward/Event")
311 .groupBy(
"PXForward")
313 Specification().groupBy(
"PXAll/Event")
319 StandardSpecificationTrend_Num = [
320 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Event")
322 .groupBy(
"PXBarrel/PXLayer/Lumisection")
324 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
325 .groupBy(
"PXBarrel",
"EXTEND_Y")
327 Specification(PerModule).groupBy(
"PXBarrel/Event")
329 .groupBy(
"PXBarrel/Lumisection")
331 .groupBy(
"PXBarrel",
"EXTEND_X")
333 Specification(PerModule).groupBy(
"PXForward/PXDisk/Event")
335 .groupBy(
"PXForward/PXDisk/Lumisection")
337 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
338 .groupBy(
"PXForward",
"EXTEND_Y")
340 Specification(PerModule).groupBy(
"PXForward/Event")
342 .groupBy(
"PXForward/Lumisection")
344 .groupBy(
"PXForward",
"EXTEND_X")
346 Specification(PerModule).groupBy(
"PXAll/Event")
348 .groupBy(
"PXAll/Lumisection")
350 .groupBy(
"PXAll",
"EXTEND_X")
352 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/Event")
354 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
356 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
357 .groupBy(
"PXBarrel",
"EXTEND_Y")
359 Specification(IsOffline).groupBy(
"PXBarrel/Event")
361 .groupBy(
"PXBarrel/LumiBlock")
363 .groupBy(
"PXBarrel",
"EXTEND_X")
365 Specification(IsOffline).groupBy(
"PXForward/PXDisk/Event")
367 .groupBy(
"PXForward/PXDisk/LumiBlock")
369 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
370 .groupBy(
"PXForward",
"EXTEND_Y")
372 Specification(IsOffline).groupBy(
"PXForward/Event")
374 .groupBy(
"PXForward/LumiBlock")
376 .groupBy(
"PXForward",
"EXTEND_X")
378 Specification(IsOffline).groupBy(
"PXAll/Event")
380 .groupBy(
"PXAll/LumiBlock")
382 .groupBy(
"PXAll",
"EXTEND_X")
387 StandardSpecification2DProfile_Num = [
389 Specification(PerLayer2D)
390 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule" +
"/DetId/Event")
392 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
394 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
395 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
397 Specification(PerLayer2D)
398 .groupBy(
"DetId/Event")
400 .groupBy(
"PXForward/PXRing/PXDisk/SignedBladePanel")
402 .groupBy(
"PXForward/PXRing/PXDisk",
"EXTEND_Y")
403 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
411 if isinstance(a, cms.VPSet)
or isinstance(a, Specification):
T reduce(std::vector< T > x, Op op)