CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TestPulseClient_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 from DQM.EcalMonitorTasks.TestPulseTask_cfi import ecalTestPulseTask
6 
7 minChannelEntries = 3
8 amplitudeThreshold = [1200., 600., 100.]
9 toleranceRMS = [160., 80., 10.]
10 PNAmplitudeThreshold = [12.5, 200.]
11 tolerancePNRMS = [20., 20.]
12 
13 ecalTestPulseClient = cms.untracked.PSet(
14  params = cms.untracked.PSet(
15  minChannelEntries = cms.untracked.int32(minChannelEntries),
16  amplitudeThreshold = cms.untracked.vdouble(amplitudeThreshold),
17  toleranceRMS = cms.untracked.vdouble(toleranceRMS),
18  PNAmplitudeThreshold = cms.untracked.vdouble(PNAmplitudeThreshold),
19  tolerancePNRMS = cms.untracked.vdouble(tolerancePNRMS),
20  MGPAGains = ecaldqmMGPAGains,
21  MGPAGainsPN = ecaldqmMGPAGainsPN
22  ),
23  sources = cms.untracked.PSet(
24  Amplitude = ecalTestPulseTask.MEs.Amplitude,
25  PNAmplitude = ecalTestPulseTask.MEs.PNAmplitude
26  ),
27  MEs = cms.untracked.PSet(
28  PNQualitySummary = cms.untracked.PSet(
29  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sTPT PN test pulse quality G%(pngain)s summary'),
30  otype = cms.untracked.string('MEM2P'),
31  multi = cms.untracked.PSet(
32  pngain = ecaldqmMGPAGainsPN
33  ),
34  kind = cms.untracked.string('TH2F'),
35  btype = cms.untracked.string('Crystal'),
36  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.')
37  ),
38  QualitySummary = cms.untracked.PSet(
39  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sTPT%(suffix)s test pulse quality G%(gain)s summary'),
40  otype = cms.untracked.string('Ecal3P'),
41  multi = cms.untracked.PSet(
42  gain = ecaldqmMGPAGains
43  ),
44  kind = cms.untracked.string('TH2F'),
45  btype = cms.untracked.string('SuperCrystal'),
46  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.')
47  ),
48  Quality = cms.untracked.PSet(
49  path = cms.untracked.string('%(subdet)s/%(prefix)sTestPulseClient/%(prefix)sTPT test pulse quality G%(gain)s %(sm)s'),
50  otype = cms.untracked.string('SM'),
51  multi = cms.untracked.PSet(
52  gain = ecaldqmMGPAGains
53  ),
54  kind = cms.untracked.string('TH2F'),
55  btype = cms.untracked.string('Crystal'),
56  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.')
57  ),
58  AmplitudeRMS = cms.untracked.PSet(
59  multi = cms.untracked.PSet(
60  gain = ecaldqmMGPAGains
61  ),
62  kind = cms.untracked.string('TH2F'),
63  otype = cms.untracked.string('SM'),
64  zaxis = cms.untracked.PSet(
65  title = cms.untracked.string('rms (ADC counts)')
66  ),
67  btype = cms.untracked.string('Crystal'),
68  path = cms.untracked.string('%(subdet)s/%(prefix)sTestPulseClient/%(prefix)sTPT test pulse rms G%(gain)s %(sm)s'),
69  description = cms.untracked.string('2D distribution of the amplitude RMS. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
70  )
71  )
72 )