CMS 3D CMS Logo

SiPixelPhase1RawData_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 
5 
6 SiPixelPhase1RawDataNErrors = DefaultHisto.clone(
7 topFolderName = DefaultHisto.topFolderName.value() +"/FED",
8  name = "errors",
9  title = "Errors",
10  xlabel = "errors",
11  range_min = 0, range_max = 30, range_nbins = 30,
12  dimensions = 0,
13  specs = VPSet(
14  Specification().groupBy("FED/FED/Event")
15  .reduce("COUNT")
16  .groupBy("FED/FED").save(),
17  Specification().groupBy("FED/FED/LinkInFed")
18  .groupBy("FED/FED", "EXTEND_X")
19  .save(),
20  Specification().groupBy("FED/LinkInFed")
21  .groupBy("FED", "EXTEND_X")
22  .groupBy("", "EXTEND_Y")
23  .save(),
24  Specification().groupBy("FED/FED/Lumisection")
25  .groupBy("FED/FED","EXTEND_X")
26  .save()
27  .groupBy("")
28  .save()
29  )
30 )
31 
32 SiPixelPhase1RawDataFIFOFull = DefaultHisto.clone(
33  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
34  name = "fifofull",
35  title = "Type of FIFO full",
36  xlabel = "FIFO (data bit #)",
37  range_min = -0.5, range_max = 7.5, range_nbins = 8,
38  dimensions = 1,
39  specs = VPSet(
40  Specification().groupBy("FED/FED").save(),
41  )
42 )
43 
44 SiPixelPhase1RawDataTBMMessage = DefaultHisto.clone(
45  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
46  name = "tbmmessage",
47  title = "TBM trailer message",
48  xlabel = "TBM message (data bit #)",
49  range_min = -0.5, range_max = 7.5, range_nbins = 8,
50  dimensions = 1,
51  specs = VPSet(
52  Specification().groupBy("FED/FED").save(),
53  )
54 )
55 
56 SiPixelPhase1RawDataTBMType = DefaultHisto.clone(
57  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
58  name = "tbmtype",
59  title = "Type of TBM trailer",
60  xlabel = "TBM type",
61  range_min = -0.5, range_max = 4.5, range_nbins = 5,
62  dimensions = 1,
63  specs = VPSet(
64  Specification().groupBy("FED/FED").save(),
65  )
66 )
67 
68 SiPixelPhase1RawDataTypeNErrors = DefaultHisto.clone(
69  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
70  name = "nerrors_per_type",
71  title = "Number of Errors per Type",
72  xlabel = "Error Type",
73  range_min = 24.5, range_max = 40.5, range_nbins = 16,
74  dimensions = 1,
75  specs = VPSet(
76  Specification().groupBy("FED/FED").save(),
77  Specification().groupBy("FED")
78  .groupBy("", "EXTEND_Y").save(),
79  Specification().groupBy("FED/FED/LinkInFed")
80  .groupBy("FED/FED","EXTEND_Y").save()
81 
82  )
83 )
84 
85 
86 
87 SiPixelPhase1RawDataConf = cms.VPSet(
88  SiPixelPhase1RawDataNErrors,
89  SiPixelPhase1RawDataFIFOFull,
90  SiPixelPhase1RawDataTBMMessage,
91  SiPixelPhase1RawDataTBMType,
92  SiPixelPhase1RawDataTypeNErrors,
93 )
94 
95 SiPixelPhase1RawDataAnalyzer = cms.EDAnalyzer("SiPixelPhase1RawData",
96  src = cms.InputTag("siPixelDigis"),
97  histograms = SiPixelPhase1RawDataConf,
98  geometry = SiPixelPhase1Geometry
99 )
100 
101 SiPixelPhase1RawDataHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
102  histograms = SiPixelPhase1RawDataConf,
103  geometry = SiPixelPhase1Geometry
104 )
DQM Environment
save
Definition: cuy.py:1163