1 import FWCore.ParameterSet.Config
as cms
5 from DQM.EcalMonitorTasks.LedTask_cfi
import ecalLedTask
9 expectedAmplitude = [200., 10.]
10 toleranceAmplitude = 0.1
11 toleranceAmpRMSRatio = 0.5
12 expectedTiming = [4.4, 4.5]
15 expectedPNAmplitude = [800., 800.]
17 tolerancePNRMSRatio = 1.
19 ecalLedClient = cms.untracked.PSet(
20 params = cms.untracked.PSet(
21 forwardFactor = cms.untracked.double(forwardFactor),
22 minChannelEntries = cms.untracked.int32(minChannelEntries),
23 expectedAmplitude = cms.untracked.vdouble(expectedAmplitude),
24 toleranceAmplitude = cms.untracked.double(toleranceAmplitude),
25 toleranceAmpRMSRatio = cms.untracked.double(toleranceAmpRMSRatio),
26 expectedPNAmplitude = cms.untracked.vdouble(expectedPNAmplitude),
27 tolerancePNAmp = cms.untracked.double(tolerancePNAmp),
28 tolerancePNRMSRatio = cms.untracked.double(tolerancePNRMSRatio),
29 expectedTiming = cms.untracked.vdouble(expectedTiming),
30 toleranceTiming = cms.untracked.double(toleranceTiming),
31 toleranceTimRMS = cms.untracked.double(toleranceTimRMS),
32 ledWavelengths = ecaldqmLedWavelengths
34 sources = cms.untracked.PSet(
35 Timing = ecalLedTask.MEs.Timing,
36 PNAmplitude = ecalLedTask.MEs.PNAmplitude,
37 Amplitude = ecalLedTask.MEs.Amplitude
39 MEs = cms.untracked.PSet(
40 TimingMean = cms.untracked.PSet(
41 kind = cms.untracked.string(
'TH1F'),
42 multi = cms.untracked.PSet(
43 wl = ecaldqmLedWavelengths
45 otype = cms.untracked.string(
'EESM'),
46 xaxis = cms.untracked.PSet(
47 high = cms.untracked.double(5.5),
48 nbins = cms.untracked.int32(100),
49 low = cms.untracked.double(3.5)
51 btype = cms.untracked.string(
'User'),
52 path = cms.untracked.string(
'EcalEndcap/EELedClient/EELDT led timing L%(wl)s %(sm)s'),
53 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.')
55 PNQualitySummary = cms.untracked.PSet(
56 path = cms.untracked.string(
'EcalEndcap/EESummaryClient/EELDT PN led quality summary L%(wl)s'),
57 otype = cms.untracked.string(
'EEMEM'),
58 multi = cms.untracked.PSet(
59 wl = ecaldqmLedWavelengths
61 kind = cms.untracked.string(
'TH2F'),
62 btype = cms.untracked.string(
'Crystal'),
63 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.')
65 TimingRMSMap = cms.untracked.PSet(
66 path = cms.untracked.string(
'EcalEndcap/EELedClient/EELDT timing RMS L%(wl)s'),
67 otype = cms.untracked.string(
'EE'),
68 multi = cms.untracked.PSet(
69 wl = ecaldqmLedWavelengths
71 kind = cms.untracked.string(
'TH2F'),
72 btype = cms.untracked.string(
'Crystal'),
73 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.')
75 AmplitudeMean = cms.untracked.PSet(
76 kind = cms.untracked.string(
'TH1F'),
77 multi = cms.untracked.PSet(
78 wl = ecaldqmLedWavelengths
80 otype = cms.untracked.string(
'EESM'),
81 xaxis = cms.untracked.PSet(
82 high = cms.untracked.double(400.0),
83 nbins = cms.untracked.int32(100),
84 low = cms.untracked.double(0.0)
86 btype = cms.untracked.string(
'User'),
87 path = cms.untracked.string(
'EcalEndcap/EELedClient/EELDT amplitude L%(wl)s %(sm)s'),
88 description = cms.untracked.string(
'Distribution of the mean amplitude seen in each crystal. Channels with less than ' + str(minChannelEntries) +
' are not considered.')
90 QualitySummary = cms.untracked.PSet(
91 path = cms.untracked.string(
'EcalEndcap/EESummaryClient/EELDT%(suffix)s led quality summary L%(wl)s'),
92 otype = cms.untracked.string(
'EE2P'),
93 multi = cms.untracked.PSet(
94 wl = ecaldqmLedWavelengths
96 kind = cms.untracked.string(
'TH2F'),
97 btype = cms.untracked.string(
'SuperCrystal'),
98 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.')
100 Quality = cms.untracked.PSet(
101 path = cms.untracked.string(
'EcalEndcap/EELedClient/EELDT led quality L%(wl)s %(sm)s'),
102 otype = cms.untracked.string(
'EESM'),
103 multi = cms.untracked.PSet(
104 wl = ecaldqmLedWavelengths
106 kind = cms.untracked.string(
'TH2F'),
107 btype = cms.untracked.string(
'Crystal'),
108 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.')
110 AmplitudeRMS = cms.untracked.PSet(
111 path = cms.untracked.string(
'EcalEndcap/EELedClient/EELDT amplitude RMS L%(wl)s'),
112 otype = cms.untracked.string(
'EE'),
113 multi = cms.untracked.PSet(
114 wl = ecaldqmLedWavelengths
116 kind = cms.untracked.string(
'TH2F'),
117 btype = cms.untracked.string(
'Crystal'),
118 description = cms.untracked.string(
'2D distribution of the amplitude RMS. Channels with less than ' + str(minChannelEntries) +
' are not considered.')