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 DefaultHistoDigiCluster.topFolderName= cms.string(
"PixelPhase1/Phase1_MechanicalView")
106 DefaultHistoSummary=DefaultHisto.clone()
107 DefaultHistoSummary.topFolderName= cms.string(
"PixelPhase1/Summary")
109 DefaultHistoTrack=DefaultHisto.clone()
110 DefaultHistoTrack.topFolderName= cms.string(
"PixelPhase1/Tracks")
112 DefaultHistoReadout=DefaultHisto.clone()
113 DefaultHistoReadout.topFolderName= cms.string(
"PixelPhase1/FED/Readout")
116 StandardSpecifications1D = [
121 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder")
124 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
126 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade")
129 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk",
"EXTEND_X")
131 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
133 Specification().groupBy(
"PXBarrel").
save(),
134 Specification().groupBy(
"PXForward").
save(),
135 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
136 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save(),
138 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName").
save(),
139 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName").
save(),
141 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
143 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
145 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/SignedModule")
147 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
149 Specification().groupBy(
"PXBarrel/PXLayer")
151 Specification().groupBy(
"PXForward/PXDisk")
157 StandardSpecificationTrend = [
158 Specification(PerModule).groupBy(
"PXBarrel/Lumisection")
160 .groupBy(
"PXBarrel",
"EXTEND_X")
162 Specification(PerModule).groupBy(
"PXForward/Lumisection")
164 .groupBy(
"PXForward",
"EXTEND_X")
166 Specification(IsOffline).groupBy(
"PXBarrel/LumiBlock")
168 .groupBy(
"PXBarrel",
"EXTEND_X")
170 Specification(IsOffline).groupBy(
"PXForward/LumiBlock")
172 .groupBy(
"PXForward",
"EXTEND_X")
176 StandardSpecificationTrend2D = [
177 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
179 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
180 .groupBy(
"PXBarrel",
"EXTEND_Y")
182 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
184 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
185 .groupBy(
"PXForward",
"EXTEND_Y")
187 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
189 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
190 .groupBy(
"PXBarrel",
"EXTEND_Y")
192 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
194 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
195 .groupBy(
"PXForward",
"EXTEND_Y")
199 StandardSpecification2DProfile = [
200 Specification(PerLayer2D)
201 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
202 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
203 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
206 Specification(PerLayer2D)
207 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
208 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
209 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
214 StandardSpecification2DOccupancy = [
215 Specification(PerLayer2D)
216 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
217 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
218 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
220 Specification(PerLayer2D)
221 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
222 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
223 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
227 StandardSpecificationPixelmapProfile = [
228 Specification(PerLayer2D)
229 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
230 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
231 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
234 Specification(PerLayer2D)
235 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
236 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
237 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
242 StandardSpecificationOccupancy = [
243 Specification(PerLayer2D)
244 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
245 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
246 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
248 Specification(PerLayer2D)
249 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
250 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
251 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
261 StandardSpecifications1D_Num = [
262 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/DetId/Event")
264 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder").
save()
266 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
268 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/Event")
270 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName")
272 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/DetId/Event")
274 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade").
save()
276 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/",
"EXTEND_X")
278 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
280 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/Event")
282 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName")
285 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel/Event")
287 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
289 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
291 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule/Event")
293 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule")
295 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
300 StandardSpecificationInclusive_Num = [
301 Specification().groupBy(
"PXBarrel/Event")
305 Specification().groupBy(
"PXForward/Event")
307 .groupBy(
"PXForward")
309 Specification().groupBy(
"PXAll/Event")
315 StandardSpecificationTrend_Num = [
316 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Event")
318 .groupBy(
"PXBarrel/PXLayer/Lumisection")
320 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
321 .groupBy(
"PXBarrel",
"EXTEND_Y")
323 Specification(PerModule).groupBy(
"PXBarrel/Event")
325 .groupBy(
"PXBarrel/Lumisection")
327 .groupBy(
"PXBarrel",
"EXTEND_X")
329 Specification(PerModule).groupBy(
"PXForward/PXDisk/Event")
331 .groupBy(
"PXForward/PXDisk/Lumisection")
333 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
334 .groupBy(
"PXForward",
"EXTEND_Y")
336 Specification(PerModule).groupBy(
"PXForward/Event")
338 .groupBy(
"PXForward/Lumisection")
340 .groupBy(
"PXForward",
"EXTEND_X")
342 Specification(PerModule).groupBy(
"PXAll/Event")
344 .groupBy(
"PXAll/Lumisection")
346 .groupBy(
"PXAll",
"EXTEND_X")
348 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/Event")
350 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
352 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
353 .groupBy(
"PXBarrel",
"EXTEND_Y")
355 Specification(IsOffline).groupBy(
"PXBarrel/Event")
357 .groupBy(
"PXBarrel/LumiBlock")
359 .groupBy(
"PXBarrel",
"EXTEND_X")
361 Specification(IsOffline).groupBy(
"PXForward/PXDisk/Event")
363 .groupBy(
"PXForward/PXDisk/LumiBlock")
365 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
366 .groupBy(
"PXForward",
"EXTEND_Y")
368 Specification(IsOffline).groupBy(
"PXForward/Event")
370 .groupBy(
"PXForward/LumiBlock")
372 .groupBy(
"PXForward",
"EXTEND_X")
374 Specification(IsOffline).groupBy(
"PXAll/Event")
376 .groupBy(
"PXAll/LumiBlock")
378 .groupBy(
"PXAll",
"EXTEND_X")
383 StandardSpecification2DProfile_Num = [
385 Specification(PerLayer2D)
386 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule" +
"/DetId/Event")
388 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
390 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
391 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
393 Specification(PerLayer2D)
394 .groupBy(
"DetId/Event")
396 .groupBy(
"PXForward/PXRing/PXDisk/SignedBladePanel")
398 .groupBy(
"PXForward/PXRing/PXDisk",
"EXTEND_Y")
399 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
407 if isinstance(a, cms.VPSet)
or isinstance(a, Specification):