Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:33

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
0005 
0006 # this might also go into te Common config,as we do not reference it
0007 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0008 
0009 SiPixelPhase1BadROC = DefaultHisto.clone(
0010 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_PCL",
0011   name = "Dead Channels per ROC",
0012   title = "Dead Channels per ROC",
0013   xlabel = "dead channels per ROC",
0014   range_min = 0, range_max = 1, range_nbins = 100,
0015   dimensions = 0,
0016   specs = VPSet(
0017     Specification(PerLayer2D)
0018        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0019        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0020        .groupBy("PXLayer", "EXTEND_Y")
0021        .save(),
0022     Specification(PerLayer2D)
0023        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0024        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0025        .groupBy("PXRing", "EXTEND_Y")
0026        .save()
0027     )
0028 )
0029 
0030 SiPixelPhase1PermanentBadROC = DefaultHisto.clone(
0031 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Permanent",
0032   name = "Dead Channels per ROC",
0033   title = "Dead Channels per ROC",
0034   xlabel = "dead channels per ROC",
0035   range_min = 0, range_max = 1, range_nbins = 100,
0036   dimensions = 0,
0037   specs = VPSet(
0038     Specification(PerLayer2D)
0039        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0040        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0041        .groupBy("PXLayer", "EXTEND_Y")
0042        .save(),
0043     Specification(PerLayer2D)
0044        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0045        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0046        .groupBy("PXRing", "EXTEND_Y")
0047        .save()
0048     )
0049 )
0050 
0051 SiPixelPhase1FEDerrorROC = DefaultHisto.clone(
0052 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_FEDerror",
0053   name = "Dead Channels per ROC",
0054   title = "Dead Channels per ROC",
0055   xlabel = "dead channels per ROC",
0056   range_min = 0, range_max = 1, range_nbins = 100,
0057   dimensions = 0,
0058   specs = VPSet(
0059     Specification(PerLayer2D)
0060        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0061        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0062        .groupBy("PXLayer", "EXTEND_Y")
0063        .save(),
0064     Specification(PerLayer2D)
0065        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0066        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0067        .groupBy("PXRing", "EXTEND_Y")
0068        .save()
0069     )
0070 )
0071 
0072 SiPixelPhase1StuckTBMROC = DefaultHisto.clone(
0073 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_StuckTBM",
0074   name = "Dead Channels per ROC",
0075   title = "Dead Channels per ROC",
0076   xlabel = "dead channels per ROC",
0077   range_min = 0, range_max = 1, range_nbins = 100,
0078   dimensions = 0,
0079   specs = VPSet(
0080     Specification(PerLayer2D)
0081        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0082        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0083        .groupBy("PXLayer", "EXTEND_Y")
0084        .save(),
0085     Specification(PerLayer2D)
0086        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0087        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0088        .groupBy("PXRing", "EXTEND_Y")
0089        .save()
0090     )
0091 )
0092 
0093 SiPixelPhase1OtherBadROC = DefaultHisto.clone(
0094 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Other",
0095   name = "Dead Channels per ROC",
0096   title = "Dead Channels per ROC",
0097   xlabel = "dead channels per ROC",
0098   range_min = 0, range_max = 1, range_nbins = 100,
0099   dimensions = 0,
0100   specs = VPSet(
0101     Specification(PerLayer2D)
0102        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0103        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0104        .groupBy("PXLayer", "EXTEND_Y")
0105        .save(),
0106     Specification(PerLayer2D)
0107        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0108        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0109        .groupBy("PXRing", "EXTEND_Y")
0110        .save()
0111     )
0112 )
0113 
0114 SiPixelPhase1PromptBadROC = DefaultHisto.clone(
0115 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Prompt",
0116   name = "Dead Channels per ROC",
0117   title = "Dead Channels per ROC",
0118   xlabel = "dead channels per ROC",
0119   range_min = 0, range_max = 1, range_nbins = 100,
0120   dimensions = 0,
0121   specs = VPSet(
0122     Specification(PerLayer2D)
0123        .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
0124        .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
0125        .groupBy("PXLayer", "EXTEND_Y")
0126        .save(),
0127     Specification(PerLayer2D)
0128        .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
0129        .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
0130        .groupBy("PXRing", "EXTEND_Y")
0131        .save()
0132     )
0133 )
0134 
0135 # This has to match the order of the names in the C++ enum.
0136 SiPixelPhase1BadROCConf = cms.VPSet(
0137 SiPixelPhase1BadROC,
0138 SiPixelPhase1PermanentBadROC,
0139 SiPixelPhase1FEDerrorROC,
0140 SiPixelPhase1StuckTBMROC, 
0141 SiPixelPhase1OtherBadROC,
0142 SiPixelPhase1PromptBadROC
0143 )
0144 
0145 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0146 siPixelStatusHarvester = DQMEDAnalyzer("SiPixelStatusHarvester",
0147     histograms = SiPixelPhase1BadROCConf,
0148     geometry = SiPixelPhase1Geometry,
0149     #triggerflags = trigger.SiPixelPhase1Triggers SiPixelQuality ALCARECO doesn't contain any trigger infor
0150     SiPixelStatusManagerParameters = cms.PSet(
0151         thresholdL1  = cms.untracked.double(0.1),
0152         thresholdL2  = cms.untracked.double(0.2),
0153         thresholdL3  = cms.untracked.double(0.2),
0154         thresholdL4  = cms.untracked.double(0.2),
0155         thresholdRNG1  = cms.untracked.double(0.1),
0156         thresholdRNG2  = cms.untracked.double(0.1),
0157         outputBase = cms.untracked.string("runbased"), #nLumibased #runbased #dynamicLumibased
0158         aveDigiOcc = cms.untracked.int32(20000),
0159         resetEveryNLumi = cms.untracked.int32(1),
0160         moduleName = cms.untracked.string("siPixelStatusProducer"),
0161         label      = cms.untracked.string("siPixelStatus"),
0162     ),
0163     debug = cms.untracked.bool(False),
0164     recordName   = cms.untracked.string("SiPixelQualityFromDbRcd")
0165 
0166 )
0167 
0168 siPixelPhase1DQMHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
0169         histograms = SiPixelPhase1BadROCConf,
0170         geometry = SiPixelPhase1Geometry
0171 )
0172