Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:26

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 
0005 SiPixelPhase1DigisADC = DefaultHisto.clone(
0006   name = "adc",
0007   title = "Digi ADC values",
0008   xlabel = "ADC counts",
0009   range_min = 0,
0010   range_max = 256,
0011   range_nbins = 256,
0012   topFolderName = "PixelPhase1V/Digis",
0013   specs = VPSet(
0014     Specification().groupBy("PXBarrel/PXLayer").save(),
0015     Specification().groupBy("PXForward/PXDisk").save(),
0016     StandardSpecification2DProfile,
0017   )
0018 )
0019 
0020 SiPixelPhase1DigisNdigis = DefaultHisto.clone(
0021   name = "digis", # 'Count of' added automatically
0022   title = "Digis",
0023   xlabel = "Number of Digis",
0024   range_min = 0,
0025   range_max = 30,
0026   range_nbins = 30,
0027   dimensions = 0, # this is a count
0028   topFolderName = "PixelPhase1V/Digis",
0029   specs = VPSet(
0030     Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/PXLadder/PXModuleName/Event")
0031                             .reduce("COUNT")
0032                             .groupBy("PXBarrel/Shell/PXLayer/PXLadder/PXModuleName")
0033                             .save(),
0034     Specification(PerModule).groupBy("PXForward/HalfCylinder/PXDisk/PXRing/PXBlade/PXModuleName/Event")
0035                             .reduce("COUNT")
0036                             .groupBy("PXForward/HalfCylinder/PXDisk/PXRing/PXBlade/PXModuleName")
0037                             .save(),
0038   )
0039 )
0040 
0041 SiPixelPhase1DigisRows = DefaultHisto.clone(
0042   name = "row",
0043   title = "Digi Rows",
0044   xlabel = "Row",
0045   range_min = 0,
0046   range_max = 180,
0047   range_nbins = 180,
0048   topFolderName = "PixelPhase1V/Digis",
0049   specs = VPSet(
0050     Specification().groupBy("PXBarrel/PXLayer").save(),
0051     Specification().groupBy("PXForward/PXDisk").save(),
0052     StandardSpecification2DProfile,
0053   )
0054 )
0055 
0056 SiPixelPhase1DigisColumns = DefaultHisto.clone(
0057   name = "column",
0058   title = "Digi Columns",
0059   xlabel = "Column",
0060   range_min = 0,
0061   range_max = 420,
0062   range_nbins = 420,
0063   topFolderName = "PixelPhase1V/Digis",
0064   specs = VPSet(
0065     Specification().groupBy("PXBarrel/PXLayer").save(),
0066     Specification().groupBy("PXForward/PXDisk").save(),
0067     StandardSpecification2DProfile,
0068  )
0069 )
0070 
0071 # This has to match the order of the names in the C++ enum.
0072 SiPixelPhase1DigisConf = cms.VPSet(
0073   SiPixelPhase1DigisADC,
0074   SiPixelPhase1DigisNdigis,
0075   SiPixelPhase1DigisRows,
0076   SiPixelPhase1DigisColumns,
0077 )
0078 
0079 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0080 SiPixelPhase1DigisAnalyzerV = DQMEDAnalyzer('SiPixelPhase1DigisV',
0081         src = cms.InputTag("simSiPixelDigis"), 
0082         histograms = SiPixelPhase1DigisConf,
0083         geometry = SiPixelPhase1Geometry
0084 )
0085 
0086 SiPixelPhase1DigisHarvesterV = DQMEDHarvester("SiPixelPhase1DigisHarvesterV",
0087         histograms = SiPixelPhase1DigisConf,
0088         geometry = SiPixelPhase1Geometry
0089 )
0090