CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalMonitorTasks_cfi.py
Go to the documentation of this file.
2 
11 
13 
15 from DQM.HcalMonitorTasks.HcalDetDiagPedestalMonitor_cfi import*
16 from DQM.HcalMonitorTasks.HcalDetDiagLEDMonitor_cfi import*
17 from DQM.HcalMonitorTasks.HcalDetDiagNoiseMonitor_cfi import*
18 from DQM.HcalMonitorTasks.HcalDetDiagTimingMonitor_cfi import*
19 
20 from DQM.HcalMonitorTasks.HcalLSbyLSMonitor_cfi import*
23 
24 hcalMonitorTasksTestSequence=cms.Sequence(hcalDigiMonitor
25  *hcalHotCellMonitor
26  *hcalDeadCellMonitor
27  *hcalRecHitMonitor
28  *hcalBeamMonitor
29  *hcalRawDataMonitor
30  *hcalTrigPrimMonitor
31  *hcalNZSMonitor
32  *hcalLSbyLSMonitor
33  )
34 
35 hcalMonitorTasksOnlineSequence = cms.Sequence(hcalDigiMonitor
36  *hcalHotCellMonitor
37  *hcalDeadCellMonitor
38  *hcalRecHitMonitor
39  *hcalBeamMonitor
40  *hcalRawDataMonitor
41  *hcalTrigPrimMonitor
42  *hcalCoarsePedestalMonitor
43  #*hcalDetDiagPedestalMonitor
44  #*hcalDetDiagLaserMonitor
45  #*hcalDetDiagLEDMonitor
46  *hcalDetDiagNoiseMonitor
47  *hcalDetDiagTimingMonitor
48  *hcalNZSMonitor
49  )
50 
51 hcalMonitorTasksOfflineSequence = cms.Sequence(hcalDigiMonitor
52  *hcalHotCellMonitor
53  *hcalDeadCellMonitor
54  *hcalRecHitMonitor
55  *hcalBeamMonitor
56  *hcalRawDataMonitor
57  *hcalDetDiagNoiseMonitor
58  *hcalLSbyLSMonitor
59  *hcalNoiseMonitor
60  )
61 
62 
63 hcalMonitorTasksCalibrationSequence = cms.Sequence(hcalRecHitMonitor
64  *hcalRawDataMonitor
65  *hcalDetDiagPedestalMonitor
66  *hcalDetDiagLaserMonitor
67  #*hcalDetDiagLEDMonitor
68  *hcalDetDiagNoiseMonitor
69  *hcalDetDiagTimingMonitor
70  )
71 
72 
73 def SetTaskParams(process,param, value):
74  # Tries to set all task parameter 'param' to the value 'value'
75  newval=value
76  isstring=False
77  if (newval<>True and newval<>False):
78  try:
79  newval=string.atoi(newval)
80  except:
81  try:
82  newval=string.atof(newval)
83  except:
84  isstring=True
85 
86  tasks=[hcalDigiMonitor,hcalRecHitMonitor,hcalHotCellMonitor,hcalDeadCellMonitor,
87  hcalRawDataMonitor, hcalBeamMonitor, hcalTrigPrimMonitor, hcalNZSMonitor,
88  hcalDataIntegrityMonitor, hcalDetDiagLaserMonitor, hcalDetDiagLEDMonitor,
89  hcalDetDiagNoiseMonitor, hcalDetDiagPedestalMonitor, hcalCoarsePedestalMonitor,
90  hcalDetDiagTimingMonitor, hcalLSbyLSMonitor]
91 
92  for i in tasks:
93  if isstring==False:
94  cmd="process.%s.%s=%s"%(i,param,value)
95  else:
96  cmd="process.%s.%s='%s'"%(i,param,value)
97  try:
98  exec(cmd)
99  except SyntaxError:
100  print "Could not execute command '%s'"%cmd