CMS 3D CMS Logo

PedestalClient_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 from DQM.EcalMonitorTasks.PedestalTask_cfi import ecalPedestalTask
6 
7 minChannelEntries = 3
8 expectedMean = 200.
9 toleranceMean = 25.
10 toleranceRMSEB = [1., 1.2, 2.] # [G1, G6, G12]
11 toleranceRMSEE = [1., 1.5, 3.] # [G1, G6, G12]
12 expectedPNMean = 750.
13 tolerancePNMean = 100.
14 tolerancePNRMS = [20., 20.] # [G1, G16]
15 
16 ecalPedestalClient = cms.untracked.PSet(
17  params = cms.untracked.PSet(
18  minChannelEntries = cms.untracked.int32(minChannelEntries),
19  expectedMean = cms.untracked.double(expectedMean),
20  toleranceMean = cms.untracked.double(toleranceMean),
21  toleranceRMSEB = cms.untracked.vdouble(toleranceRMSEB),
22  toleranceRMSEE = cms.untracked.vdouble(toleranceRMSEE),
23  expectedPNMean = cms.untracked.double(expectedPNMean),
24  tolerancePNMean = cms.untracked.double(tolerancePNMean),
25  tolerancePNRMS = cms.untracked.vdouble(tolerancePNRMS),
26  MGPAGains = ecaldqmMGPAGains,
27  MGPAGainsPN = ecaldqmMGPAGainsPN
28  ),
29  sources = cms.untracked.PSet(
30  Pedestal = ecalPedestalTask.MEs.Pedestal,
31  PNPedestal = ecalPedestalTask.MEs.PNPedestal
32  ),
33  MEs = cms.untracked.PSet(
34  RMS = cms.untracked.PSet(
35  kind = cms.untracked.string('TH1F'),
36  multi = cms.untracked.PSet(
37  gain = ecaldqmMGPAGains
38  ),
39  otype = cms.untracked.string('SM'),
40  xaxis = cms.untracked.PSet(
41  high = cms.untracked.double(10.0),
42  nbins = cms.untracked.int32(100),
43  low = cms.untracked.double(0.0)
44  ),
45  btype = cms.untracked.string('User'),
46  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal rms G%(gain)s %(sm)s'),
47  description = cms.untracked.string('Distribution of the pedestal RMS for each crystal channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
48  ),
49  PNRMS = cms.untracked.PSet(
50  kind = cms.untracked.string('TH1F'),
51  multi = cms.untracked.PSet(
52  pngain = ecaldqmMGPAGainsPN
53  ),
54  otype = cms.untracked.string('SMMEM'),
55  xaxis = cms.untracked.PSet(
56  high = cms.untracked.double(50.0),
57  nbins = cms.untracked.int32(100),
58  low = cms.untracked.double(0.0)
59  ),
60  btype = cms.untracked.string('User'),
61  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPDT PNs pedestal rms %(sm)s G%(pngain)s'),
62  description = cms.untracked.string('Distribution of the pedestal RMS for each PN channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
63  ),
64  PNQualitySummary = cms.untracked.PSet(
65  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT PN pedestal quality G%(pngain)s summary'),
66  otype = cms.untracked.string('MEM2P'),
67  multi = cms.untracked.PSet(
68  pngain = ecaldqmMGPAGainsPN
69  ),
70  kind = cms.untracked.string('TH2F'),
71  btype = cms.untracked.string('Crystal'),
72  description = cms.untracked.string('Summary of the pedestal quality for PN diodes. A channel is red if the pedestal mean is off from ' + str(expectedPNMean) + ' by ' + str(tolerancePNMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds are ' + ('%.1f, %.1f' % tuple(tolerancePNRMS)) + ' for gains 1 and 16 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
73  ),
74  QualitySummary = cms.untracked.PSet(
75  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT pedestal quality G%(gain)s summary%(suffix)s'),
76  otype = cms.untracked.string('Ecal3P'),
77  multi = cms.untracked.PSet(
78  gain = ecaldqmMGPAGains
79  ),
80  kind = cms.untracked.string('TH2F'),
81  btype = cms.untracked.string('SuperCrystal'),
82  description = cms.untracked.string('Summary of the pedestal quality for crystals. A channel is red if the pedestal mean is off from ' + str(expectedMean) + ' by ' + str(toleranceMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds for EB are ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEB)) + ' ADC, and for EE, ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEE)) + ' ADC. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
83  ),
84  Quality = cms.untracked.PSet(
85  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal quality G%(gain)s %(sm)s'),
86  otype = cms.untracked.string('SM'),
87  multi = cms.untracked.PSet(
88  gain = ecaldqmMGPAGains
89  ),
90  kind = cms.untracked.string('TH2F'),
91  btype = cms.untracked.string('Crystal'),
92  description = cms.untracked.string('Summary of the pedestal quality for crystals. A channel is red if the pedestal mean is off from ' + str(expectedMean) + ' by ' + str(toleranceMean) + ' or if the pedestal RMS is greater than threshold. RMS thresholds for EB are ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEB)) + ' ADC, and for EE, ' + ('Gain1:%.1f, Gain6:%.1f, Gain12:%.1f' % tuple(toleranceRMSEE)) + ' ADC. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
93  ),
94  Mean = cms.untracked.PSet(
95  kind = cms.untracked.string('TH1F'),
96  multi = cms.untracked.PSet(
97  gain = ecaldqmMGPAGains
98  ),
99  otype = cms.untracked.string('SM'),
100  xaxis = cms.untracked.PSet(
101  high = cms.untracked.double(230.0),
102  nbins = cms.untracked.int32(120),
103  low = cms.untracked.double(170.0)
104  ),
105  btype = cms.untracked.string('User'),
106  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal mean G%(gain)s %(sm)s'),
107  description = cms.untracked.string('Distribution of pedestal mean in each channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
108  )
109  )
110 )
#define str(s)