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),
54 perLumiHarvesting = cms.bool(
False),
61 bookUndefined = cms.bool(
False),
64 topFolderName = cms.string(
"PixelPhase1"),
67 name = cms.string(
"unnamed"),
68 title = cms.string(
"Histogram of Something"),
69 xlabel = cms.string(
"something"),
70 ylabel = cms.string(
"count"),
71 dimensions = cms.int32(1),
72 range_min = cms.double(0),
73 range_max = cms.double(100),
74 range_nbins = cms.int32(100),
75 range_y_min = cms.double(0),
76 range_y_max = cms.double(100),
77 range_y_nbins = cms.int32(100),
100 DefaultHistoDigiCluster=DefaultHisto.clone()
101 DefaultHistoDigiCluster.topFolderName= cms.string(
"PixelPhase1/Phase1_MechanicalView")
103 DefaultHistoSummary=DefaultHisto.clone()
104 DefaultHistoSummary.topFolderName= cms.string(
"PixelPhase1/Summary")
106 DefaultHistoTrack=DefaultHisto.clone()
107 DefaultHistoTrack.topFolderName= cms.string(
"PixelPhase1/Tracks")
109 DefaultHistoReadout=DefaultHisto.clone()
110 DefaultHistoReadout.topFolderName= cms.string(
"PixelPhase1/FED/Readout")
113 StandardSpecifications1D = [
118 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder")
121 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
123 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade")
126 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk",
"EXTEND_X")
128 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
130 Specification().groupBy(
"PXBarrel").
save(),
131 Specification().groupBy(
"PXForward").
save(),
132 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
133 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save(),
135 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName").
save(),
136 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName").
save(),
138 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
140 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
142 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/SignedModule")
144 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
146 Specification().groupBy(
"PXBarrel/PXLayer")
148 Specification().groupBy(
"PXForward/PXDisk")
154 StandardSpecificationTrend = [
155 Specification(PerModule).groupBy(
"PXBarrel/Lumisection")
157 .groupBy(
"PXBarrel",
"EXTEND_X")
159 Specification(PerModule).groupBy(
"PXForward/Lumisection")
161 .groupBy(
"PXForward",
"EXTEND_X")
163 Specification(IsOffline).groupBy(
"PXBarrel/LumiBlock")
165 .groupBy(
"PXBarrel",
"EXTEND_X")
167 Specification(IsOffline).groupBy(
"PXForward/LumiBlock")
169 .groupBy(
"PXForward",
"EXTEND_X")
173 StandardSpecificationTrend2D = [
174 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Lumisection")
176 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
177 .groupBy(
"PXBarrel",
"EXTEND_Y")
179 Specification(PerModule).groupBy(
"PXForward/PXDisk/Lumisection")
181 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
182 .groupBy(
"PXForward",
"EXTEND_Y")
184 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/LumiBlock")
186 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
187 .groupBy(
"PXBarrel",
"EXTEND_Y")
189 Specification(IsOffline).groupBy(
"PXForward/PXDisk/LumiBlock")
191 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
192 .groupBy(
"PXForward",
"EXTEND_Y")
196 StandardSpecification2DProfile = [
197 Specification(PerLayer2D)
198 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
199 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
200 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
203 Specification(PerLayer2D)
204 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
205 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
206 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
211 StandardSpecification2DOccupancy = [
212 Specification(PerLayer2D)
213 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
214 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
215 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
217 Specification(PerLayer2D)
218 .groupBy(
"PXForward/PXRing/SignedBladePanel/PXDisk")
219 .groupBy(
"PXForward/PXRing/SignedBladePanel",
"EXTEND_X")
220 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
224 StandardSpecificationPixelmapProfile = [
225 Specification(PerLayer2D)
226 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
227 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
228 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
231 Specification(PerLayer2D)
232 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
233 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
234 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
239 StandardSpecificationOccupancy = [
240 Specification(PerLayer2D)
241 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord/SignedModuleCoord")
242 .groupBy(
"PXBarrel/PXLayer/SignedLadderCoord",
"EXTEND_X")
243 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
245 Specification(PerLayer2D)
246 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord/SignedDiskCoord")
247 .groupBy(
"PXForward/PXRing/SignedBladePanelCoord",
"EXTEND_X")
248 .groupBy(
"PXForward/PXRing",
"EXTEND_Y")
258 StandardSpecifications1D_Num = [
259 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/DetId/Event")
261 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder").
save()
263 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
265 Specification(PerModule).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/Event")
267 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName")
269 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/DetId/Event")
271 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade").
save()
273 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/",
"EXTEND_X")
275 .groupBy(
"PXForward/HalfCylinder/PXRing/",
"EXTEND_X")
277 Specification(PerModule).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/Event")
279 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName")
282 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel/Event")
284 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXPanel")
286 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade",
"EXTEND_X")
288 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule/Event")
290 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder/PXBModule")
292 .groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder",
"EXTEND_X")
297 StandardSpecificationInclusive_Num = [
298 Specification().groupBy(
"PXBarrel/Event")
302 Specification().groupBy(
"PXForward/Event")
304 .groupBy(
"PXForward")
306 Specification().groupBy(
"PXAll/Event")
312 StandardSpecificationTrend_Num = [
313 Specification(PerModule).groupBy(
"PXBarrel/PXLayer/Event")
315 .groupBy(
"PXBarrel/PXLayer/Lumisection")
317 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
318 .groupBy(
"PXBarrel",
"EXTEND_Y")
320 Specification(PerModule).groupBy(
"PXBarrel/Event")
322 .groupBy(
"PXBarrel/Lumisection")
324 .groupBy(
"PXBarrel",
"EXTEND_X")
326 Specification(PerModule).groupBy(
"PXForward/PXDisk/Event")
328 .groupBy(
"PXForward/PXDisk/Lumisection")
330 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
331 .groupBy(
"PXForward",
"EXTEND_Y")
333 Specification(PerModule).groupBy(
"PXForward/Event")
335 .groupBy(
"PXForward/Lumisection")
337 .groupBy(
"PXForward",
"EXTEND_X")
339 Specification(PerModule).groupBy(
"PXAll/Event")
341 .groupBy(
"PXAll/Lumisection")
343 .groupBy(
"PXAll",
"EXTEND_X")
345 Specification(IsOffline).groupBy(
"PXBarrel/PXLayer/Event")
347 .groupBy(
"PXBarrel/PXLayer/LumiBlock")
349 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
350 .groupBy(
"PXBarrel",
"EXTEND_Y")
352 Specification(IsOffline).groupBy(
"PXBarrel/Event")
354 .groupBy(
"PXBarrel/LumiBlock")
356 .groupBy(
"PXBarrel",
"EXTEND_X")
358 Specification(IsOffline).groupBy(
"PXForward/PXDisk/Event")
360 .groupBy(
"PXForward/PXDisk/LumiBlock")
362 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
363 .groupBy(
"PXForward",
"EXTEND_Y")
365 Specification(IsOffline).groupBy(
"PXForward/Event")
367 .groupBy(
"PXForward/LumiBlock")
369 .groupBy(
"PXForward",
"EXTEND_X")
371 Specification(IsOffline).groupBy(
"PXAll/Event")
373 .groupBy(
"PXAll/LumiBlock")
375 .groupBy(
"PXAll",
"EXTEND_X")
380 StandardSpecification2DProfile_Num = [
382 Specification(PerLayer2D)
383 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule" +
"/DetId/Event")
385 .groupBy(
"PXBarrel/PXLayer/SignedLadder/SignedModule")
387 .groupBy(
"PXBarrel/PXLayer/SignedLadder",
"EXTEND_X")
388 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
390 Specification(PerLayer2D)
391 .groupBy(
"DetId/Event")
393 .groupBy(
"PXForward/PXRing/PXDisk/SignedBladePanel")
395 .groupBy(
"PXForward/PXRing/PXDisk",
"EXTEND_Y")
396 .groupBy(
"PXForward/PXRing",
"EXTEND_X")
404 if isinstance(a, cms.VPSet)
or isinstance(a, Specification):