1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
6 SiPixelPhase1RawDataNErrors = DefaultHisto.clone(
7 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
11 range_min = 0, range_max = 30, range_nbins = 30,
14 Specification().groupBy(
"FED/FED/Event")
16 .groupBy(
"FED/FED").
save(),
17 Specification().groupBy(
"FED/FED/LinkInFed")
18 .groupBy(
"FED/FED",
"EXTEND_X")
20 Specification().groupBy(
"FED/LinkInFed")
21 .groupBy(
"FED",
"EXTEND_X")
22 .groupBy(
"",
"EXTEND_Y")
24 Specification().groupBy(
"FED/FED/Lumisection")
25 .groupBy(
"FED/FED",
"EXTEND_X")
32 SiPixelPhase1RawDataFIFOFull = DefaultHisto.clone(
33 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
35 title =
"Type of FIFO full",
36 xlabel =
"FIFO (data bit #)",
37 range_min = -0.5, range_max = 7.5, range_nbins = 8,
40 Specification().groupBy(
"FED/FED").
save(),
44 SiPixelPhase1RawDataTBMMessage = DefaultHisto.clone(
45 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
47 title =
"TBM trailer message",
48 xlabel =
"TBM message (data bit #)",
49 range_min = -0.5, range_max = 7.5, range_nbins = 8,
52 Specification().groupBy(
"FED/FED").
save(),
56 SiPixelPhase1RawDataTBMType = DefaultHisto.clone(
57 topFolderName = DefaultHisto.topFolderName.value() +
"/FED",
59 title =
"Type of TBM trailer",
61 range_min = -0.5, range_max = 4.5, range_nbins = 5,
64 Specification().groupBy(
"FED/FED").
save(),
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,
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()
87 SiPixelPhase1RawDataConf = cms.VPSet(
88 SiPixelPhase1RawDataNErrors,
89 SiPixelPhase1RawDataFIFOFull,
90 SiPixelPhase1RawDataTBMMessage,
91 SiPixelPhase1RawDataTBMType,
92 SiPixelPhase1RawDataTypeNErrors,
95 SiPixelPhase1RawDataAnalyzer = cms.EDAnalyzer(
"SiPixelPhase1RawData",
96 src = cms.InputTag(
"siPixelDigis"),
97 histograms = SiPixelPhase1RawDataConf,
98 geometry = SiPixelPhase1Geometry
101 SiPixelPhase1RawDataHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
102 histograms = SiPixelPhase1RawDataConf,
103 geometry = SiPixelPhase1Geometry