CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LedClient_cfi.py
Go to the documentation of this file.
2 
4 
5 from DQM.EcalMonitorTasks.LedTask_cfi import ecalLedTask
6 
7 forwardFactor = 0.5
8 minChannelEntries = 3
9 expectedAmplitude = [200., 10.]
10 toleranceAmplitude = 0.1
11 toleranceAmpRMSRatio = 0.5
12 expectedTiming = [4.4, 4.5]
13 toleranceTiming = 1.
14 toleranceTimRMS = 25.
15 expectedPNAmplitude = [800., 800.]
16 tolerancePNAmp = 0.1
17 tolerancePNRMSRatio = 1.
18 
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
33  ),
34  sources = cms.untracked.PSet(
35  Timing = ecalLedTask.MEs.Timing,
36  PNAmplitude = ecalLedTask.MEs.PNAmplitude,
37  Amplitude = ecalLedTask.MEs.Amplitude,
38  CalibStatus = ecalLedTask.MEs.CalibStatus
39  ),
40  MEs = cms.untracked.PSet(
41  TimingMean = cms.untracked.PSet(
42  kind = cms.untracked.string('TH1F'),
43  multi = cms.untracked.PSet(
44  wl = ecaldqmLedWavelengths
45  ),
46  otype = cms.untracked.string('EESM'),
47  xaxis = cms.untracked.PSet(
48  high = cms.untracked.double(5.5),
49  nbins = cms.untracked.int32(100),
50  low = cms.untracked.double(3.5)
51  ),
52  btype = cms.untracked.string('User'),
53  path = cms.untracked.string('EcalEndcap/EELedClient/EELDT led timing L%(wl)s %(sm)s'),
54  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  ),
56  PNQualitySummary = cms.untracked.PSet(
57  path = cms.untracked.string('EcalEndcap/EESummaryClient/EELDT PN led quality summary L%(wl)s'),
58  otype = cms.untracked.string('EEMEM'),
59  multi = cms.untracked.PSet(
60  wl = ecaldqmLedWavelengths
61  ),
62  kind = cms.untracked.string('TH2F'),
63  btype = cms.untracked.string('Crystal'),
64  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  ),
66  TimingRMSMap = cms.untracked.PSet(
67  path = cms.untracked.string('EcalEndcap/EELedClient/EELDT timing RMS L%(wl)s'),
68  otype = cms.untracked.string('EE'),
69  multi = cms.untracked.PSet(
70  wl = ecaldqmLedWavelengths
71  ),
72  kind = cms.untracked.string('TH2F'),
73  btype = cms.untracked.string('Crystal'),
74  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  ),
76  AmplitudeMean = cms.untracked.PSet(
77  kind = cms.untracked.string('TH1F'),
78  multi = cms.untracked.PSet(
79  wl = ecaldqmLedWavelengths
80  ),
81  otype = cms.untracked.string('EESM'),
82  xaxis = cms.untracked.PSet(
83  high = cms.untracked.double(400.0),
84  nbins = cms.untracked.int32(100),
85  low = cms.untracked.double(0.0)
86  ),
87  btype = cms.untracked.string('User'),
88  path = cms.untracked.string('EcalEndcap/EELedClient/EELDT amplitude L%(wl)s %(sm)s'),
89  description = cms.untracked.string('Distribution of the mean amplitude seen in each crystal. Channels with less than ' + str(minChannelEntries) + ' are not considered.')
90  ),
91  QualitySummary = cms.untracked.PSet(
92  path = cms.untracked.string('EcalEndcap/EESummaryClient/EELDT%(suffix)s led quality summary L%(wl)s'),
93  otype = cms.untracked.string('EE2P'),
94  multi = cms.untracked.PSet(
95  wl = ecaldqmLedWavelengths
96  ),
97  kind = cms.untracked.string('TH2F'),
98  btype = cms.untracked.string('SuperCrystal'),
99  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  ),
101  Quality = cms.untracked.PSet(
102  path = cms.untracked.string('EcalEndcap/EELedClient/EELDT led quality L%(wl)s %(sm)s'),
103  otype = cms.untracked.string('EESM'),
104  multi = cms.untracked.PSet(
105  wl = ecaldqmLedWavelengths
106  ),
107  kind = cms.untracked.string('TH2F'),
108  btype = cms.untracked.string('Crystal'),
109  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  ),
111  AmplitudeRMS = cms.untracked.PSet(
112  path = cms.untracked.string('EcalEndcap/EELedClient/EELDT amplitude RMS L%(wl)s'),
113  otype = cms.untracked.string('EE'),
114  multi = cms.untracked.PSet(
115  wl = ecaldqmLedWavelengths
116  ),
117  kind = cms.untracked.string('TH2F'),
118  btype = cms.untracked.string('Crystal'),
119  description = cms.untracked.string('2D distribution of the amplitude RMS. Channels with less than ' + str(minChannelEntries) + ' are not considered.')
120  )
121  )
122 )