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.
1 import FWCore.ParameterSet.Config as cms
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  ),
39  MEs = cms.untracked.PSet(
40  TimingMean = cms.untracked.PSet(
41  kind = cms.untracked.string('TH1F'),
42  multi = cms.untracked.PSet(
43  wl = ecaldqmLedWavelengths
44  ),
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)
50  ),
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.')
54  ),
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
60  ),
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.')
64  ),
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
70  ),
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.')
74  ),
75  AmplitudeMean = cms.untracked.PSet(
76  kind = cms.untracked.string('TH1F'),
77  multi = cms.untracked.PSet(
78  wl = ecaldqmLedWavelengths
79  ),
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)
85  ),
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.')
89  ),
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
95  ),
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.')
99  ),
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
105  ),
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.')
109  ),
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
115  ),
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.')
119  )
120  )
121 )