Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 from DQM.HcalMonitorTasks.HcalDigiMonitor_cfi import *
00004 from DQM.HcalMonitorTasks.HcalHotCellMonitor_cfi import *
00005 from DQM.HcalMonitorTasks.HcalDeadCellMonitor_cfi import *
00006 from DQM.HcalMonitorTasks.HcalRecHitMonitor_cfi import *
00007 from DQM.HcalMonitorTasks.HcalNZSMonitor_cfi import *
00008 from DQM.HcalMonitorTasks.HcalBeamMonitor_cfi import *
00009 from DQM.HcalMonitorTasks.HcalRawDataMonitor_cfi import *
00010 from DQM.HcalMonitorTasks.HcalTrigPrimMonitor_cfi import *
00011
00012 from DQM.HcalMonitorTasks.HcalDataIntegrityTask_cfi import *
00013
00014 from DQM.HcalMonitorTasks.HcalDetDiagLaserMonitor_cfi import *
00015 from DQM.HcalMonitorTasks.HcalDetDiagPedestalMonitor_cfi import*
00016 from DQM.HcalMonitorTasks.HcalDetDiagLEDMonitor_cfi import*
00017 from DQM.HcalMonitorTasks.HcalDetDiagNoiseMonitor_cfi import*
00018 from DQM.HcalMonitorTasks.HcalDetDiagTimingMonitor_cfi import*
00019
00020 from DQM.HcalMonitorTasks.HcalLSbyLSMonitor_cfi import*
00021 from DQM.HcalMonitorTasks.HcalCoarsePedestalMonitor_cfi import *
00022 from DQM.HcalMonitorTasks.HcalNoiseMonitor_cfi import *
00023 from DQM.HcalMonitorTasks.HcalZDCMonitor_cfi import *
00024
00025 hcalMonitorTasksTestSequence=cms.Sequence(hcalDigiMonitor
00026 *hcalHotCellMonitor
00027 *hcalDeadCellMonitor
00028 *hcalRecHitMonitor
00029 *hcalBeamMonitor
00030 *hcalRawDataMonitor
00031 *hcalTrigPrimMonitor
00032 *hcalNZSMonitor
00033 *hcalLSbyLSMonitor
00034 )
00035
00036 hcalMonitorTasksOnlineSequence = cms.Sequence(hcalDigiMonitor
00037 *hcalHotCellMonitor
00038 *hcalDeadCellMonitor
00039 *hcalRecHitMonitor
00040 *hcalBeamMonitor
00041 *hcalRawDataMonitor
00042 *hcalTrigPrimMonitor
00043 *hcalCoarsePedestalMonitor
00044
00045
00046
00047 *hcalDetDiagNoiseMonitor
00048 *hcalDetDiagTimingMonitor
00049 *hcalNZSMonitor
00050 )
00051
00052 hcalMonitorTasksOfflineSequence = cms.Sequence(hcalDigiMonitor
00053 *hcalHotCellMonitor
00054 *hcalDeadCellMonitor
00055 *hcalRecHitMonitor
00056 *hcalBeamMonitor
00057 *hcalRawDataMonitor
00058 *hcalDetDiagNoiseMonitor
00059 *hcalLSbyLSMonitor
00060 *hcalNoiseMonitor
00061 )
00062
00063
00064 hcalMonitorTasksCalibrationSequence = cms.Sequence(hcalRecHitMonitor
00065 *hcalRawDataMonitor
00066 *hcalDetDiagPedestalMonitor
00067 *hcalDetDiagLaserMonitor
00068
00069 *hcalDetDiagNoiseMonitor
00070 *hcalDetDiagTimingMonitor
00071 )
00072
00073
00074 def SetTaskParams(process,param, value):
00075
00076 newval=value
00077 isstring=False
00078 if (newval<>True and newval<>False):
00079 try:
00080 newval=string.atoi(newval)
00081 except:
00082 try:
00083 newval=string.atof(newval)
00084 except:
00085 isstring=True
00086
00087 tasks=[hcalDigiMonitor,hcalRecHitMonitor,hcalHotCellMonitor,hcalDeadCellMonitor,
00088 hcalRawDataMonitor, hcalBeamMonitor, hcalTrigPrimMonitor, hcalNZSMonitor,
00089 hcalDataIntegrityMonitor, hcalDetDiagLaserMonitor, hcalDetDiagLEDMonitor,
00090 hcalDetDiagNoiseMonitor, hcalDetDiagPedestalMonitor, hcalCoarsePedestalMonitor,
00091 hcalDetDiagTimingMonitor, hcalLSbyLSMonitor]
00092
00093 for i in tasks:
00094 if isstring==False:
00095 cmd="process.%s.%s=%s"%(i,param,value)
00096 else:
00097 cmd="process.%s.%s='%s'"%(i,param,value)
00098 try:
00099 exec(cmd)
00100 except SyntaxError:
00101 print "Could not execute command '%s'"%cmd