CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQM/HcalMonitorTasks/python/HcalMonitorTasks_cfi.py

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 
00024 hcalMonitorTasksTestSequence=cms.Sequence(hcalDigiMonitor
00025                                           *hcalHotCellMonitor
00026                                           *hcalDeadCellMonitor
00027                                           *hcalRecHitMonitor
00028                                           *hcalBeamMonitor
00029                                           *hcalRawDataMonitor
00030                                           *hcalTrigPrimMonitor
00031                                           *hcalNZSMonitor
00032                                           *hcalLSbyLSMonitor
00033                                           )
00034 
00035 hcalMonitorTasksOnlineSequence = cms.Sequence(hcalDigiMonitor
00036                                               *hcalHotCellMonitor
00037                                               *hcalDeadCellMonitor
00038                                               *hcalRecHitMonitor
00039                                               *hcalBeamMonitor
00040                                               *hcalRawDataMonitor
00041                                               *hcalTrigPrimMonitor
00042                                               *hcalCoarsePedestalMonitor
00043                                               #*hcalDetDiagPedestalMonitor
00044                                               #*hcalDetDiagLaserMonitor
00045                                               #*hcalDetDiagLEDMonitor
00046                                               *hcalDetDiagNoiseMonitor
00047                                               *hcalDetDiagTimingMonitor
00048                                               *hcalNZSMonitor
00049                                               )
00050 
00051 hcalMonitorTasksOfflineSequence = cms.Sequence(hcalDigiMonitor
00052                                                *hcalHotCellMonitor
00053                                                *hcalDeadCellMonitor
00054                                                *hcalRecHitMonitor
00055                                                *hcalBeamMonitor
00056                                                *hcalRawDataMonitor
00057                                                *hcalDetDiagNoiseMonitor
00058                                                *hcalLSbyLSMonitor
00059                                                *hcalNoiseMonitor
00060                                                )
00061 
00062 
00063 hcalMonitorTasksCalibrationSequence = cms.Sequence(hcalRecHitMonitor
00064                                                    *hcalRawDataMonitor
00065                                                    *hcalDetDiagPedestalMonitor
00066                                                    *hcalDetDiagLaserMonitor
00067                                                    #*hcalDetDiagLEDMonitor
00068                                                    *hcalDetDiagNoiseMonitor
00069                                                    *hcalDetDiagTimingMonitor
00070                                                    )
00071 
00072 
00073 def SetTaskParams(process,param, value):
00074     # Tries to set all task parameter 'param' to the value 'value'
00075     newval=value
00076     isstring=False
00077     if (newval<>True and newval<>False):
00078         try:
00079             newval=string.atoi(newval)
00080         except:
00081             try:
00082                 newval=string.atof(newval)
00083             except:
00084                 isstring=True
00085 
00086     tasks=[hcalDigiMonitor,hcalRecHitMonitor,hcalHotCellMonitor,hcalDeadCellMonitor,
00087            hcalRawDataMonitor, hcalBeamMonitor, hcalTrigPrimMonitor, hcalNZSMonitor,
00088            hcalDataIntegrityMonitor, hcalDetDiagLaserMonitor, hcalDetDiagLEDMonitor,
00089            hcalDetDiagNoiseMonitor, hcalDetDiagPedestalMonitor, hcalCoarsePedestalMonitor,
00090            hcalDetDiagTimingMonitor, hcalLSbyLSMonitor]
00091 
00092     for i in tasks:
00093         if isstring==False:
00094             cmd="process.%s.%s=%s"%(i,param,value)
00095         else:
00096             cmd="process.%s.%s='%s'"%(i,param,value)
00097         try:
00098             exec(cmd)
00099         except SyntaxError:
00100             print "Could not execute command '%s'"%cmd