Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQM.EcalCommon.CommonParams_cfi import *
0004 
0005 from DQM.EcalMonitorTasks.PedestalTask_cfi import ecalPedestalTask
0006 
0007 minChannelEntries = 3
0008 expectedMean = 200.
0009 toleranceMean = 25.
0010 toleranceRMSEB = [1., 1.2, 2.] # [G1, G6, G12]
0011 toleranceRMSEE = [1., 1.5, 3.] # [G1, G6, G12]
0012 expectedPNMean = 750.
0013 tolerancePNMean = 100.
0014 tolerancePNRMS = [20., 20.] # [G1, G16]
0015 
0016 ecalPedestalClient = cms.untracked.PSet(
0017     params = cms.untracked.PSet(
0018         minChannelEntries = cms.untracked.int32(minChannelEntries),
0019         expectedMean = cms.untracked.double(expectedMean),
0020         toleranceMean = cms.untracked.double(toleranceMean),
0021         toleranceRMSEB = cms.untracked.vdouble(toleranceRMSEB),
0022         toleranceRMSEE = cms.untracked.vdouble(toleranceRMSEE),
0023         expectedPNMean = cms.untracked.double(expectedPNMean),
0024         tolerancePNMean = cms.untracked.double(tolerancePNMean),
0025         tolerancePNRMS = cms.untracked.vdouble(tolerancePNRMS),
0026         MGPAGains = ecaldqmMGPAGains,
0027         MGPAGainsPN = ecaldqmMGPAGainsPN
0028     ),
0029     sources = cms.untracked.PSet(
0030         Pedestal = ecalPedestalTask.MEs.Pedestal,
0031         PNPedestal = ecalPedestalTask.MEs.PNPedestal
0032     ),
0033     MEs = cms.untracked.PSet(
0034         RMS = cms.untracked.PSet(
0035             kind = cms.untracked.string('TH1F'),
0036             multi = cms.untracked.PSet(
0037                 gain = ecaldqmMGPAGains
0038             ),
0039             otype = cms.untracked.string('SM'),
0040             xaxis = cms.untracked.PSet(
0041                 high = cms.untracked.double(10.0),
0042                 nbins = cms.untracked.int32(100),
0043                 low = cms.untracked.double(0.0)
0044             ),
0045             btype = cms.untracked.string('User'),
0046             path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal rms G%(gain)s %(sm)s'),
0047             description = cms.untracked.string('Distribution of the pedestal RMS for each crystal channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0048         ),
0049         PNRMS = cms.untracked.PSet(
0050             kind = cms.untracked.string('TH1F'),
0051             multi = cms.untracked.PSet(
0052                 pngain = ecaldqmMGPAGainsPN
0053             ),
0054             otype = cms.untracked.string('SMMEM'),
0055             xaxis = cms.untracked.PSet(
0056                 high = cms.untracked.double(50.0),
0057                 nbins = cms.untracked.int32(100),
0058                 low = cms.untracked.double(0.0)
0059             ),
0060             btype = cms.untracked.string('User'),
0061             path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPDT PNs pedestal rms %(sm)s G%(pngain)s'),
0062             description = cms.untracked.string('Distribution of the pedestal RMS for each PN channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0063         ),
0064         PNQualitySummary = cms.untracked.PSet(
0065             path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT PN pedestal quality G%(pngain)s summary'),
0066             otype = cms.untracked.string('MEM2P'),
0067             multi = cms.untracked.PSet(
0068                 pngain = ecaldqmMGPAGainsPN
0069             ),
0070             kind = cms.untracked.string('TH2F'),
0071             btype = cms.untracked.string('Crystal'),
0072             description = cms.untracked.string('Summary of the pedestal quality for PN diodes. A channel is red if the pedestal mean is off from ' + str(expectedPNMean) + ' by ' + str(tolerancePNMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds are ' + ('%.1f, %.1f' % tuple(tolerancePNRMS)) + ' for gains 1 and 16 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0073         ),
0074         QualitySummary = cms.untracked.PSet(
0075             path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT pedestal quality G%(gain)s summary%(suffix)s'),
0076             otype = cms.untracked.string('Ecal3P'),
0077             multi = cms.untracked.PSet(
0078                 gain = ecaldqmMGPAGains
0079             ),
0080             kind = cms.untracked.string('TH2F'),
0081             btype = cms.untracked.string('SuperCrystal'),
0082             description = cms.untracked.string('Summary of the pedestal quality for crystals. A channel is red if the pedestal mean is off from ' + str(expectedMean) + ' by ' + str(toleranceMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds for EB are ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEB)) + ' ADC, and for EE, ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEE)) + ' ADC. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0083         ),
0084         Quality = cms.untracked.PSet(
0085             path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal quality G%(gain)s %(sm)s'),
0086             otype = cms.untracked.string('SM'),
0087             multi = cms.untracked.PSet(
0088                 gain = ecaldqmMGPAGains
0089             ),
0090             kind = cms.untracked.string('TH2F'),
0091             btype = cms.untracked.string('Crystal'),
0092             description = cms.untracked.string('Summary of the pedestal quality for crystals. A channel is red if the pedestal mean is off from ' + str(expectedMean) + ' by ' + str(toleranceMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds for EB are ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEB)) + ' ADC, and for EE, ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEE)) + ' ADC. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0093         ),
0094         Mean = cms.untracked.PSet(
0095             kind = cms.untracked.string('TH1F'),
0096             multi = cms.untracked.PSet(
0097                 gain = ecaldqmMGPAGains
0098             ),
0099             otype = cms.untracked.string('SM'),
0100             xaxis = cms.untracked.PSet(
0101                 high = cms.untracked.double(230.0),
0102                 nbins = cms.untracked.int32(120),
0103                 low = cms.untracked.double(170.0)
0104             ),
0105             btype = cms.untracked.string('User'),
0106             path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal mean G%(gain)s %(sm)s'),
0107             description = cms.untracked.string('Distribution of pedestal mean in each channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0108         )
0109     )
0110 )