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.TestPulseTask_cfi import ecalTestPulseTask
0006 
0007 minChannelEntries = 3
0008 amplitudeThreshold = [1200., 600., 100.]
0009 toleranceRMS = [160., 80., 10.]
0010 PNAmplitudeThreshold = [12.5, 200.]
0011 tolerancePNRMS = [20., 20.]
0012 
0013 ecalTestPulseClient = cms.untracked.PSet(
0014     params = cms.untracked.PSet(
0015         minChannelEntries = cms.untracked.int32(minChannelEntries),
0016         amplitudeThreshold = cms.untracked.vdouble(amplitudeThreshold),
0017         toleranceRMS = cms.untracked.vdouble(toleranceRMS),
0018         PNAmplitudeThreshold = cms.untracked.vdouble(PNAmplitudeThreshold),
0019         tolerancePNRMS = cms.untracked.vdouble(tolerancePNRMS),
0020         MGPAGains = ecaldqmMGPAGains,
0021         MGPAGainsPN = ecaldqmMGPAGainsPN
0022     ),
0023     sources = cms.untracked.PSet(
0024         Amplitude = ecalTestPulseTask.MEs.Amplitude,
0025         PNAmplitude = ecalTestPulseTask.MEs.PNAmplitude
0026     ),
0027     MEs = cms.untracked.PSet(
0028         PNQualitySummary = cms.untracked.PSet(
0029             path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sTPT PN test pulse quality G%(pngain)s summary'),
0030             otype = cms.untracked.string('MEM2P'),
0031             multi = cms.untracked.PSet(
0032                 pngain = ecaldqmMGPAGainsPN
0033             ),
0034             kind = cms.untracked.string('TH2F'),
0035             btype = cms.untracked.string('Crystal'),
0036             description = cms.untracked.string('Summary of test pulse data quality for PN diodes. A channel is red if mean amplitude is lower than the threshold, or RMS is greater than threshold. The mean and RMS thresholds are ' + ('%.1f, %.1f' % tuple(PNAmplitudeThreshold)) + ' and ' + ('%.1f, %.1f' % tuple(tolerancePNRMS)) + ' for gains 1 and 16 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0037         ),
0038         QualitySummary = cms.untracked.PSet(
0039             path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sTPT%(suffix)s test pulse quality G%(gain)s summary'),
0040             otype = cms.untracked.string('Ecal3P'),
0041             multi = cms.untracked.PSet(
0042                 gain = ecaldqmMGPAGains
0043             ),
0044             kind = cms.untracked.string('TH2F'),
0045             btype = cms.untracked.string('SuperCrystal'),
0046             description = cms.untracked.string('Summary of test pulse data quality for crystals. A channel is red if mean amplitude is lower than the threshold, or RMS is greater than threshold. The mean and RMS thresholds are ' + ('%.1f, %.1f, %.1f' % tuple(amplitudeThreshold)) + ' and ' + ('%.1f, %.1f, %.1f' % tuple(toleranceRMS)) + ' for gains 1, 6, and 12 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0047         ),
0048         Quality = cms.untracked.PSet(
0049             path = cms.untracked.string('%(subdet)s/%(prefix)sTestPulseClient/%(prefix)sTPT test pulse quality G%(gain)s %(sm)s'),
0050             otype = cms.untracked.string('SM'),
0051             multi = cms.untracked.PSet(
0052                 gain = ecaldqmMGPAGains
0053             ),
0054             kind = cms.untracked.string('TH2F'),
0055             btype = cms.untracked.string('Crystal'),
0056             description = cms.untracked.string('Summary of test pulse data quality for crystals. A channel is red if mean amplitude is lower than the threshold, or RMS is greater than threshold. The mean and RMS thresholds are ' + ('%.1f, %.1f, %.1f' % tuple(amplitudeThreshold)) + ' and ' + ('%.1f, %.1f, %.1f' % tuple(toleranceRMS)) + ' for gains 1, 6, and 12 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0057         ),
0058         AmplitudeRMS = cms.untracked.PSet(
0059             multi = cms.untracked.PSet(
0060                 gain = ecaldqmMGPAGains
0061             ),
0062             kind = cms.untracked.string('TH2F'),
0063             otype = cms.untracked.string('SM'),
0064             zaxis = cms.untracked.PSet(
0065                 title = cms.untracked.string('rms (ADC counts)')
0066             ),
0067             btype = cms.untracked.string('Crystal'),
0068             path = cms.untracked.string('%(subdet)s/%(prefix)sTestPulseClient/%(prefix)sTPT test pulse rms G%(gain)s %(sm)s'),
0069             description = cms.untracked.string('2D distribution of the amplitude RMS. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
0070         )
0071     )
0072 )