Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:24

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
0005 
0006 SiPixelPhase1RawDataNErrors = DefaultHisto.clone(
0007 topFolderName = DefaultHisto.topFolderName.value() +"/FED",
0008   name = "errors",
0009   title = "Errors",
0010   xlabel = "errors",
0011   range_min = 0, range_max = 30, range_nbins = 30,
0012   dimensions = 0,
0013   specs = VPSet(
0014     Specification().groupBy("FED/LinkInFed")
0015                    .groupBy("FED", "EXTEND_X")
0016                    .groupBy("", "EXTEND_Y")
0017                    .save()
0018   )
0019 )
0020 
0021 SiPixelPhase1RawDataFIFOFull = DefaultHisto.clone(
0022     topFolderName = DefaultHisto.topFolderName.value() +"/FED", 
0023     name = "fifofull",
0024     enabled=False,
0025     title = "Type of FIFO full",
0026     xlabel = "FIFO (data bit #)",
0027     range_min = -0.5, range_max = 7.5, range_nbins = 8,
0028     dimensions = 1,
0029     specs = VPSet(
0030         Specification().groupBy("FED/FED").save(),
0031     )
0032 )
0033 
0034 SiPixelPhase1RawDataTBMMessage = DefaultHisto.clone(
0035   topFolderName = DefaultHisto.topFolderName.value() +"/FED",
0036   name = "tbmmessage",
0037   enabled=False,
0038   title = "TBM trailer message",
0039   xlabel = "TBM message (data bit #)",
0040   range_min = -0.5, range_max = 7.5, range_nbins = 8,
0041   dimensions = 1,
0042   specs = VPSet(
0043     Specification().groupBy("FED/FED").save(),
0044   )
0045 )
0046 
0047 SiPixelPhase1RawDataTBMType = DefaultHisto.clone(
0048   topFolderName = DefaultHisto.topFolderName.value() +"/FED",
0049   name = "tbmtype",
0050   enabled=False,
0051   title = "Type of TBM trailer",
0052   xlabel = "TBM type",
0053   range_min = -0.5, range_max = 4.5, range_nbins = 5,
0054   dimensions = 1,
0055   specs = VPSet(
0056     Specification().groupBy("FED/FED").save(),
0057   )
0058 )
0059 
0060 SiPixelPhase1RawDataTypeNErrors = DefaultHisto.clone(
0061   topFolderName = DefaultHisto.topFolderName.value() +"/FED",
0062   name = "nerrors_per_type",
0063   title = "Number of Errors per Type",
0064   xlabel = "Error Type",
0065   range_min = 24.5, range_max = 40.5, range_nbins = 16,
0066   dimensions = 1,
0067   specs = VPSet(
0068     Specification().groupBy("FED")
0069                    .groupBy("", "EXTEND_Y").save()
0070   )
0071 )
0072 
0073 
0074 
0075 SiPixelPhase1RawDataConf = cms.VPSet(
0076   SiPixelPhase1RawDataNErrors,
0077   SiPixelPhase1RawDataFIFOFull,
0078   SiPixelPhase1RawDataTBMMessage,
0079   SiPixelPhase1RawDataTBMType,
0080   SiPixelPhase1RawDataTypeNErrors,
0081 )
0082 
0083 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0084 SiPixelPhase1RawDataAnalyzer = DQMEDAnalyzer('SiPixelPhase1RawData',
0085         src = cms.InputTag("siPixelDigis"),
0086         histograms = SiPixelPhase1RawDataConf,
0087         geometry = SiPixelPhase1Geometry,
0088         triggerflags = trigger.SiPixelPhase1Triggers
0089 )
0090 
0091 SiPixelPhase1RawDataHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
0092         histograms = SiPixelPhase1RawDataConf,
0093         geometry = SiPixelPhase1Geometry
0094 )