test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 toleranceRMS = [1., 1.5, 3.] # [G1, G6, G12]
11 expectedPNMean = 750.
12 tolerancePNMean = 100.
13 tolerancePNRMS = [20., 20.] # [G1, G16]
14 
15 ecalPedestalClient = cms.untracked.PSet(
16  params = cms.untracked.PSet(
17  minChannelEntries = cms.untracked.int32(minChannelEntries),
18  expectedMean = cms.untracked.double(expectedMean),
19  toleranceMean = cms.untracked.double(toleranceMean),
20  toleranceRMS = cms.untracked.vdouble(toleranceRMS),
21  expectedPNMean = cms.untracked.double(expectedPNMean),
22  tolerancePNMean = cms.untracked.double(tolerancePNMean),
23  tolerancePNRMS = cms.untracked.vdouble(tolerancePNRMS),
24  MGPAGains = ecaldqmMGPAGains,
25  MGPAGainsPN = ecaldqmMGPAGainsPN
26  ),
27  sources = cms.untracked.PSet(
28  Pedestal = ecalPedestalTask.MEs.Pedestal,
29  PNPedestal = ecalPedestalTask.MEs.PNPedestal
30  ),
31  MEs = cms.untracked.PSet(
32  RMS = cms.untracked.PSet(
33  kind = cms.untracked.string('TH1F'),
34  multi = cms.untracked.PSet(
35  gain = ecaldqmMGPAGains
36  ),
37  otype = cms.untracked.string('SM'),
38  xaxis = cms.untracked.PSet(
39  high = cms.untracked.double(10.0),
40  nbins = cms.untracked.int32(100),
41  low = cms.untracked.double(0.0)
42  ),
43  btype = cms.untracked.string('User'),
44  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal rms G%(gain)s %(sm)s'),
45  description = cms.untracked.string('Distribution of the pedestal RMS for each crystal channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
46  ),
47  PNRMS = cms.untracked.PSet(
48  kind = cms.untracked.string('TH1F'),
49  multi = cms.untracked.PSet(
50  pngain = ecaldqmMGPAGainsPN
51  ),
52  otype = cms.untracked.string('SMMEM'),
53  xaxis = cms.untracked.PSet(
54  high = cms.untracked.double(50.0),
55  nbins = cms.untracked.int32(100),
56  low = cms.untracked.double(0.0)
57  ),
58  btype = cms.untracked.string('User'),
59  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPDT PNs pedestal rms %(sm)s G%(pngain)s'),
60  description = cms.untracked.string('Distribution of the pedestal RMS for each PN channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
61  ),
62  PNQualitySummary = cms.untracked.PSet(
63  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT PN pedestal quality G%(pngain)s summary'),
64  otype = cms.untracked.string('MEM2P'),
65  multi = cms.untracked.PSet(
66  pngain = ecaldqmMGPAGainsPN
67  ),
68  kind = cms.untracked.string('TH2F'),
69  btype = cms.untracked.string('Crystal'),
70  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.')
71  ),
72  QualitySummary = cms.untracked.PSet(
73  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sPT pedestal quality G%(gain)s summary%(suffix)s'),
74  otype = cms.untracked.string('Ecal3P'),
75  multi = cms.untracked.PSet(
76  gain = ecaldqmMGPAGains
77  ),
78  kind = cms.untracked.string('TH2F'),
79  btype = cms.untracked.string('SuperCrystal'),
80  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 are ' + ('%.1f, %.1f, %.1f' % tuple(toleranceRMS)) + ' for gains 1, 6, and 12 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
81  ),
82  Quality = cms.untracked.PSet(
83  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal quality G%(gain)s %(sm)s'),
84  otype = cms.untracked.string('SM'),
85  multi = cms.untracked.PSet(
86  gain = ecaldqmMGPAGains
87  ),
88  kind = cms.untracked.string('TH2F'),
89  btype = cms.untracked.string('Crystal'),
90  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 are ' + ('%.1f, %.1f, %.1f' % tuple(toleranceRMS)) + ' for gains 1, 6, and 12 respectively. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
91  ),
92  Mean = cms.untracked.PSet(
93  kind = cms.untracked.string('TH1F'),
94  multi = cms.untracked.PSet(
95  gain = ecaldqmMGPAGains
96  ),
97  otype = cms.untracked.string('SM'),
98  xaxis = cms.untracked.PSet(
99  high = cms.untracked.double(230.0),
100  nbins = cms.untracked.int32(120),
101  low = cms.untracked.double(170.0)
102  ),
103  btype = cms.untracked.string('User'),
104  path = cms.untracked.string('%(subdet)s/%(prefix)sPedestalClient/%(prefix)sPT pedestal mean G%(gain)s %(sm)s'),
105  description = cms.untracked.string('Distribution of pedestal mean in each channel. Channels with entries less than ' + str(minChannelEntries) + ' are not considered.')
106  )
107  )
108 )