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 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
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/LinkInFed")
15  .groupBy("FED", "EXTEND_X")
16  .groupBy("", "EXTEND_Y")
17  .save()
18  )
19 )
20 
21 SiPixelPhase1RawDataFIFOFull = DefaultHisto.clone(
22  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
23  name = "fifofull",
24  enabled=False,
25  title = "Type of FIFO full",
26  xlabel = "FIFO (data bit #)",
27  range_min = -0.5, range_max = 7.5, range_nbins = 8,
28  dimensions = 1,
29  specs = VPSet(
30  Specification().groupBy("FED/FED").save(),
31  )
32 )
33 
34 SiPixelPhase1RawDataTBMMessage = DefaultHisto.clone(
35  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
36  name = "tbmmessage",
37  enabled=False,
38  title = "TBM trailer message",
39  xlabel = "TBM message (data bit #)",
40  range_min = -0.5, range_max = 7.5, range_nbins = 8,
41  dimensions = 1,
42  specs = VPSet(
43  Specification().groupBy("FED/FED").save(),
44  )
45 )
46 
47 SiPixelPhase1RawDataTBMType = DefaultHisto.clone(
48  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
49  name = "tbmtype",
50  enabled=False,
51  title = "Type of TBM trailer",
52  xlabel = "TBM type",
53  range_min = -0.5, range_max = 4.5, range_nbins = 5,
54  dimensions = 1,
55  specs = VPSet(
56  Specification().groupBy("FED/FED").save(),
57  )
58 )
59 
60 SiPixelPhase1RawDataTypeNErrors = DefaultHisto.clone(
61  topFolderName = DefaultHisto.topFolderName.value() +"/FED",
62  name = "nerrors_per_type",
63  title = "Number of Errors per Type",
64  xlabel = "Error Type",
65  range_min = 24.5, range_max = 40.5, range_nbins = 16,
66  dimensions = 1,
67  specs = VPSet(
68  Specification().groupBy("FED")
69  .groupBy("", "EXTEND_Y").save()
70  )
71 )
72 
73 
74 
75 SiPixelPhase1RawDataConf = cms.VPSet(
76  SiPixelPhase1RawDataNErrors,
77  SiPixelPhase1RawDataFIFOFull,
78  SiPixelPhase1RawDataTBMMessage,
79  SiPixelPhase1RawDataTBMType,
80  SiPixelPhase1RawDataTypeNErrors,
81 )
82 
83 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
84 SiPixelPhase1RawDataAnalyzer = DQMEDAnalyzer('SiPixelPhase1RawData',
85  src = cms.InputTag("siPixelDigis"),
86  histograms = SiPixelPhase1RawDataConf,
87  geometry = SiPixelPhase1Geometry,
88  triggerflags = trigger.SiPixelPhase1Triggers
89 )
90 
91 SiPixelPhase1RawDataHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
92  histograms = SiPixelPhase1RawDataConf,
93  geometry = SiPixelPhase1Geometry
94 )
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
HistogramManager_cfi
DQMEDHarvester
Definition: DQMEDHarvester.py:1
HistogramManager_cfi.VPSet
def VPSet(*args)
Definition: HistogramManager_cfi.py:404
cuy.save
save
Definition: cuy.py:1164