CMS 3D CMS Logo

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