CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SummaryClient_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQM.EcalMonitorClient.IntegrityClient_cfi import ecalIntegrityClient
4 from DQM.EcalMonitorClient.PresampleClient_cfi import ecalPresampleClient
5 from DQM.EcalMonitorClient.TimingClient_cfi import ecalTimingClient
6 from DQM.EcalMonitorClient.RawDataClient_cfi import ecalRawDataClient
7 from DQM.EcalMonitorClient.TrigPrimClient_cfi import ecalTrigPrimClient
8 from DQM.EcalMonitorClient.OccupancyClient_cfi import ecalOccupancyClient
9 from DQM.EcalMonitorTasks.IntegrityTask_cfi import ecalIntegrityTask
10 from DQM.EcalMonitorTasks.RawDataTask_cfi import ecalRawDataTask
11 
12 activeSources = ['Integrity', 'RawData', 'Presample']
13 towerBadFraction = 0.8
14 fedBadFraction = 0.5
15 
16 ecalSummaryClient = cms.untracked.PSet(
17  params = cms.untracked.PSet(
18  activeSources = cms.untracked.vstring(activeSources),
19  towerBadFraction = cms.untracked.double(towerBadFraction),
20  fedBadFraction = cms.untracked.double(fedBadFraction)
21  ),
22  sources = cms.untracked.PSet(
23  Integrity = ecalIntegrityClient.MEs.QualitySummary,
24  IntegrityByLumi = ecalIntegrityTask.MEs.ByLumi,
25  Presample = ecalPresampleClient.MEs.QualitySummary,
26  Timing = ecalTimingClient.MEs.QualitySummary,
27  RawData = ecalRawDataClient.MEs.QualitySummary,
28  DesyncByLumi = ecalRawDataTask.MEs.DesyncByLumi,
29  FEByLumi = ecalRawDataTask.MEs.FEByLumi,
30  TriggerPrimitives = ecalTrigPrimClient.MEs.EmulQualitySummary,
31  HotCell = ecalOccupancyClient.MEs.QualitySummary
32  ),
33  MEs = cms.untracked.PSet(
34  ReportSummaryMap = cms.untracked.PSet(
35  path = cms.untracked.string('Ecal/EventInfo/reportSummaryMap'),
36  kind = cms.untracked.string('TH2F'),
37  otype = cms.untracked.string('Ecal'),
38  btype = cms.untracked.string('DCC'),
39  description = cms.untracked.string('')
40  ),
41  ReportSummaryContents = cms.untracked.PSet(
42  path = cms.untracked.string('Ecal/EventInfo/reportSummaryContents/Ecal_%(sm)s'),
43  kind = cms.untracked.string('REAL'),
44  otype = cms.untracked.string('SM'),
45  btype = cms.untracked.string('Report'),
46  perLumi = cms.untracked.bool(True),
47  description = cms.untracked.string('')
48  ),
49  GlobalSummary = cms.untracked.PSet(
50  path = cms.untracked.string('Ecal/Errors/Global summary errors'),
51  kind = cms.untracked.string('TH1F'),
52  otype = cms.untracked.string('None'),
53  btype = cms.untracked.string('User'),
54  xaxis = cms.untracked.PSet(
55  nbins = cms.untracked.int32(1),
56  low = cms.untracked.double(0.),
57  high = cms.untracked.double(1.),
58  labels = cms.untracked.vstring(['ECAL status'])
59  ),
60  description = cms.untracked.string('Error summary used to trigger audio alarm. The value is identical to reportSummary.'),
61  online = cms.untracked.bool(True)
62  ),
63  NBadFEDs = cms.untracked.PSet(
64  path = cms.untracked.string('Ecal/Errors/Number of Bad Ecal FEDs'),
65  kind = cms.untracked.string('TH1F'),
66  otype = cms.untracked.string('None'),
67  xaxis = cms.untracked.PSet(
68  high = cms.untracked.double(1.0),
69  nbins = cms.untracked.int32(1),
70  low = cms.untracked.double(0.0)
71  ),
72  btype = cms.untracked.string('User'),
73  online = cms.untracked.bool(True),
74  description = cms.untracked.string('Number of FEDs with more than ' + str(fedBadFraction * 100) + '% of channels in bad status. Updated every lumi section.')
75  ),
76  QualitySummary = cms.untracked.PSet(
77  path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)s global summary%(suffix)s'),
78  kind = cms.untracked.string('TH2F'),
79  otype = cms.untracked.string('Ecal3P'),
80  btype = cms.untracked.string('Crystal'),
81  description = cms.untracked.string('Summary of the data quality. A channel is red if it is red in any one of RawData, Integrity, Timing, TriggerPrimitives, and HotCells task. A cluster of bad towers in this plot will cause the ReportSummary for the FED to go to 0 in online DQM.')
82  ),
83  ReportSummary = cms.untracked.PSet(
84  path = cms.untracked.string('Ecal/EventInfo/reportSummary'),
85  kind = cms.untracked.string('REAL'),
86  otype = cms.untracked.string('Ecal'),
87  btype = cms.untracked.string('Report'),
88  perLumi = cms.untracked.bool(True),
89  description = cms.untracked.string('')
90  )
91  )
92 )