1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1RawDataNErrors = DefaultHisto.clone(
7 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
11 range_min = 0, range_max = 30, range_nbins = 30,
14 Specification().groupBy(
"FED/LinkInFed")
15 .groupBy(
"FED",
"EXTEND_X")
16 .groupBy(
"",
"EXTEND_Y")
21 SiPixelPhase1RawDataFIFOFull = DefaultHisto.clone(
22 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
25 title =
"Type of FIFO full",
26 xlabel =
"FIFO (data bit #)",
27 range_min = -0.5, range_max = 7.5, range_nbins = 8,
30 Specification().groupBy(
"FED/FED").
save(),
34 SiPixelPhase1RawDataTBMMessage = DefaultHisto.clone(
35 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
38 title =
"TBM trailer message",
39 xlabel =
"TBM message (data bit #)",
40 range_min = -0.5, range_max = 7.5, range_nbins = 8,
43 Specification().groupBy(
"FED/FED").
save(),
47 SiPixelPhase1RawDataTBMType = DefaultHisto.clone(
48 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
51 title =
"Type of TBM trailer",
53 range_min = -0.5, range_max = 4.5, range_nbins = 5,
56 Specification().groupBy(
"FED/FED").
save(),
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,
68 Specification().groupBy(
"FED")
69 .groupBy(
"",
"EXTEND_Y").
save()
75 SiPixelPhase1RawDataConf = cms.VPSet(
76 SiPixelPhase1RawDataNErrors,
77 SiPixelPhase1RawDataFIFOFull,
78 SiPixelPhase1RawDataTBMMessage,
79 SiPixelPhase1RawDataTBMType,
80 SiPixelPhase1RawDataTypeNErrors,
83 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
85 src = cms.InputTag(
"siPixelDigis"),
86 histograms = SiPixelPhase1RawDataConf,
87 geometry = SiPixelPhase1Geometry,
88 triggerflags = trigger.SiPixelPhase1Triggers
92 histograms = SiPixelPhase1RawDataConf,
93 geometry = SiPixelPhase1Geometry