Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:26

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 
0005 DefaultHistoDebug = DefaultHisto.clone(
0006   topFolderName = "PixelPhase1/Debug"
0007 )
0008 
0009 SiPixelPhase1GeometryDebugDetId = DefaultHistoDebug.clone(
0010   name = "debug_detid",
0011   title = "Location of DetIds",
0012   xlabel = "DetId",
0013   dimensions = 1,
0014   specs = VPSet(
0015     StandardSpecification2DProfile,
0016     StandardSpecificationPixelmapProfile,
0017   )
0018 )
0019 
0020 SiPixelPhase1GeometryDebugLadderBlade = DefaultHistoDebug.clone(
0021   name = "debug_ladderblade",
0022   title = "Location of Ladders/Blades",
0023   xlabel = "offline Ladder/Blade #",
0024   dimensions = 1,
0025   specs = VPSet(
0026     StandardSpecification2DProfile,
0027     StandardSpecificationPixelmapProfile,
0028   )
0029 )
0030 
0031 SiPixelPhase1GeometryDebugROC = DefaultHistoDebug.clone(
0032   name = "debug_roc",
0033   title = "Location of ROCs",
0034   xlabel = "ROC#",
0035   dimensions = 1,
0036   specs = VPSet(
0037     # TODO: make this per ROC!
0038     StandardSpecification2DProfile,
0039     StandardSpecificationPixelmapProfile,
0040     Specification()
0041           .groupBy("PXBarrel/PXLayer/PXModuleName/SignedLadderCoord/SignedModuleCoord")
0042           .groupBy("PXBarrel/PXLayer/PXModuleName/SignedLadderCoord", "EXTEND_X")
0043           .groupBy("PXBarrel/PXLayer/PXModuleName/", "EXTEND_Y")
0044           .reduce("MEAN")
0045           .save(),
0046 
0047   )
0048 )
0049 
0050 SiPixelPhase1GeometryDebugFED = DefaultHistoDebug.clone(
0051   name = "debug_fed",
0052   title = "Location of FEDs",
0053   xlabel = "FED#",
0054   dimensions = 1,
0055   specs = VPSet(
0056     StandardSpecification2DProfile,
0057     StandardSpecificationPixelmapProfile,
0058   )
0059 )
0060 
0061 SiPixelPhase1GeometryDebugConf = cms.VPSet(
0062   SiPixelPhase1GeometryDebugDetId,
0063   SiPixelPhase1GeometryDebugLadderBlade,
0064   SiPixelPhase1GeometryDebugROC,
0065   SiPixelPhase1GeometryDebugFED,
0066 )
0067 
0068 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0069 SiPixelPhase1GeometryDebugAnalyzer = DQMEDAnalyzer('SiPixelPhase1GeometryDebug',
0070     histograms = SiPixelPhase1GeometryDebugConf,
0071     geometry = SiPixelPhase1Geometry
0072 )
0073 
0074 SiPixelPhase1GeometryDebugHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
0075     histograms = SiPixelPhase1GeometryDebugConf,
0076     geometry = SiPixelPhase1Geometry
0077 )