CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalMEFormatter_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 from DQM.EcalMonitorTasks.ClusterTask_cfi import ecalClusterTask
5 from DQM.EcalMonitorTasks.EnergyTask_cfi import ecalEnergyTask
6 from DQM.EcalMonitorTasks.IntegrityTask_cfi import ecalIntegrityTask
7 from DQM.EcalMonitorTasks.OccupancyTask_cfi import ecalOccupancyTask
8 from DQM.EcalMonitorTasks.PresampleTask_cfi import ecalPresampleTask
9 from DQM.EcalMonitorTasks.RawDataTask_cfi import ecalRawDataTask
10 from DQM.EcalMonitorTasks.RecoSummaryTask_cfi import ecalRecoSummaryTask
11 from DQM.EcalMonitorTasks.SelectiveReadoutTask_cfi import ecalSelectiveReadoutTask
12 from DQM.EcalMonitorTasks.TimingTask_cfi import ecalTimingTask
13 from DQM.EcalMonitorTasks.TrigPrimTask_cfi import ecalTrigPrimTask
14 
15 from DQM.EcalMonitorClient.IntegrityClient_cfi import ecalIntegrityClient
16 from DQM.EcalMonitorClient.OccupancyClient_cfi import ecalOccupancyClient
17 from DQM.EcalMonitorClient.PresampleClient_cfi import ecalPresampleClient
18 from DQM.EcalMonitorClient.RawDataClient_cfi import ecalRawDataClient
19 from DQM.EcalMonitorClient.SelectiveReadoutClient_cfi import ecalSelectiveReadoutClient
20 from DQM.EcalMonitorClient.TimingClient_cfi import ecalTimingClient
21 from DQM.EcalMonitorClient.TrigPrimClient_cfi import ecalTrigPrimClient
22 from DQM.EcalMonitorClient.SummaryClient_cfi import ecalSummaryClient
23 
24 ecalMEFormatter = DQMEDHarvester("EcalMEFormatter",
25  MEs = cms.untracked.PSet(),
26  verbosity = cms.untracked.int32(0)
27 )
28 
29 def insertIntoMEFormatterMEs(ecalModule, moduleName):
30  for name in ecalModule.MEs.parameterNames_():
31  setattr(ecalMEFormatter.MEs, moduleName + name, getattr(ecalModule.MEs, name))
32 
33 insertIntoMEFormatterMEs(ecalClusterTask, 'ClusterTask')
34 insertIntoMEFormatterMEs(ecalEnergyTask, 'EnergyTask')
35 insertIntoMEFormatterMEs(ecalIntegrityTask, 'IntegrityTask')
36 insertIntoMEFormatterMEs(ecalOccupancyTask, 'OccupancyTask')
37 insertIntoMEFormatterMEs(ecalPresampleTask, 'PresampleTask')
38 insertIntoMEFormatterMEs(ecalRawDataTask, 'RawDataTask')
39 insertIntoMEFormatterMEs(ecalRecoSummaryTask, 'RecoSummaryTask')
40 insertIntoMEFormatterMEs(ecalTrigPrimTask, 'TrigPrimTask')
41 
42 insertIntoMEFormatterMEs(ecalIntegrityClient, 'IntegrityClient')
43 insertIntoMEFormatterMEs(ecalOccupancyClient, 'OccupancyClient')
44 insertIntoMEFormatterMEs(ecalPresampleClient, 'PresampleClient')
45 insertIntoMEFormatterMEs(ecalRawDataClient, 'RawDataClient')
46 insertIntoMEFormatterMEs(ecalSummaryClient, 'SummaryClient')
47 
48 delattr(ecalMEFormatter.MEs, 'TrigPrimTaskEtMaxEmul')
49 delattr(ecalMEFormatter.MEs, 'TrigPrimTaskEmulMaxIndex')
50 delattr(ecalMEFormatter.MEs, 'TrigPrimTaskMatchedIndex')
51 delattr(ecalMEFormatter.MEs, 'TrigPrimTaskEtEmulError')
52 delattr(ecalMEFormatter.MEs, 'TrigPrimTaskFGEmulError')