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.LedTask_cfi import ecalLedTask
0006 
0007 forwardFactor = 0.5
0008 minChannelEntries = 3
0009 expectedAmplitude = [200., 10.]
0010 toleranceAmplitude = 0.1
0011 toleranceAmpRMSRatio = 0.5
0012 expectedTiming = [4.4, 4.5]
0013 toleranceTiming = 1.
0014 toleranceTimRMS = 25.
0015 expectedPNAmplitude = [800., 800.]
0016 tolerancePNAmp = 0.1
0017 tolerancePNRMSRatio = 1.
0018 
0019 ecalLedClient = cms.untracked.PSet(
0020     params = cms.untracked.PSet(
0021         forwardFactor = cms.untracked.double(forwardFactor),
0022         minChannelEntries = cms.untracked.int32(minChannelEntries),
0023         expectedAmplitude = cms.untracked.vdouble(expectedAmplitude),
0024         toleranceAmplitude = cms.untracked.double(toleranceAmplitude),
0025         toleranceAmpRMSRatio = cms.untracked.double(toleranceAmpRMSRatio),
0026         expectedPNAmplitude = cms.untracked.vdouble(expectedPNAmplitude),
0027         tolerancePNAmp = cms.untracked.double(tolerancePNAmp),
0028         tolerancePNRMSRatio = cms.untracked.double(tolerancePNRMSRatio),
0029         expectedTiming = cms.untracked.vdouble(expectedTiming),
0030         toleranceTiming = cms.untracked.double(toleranceTiming),    
0031         toleranceTimRMS = cms.untracked.double(toleranceTimRMS),
0032         ledWavelengths = ecaldqmLedWavelengths
0033     ),
0034     sources = cms.untracked.PSet(
0035         Timing = ecalLedTask.MEs.Timing,
0036         PNAmplitude = ecalLedTask.MEs.PNAmplitude,
0037         Amplitude = ecalLedTask.MEs.Amplitude,
0038         CalibStatus = ecalLedTask.MEs.CalibStatus
0039     ),
0040     MEs = cms.untracked.PSet(
0041         TimingMean = cms.untracked.PSet(
0042             kind = cms.untracked.string('TH1F'),
0043             multi = cms.untracked.PSet(
0044                 wl = ecaldqmLedWavelengths
0045             ),
0046             otype = cms.untracked.string('EESM'),
0047             xaxis = cms.untracked.PSet(
0048                 high = cms.untracked.double(5.5),
0049                 nbins = cms.untracked.int32(100),
0050                 low = cms.untracked.double(3.5)
0051             ),
0052             btype = cms.untracked.string('User'),
0053             path = cms.untracked.string('EcalEndcap/EELedClient/EELDT led timing L%(wl)s %(sm)s'),
0054             description = cms.untracked.string('Distribution of the timing in each crystal channel. Z scale is in LHC clocks. Channels with less than ' + str(minChannelEntries) + ' are not considered.')            
0055         ),
0056         PNQualitySummary = cms.untracked.PSet(
0057             path = cms.untracked.string('EcalEndcap/EESummaryClient/EELDT PN led quality summary L%(wl)s'),
0058             otype = cms.untracked.string('EEMEM'),
0059             multi = cms.untracked.PSet(
0060                 wl = ecaldqmLedWavelengths
0061             ),
0062             kind = cms.untracked.string('TH2F'),
0063             btype = cms.untracked.string('Crystal'),
0064             description = cms.untracked.string('Summary of the led data quality in the PN diodes. A channel is red if mean / expected < ' + str(tolerancePNAmp) + ' or RMS / expected > ' + str(tolerancePNRMSRatio) + '. Expected amplitudes are ' + ('%.1f, %.1f' % tuple(expectedPNAmplitude)) + ' for led 1 and 2 respectively. Channels with less than ' + str(minChannelEntries) + ' are not considered.')
0065         ),
0066         TimingRMSMap = cms.untracked.PSet(
0067             path = cms.untracked.string('EcalEndcap/EELedClient/EELDT timing RMS L%(wl)s'),
0068             otype = cms.untracked.string('EE'),
0069             multi = cms.untracked.PSet(
0070                 wl = ecaldqmLedWavelengths
0071             ),
0072             kind = cms.untracked.string('TH2F'),
0073             btype = cms.untracked.string('Crystal'),
0074             description = cms.untracked.string('2D distribution of the led timing RMS. Z scale is in LHC clocks. Channels with less than ' + str(minChannelEntries) + ' are not considered.')            
0075         ),
0076         AmplitudeMean = cms.untracked.PSet(
0077             kind = cms.untracked.string('TH1F'),
0078             multi = cms.untracked.PSet(
0079                 wl = ecaldqmLedWavelengths
0080             ),
0081             otype = cms.untracked.string('EESM'),
0082             xaxis = cms.untracked.PSet(
0083                 high = cms.untracked.double(400.0),
0084                 nbins = cms.untracked.int32(100),
0085                 low = cms.untracked.double(0.0)
0086             ),
0087             btype = cms.untracked.string('User'),
0088             path = cms.untracked.string('EcalEndcap/EELedClient/EELDT amplitude L%(wl)s %(sm)s'),
0089             description = cms.untracked.string('Distribution of the mean amplitude seen in each crystal. Channels with less than ' + str(minChannelEntries) + ' are not considered.')            
0090         ),
0091         QualitySummary = cms.untracked.PSet(
0092             path = cms.untracked.string('EcalEndcap/EESummaryClient/EELDT%(suffix)s led quality summary L%(wl)s'),
0093             otype = cms.untracked.string('EE2P'),
0094             multi = cms.untracked.PSet(
0095                 wl = ecaldqmLedWavelengths
0096             ),
0097             kind = cms.untracked.string('TH2F'),
0098             btype = cms.untracked.string('SuperCrystal'),
0099             description = cms.untracked.string('Summary of the led data quality. A channel is red either if mean / expected < ' + str(toleranceAmplitude) + ', or if RMS / expected > ' + str(toleranceAmpRMSRatio) + ', or if mean timing is off from expected by ' + str(toleranceTiming) + '. Expected amplitudes and timings are ' + ('%.1f, %.1f' % tuple(expectedAmplitude)) + ' and ' + ('%.1f, %.1f' % tuple(expectedTiming)) + ' for leds 1 and 2 respectively. Channels with less than ' + str(minChannelEntries) + ' are not considered.')
0100         ),
0101         Quality = cms.untracked.PSet(
0102             path = cms.untracked.string('EcalEndcap/EELedClient/EELDT led quality L%(wl)s %(sm)s'),
0103             otype = cms.untracked.string('EESM'),
0104             multi = cms.untracked.PSet(
0105                 wl = ecaldqmLedWavelengths
0106             ),
0107             kind = cms.untracked.string('TH2F'),
0108             btype = cms.untracked.string('Crystal'),
0109             description = cms.untracked.string('Summary of the led data quality. A channel is red either if mean / expected < ' + str(toleranceAmplitude) + ', or if RMS / expected > ' + str(toleranceAmpRMSRatio) + ', or if mean timing is off from expected by ' + str(toleranceTiming) + '. Expected amplitudes and timings are ' + ('%.1f, %.1f' % tuple(expectedAmplitude)) + ' and ' + ('%.1f, %.1f' % tuple(expectedTiming)) + ' for leds 1 and 2 respectively. Channels with less than ' + str(minChannelEntries) + ' are not considered.')
0110         ),
0111         AmplitudeRMS = cms.untracked.PSet(
0112             path = cms.untracked.string('EcalEndcap/EELedClient/EELDT amplitude RMS L%(wl)s'),
0113             otype = cms.untracked.string('EE'),
0114             multi = cms.untracked.PSet(
0115                 wl = ecaldqmLedWavelengths
0116             ),
0117             kind = cms.untracked.string('TH2F'),
0118             btype = cms.untracked.string('Crystal'),
0119             description = cms.untracked.string('2D distribution of the amplitude RMS. Channels with less than ' + str(minChannelEntries) + ' are not considered.')            
0120         )
0121     )
0122 )