1 import FWCore.ParameterSet.Config
as cms
5 from DQM.EcalMonitorTasks.PedestalTask_cfi
import ecalPedestalTask
10 toleranceRMSEB = [1., 1.2, 2.]
11 toleranceRMSEE = [1., 1.5, 3.]
13 tolerancePNMean = 100.
14 tolerancePNRMS = [20., 20.]
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
29 sources = cms.untracked.PSet(
30 Pedestal = ecalPedestalTask.MEs.Pedestal,
31 PNPedestal = ecalPedestalTask.MEs.PNPedestal
33 MEs = cms.untracked.PSet(
34 RMS = cms.untracked.PSet(
35 kind = cms.untracked.string(
'TH1F'),
36 multi = cms.untracked.PSet(
37 gain = ecaldqmMGPAGains
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)
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.')
49 PNRMS = cms.untracked.PSet(
50 kind = cms.untracked.string(
'TH1F'),
51 multi = cms.untracked.PSet(
52 pngain = ecaldqmMGPAGainsPN
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)
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.')
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
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.')
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
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.')
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
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.')
94 Mean = cms.untracked.PSet(
95 kind = cms.untracked.string(
'TH1F'),
96 multi = cms.untracked.PSet(
97 gain = ecaldqmMGPAGains
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)
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.')