Public Member Functions | |
def | __init__ |
def | initialize |
def | execute |
def | finalize |
Public Attributes | |
jobInfoSvc |
Definition at line 17 of file Dump.py.
def Dump::PrintJobInfoAlg::__init__ | ( | self, | ||
name | ||||
) |
Definition at line 19 of file Dump.py.
00019 : 00020 DybPythonAlg.__init__(self,name) 00021 return 00022 def initialize(self):
def Dump::PrintJobInfoAlg::initialize | ( | self | ) |
Definition at line 23 of file Dump.py.
00023 : 00024 status = DybPythonAlg.initialize(self) 00025 if status.isFailure(): return status 00026 self.info("initializing") 00027 00028 # Example histogram: Total raw ADC sum for each trigger 00029 self.jobInfoSvc = self.svc('IJobInfoSvc','JobInfoSvc') 00030 jobInfo = self.jobInfoSvc.currentJobInfo() 00031 import time 00032 print "\n" 00033 print "Current Job Information:" 00034 jobInfo.fillStream(ROOT.cout) 00035 print "\n" 00036 00037 for jobInfoHist in self.jobInfoSvc.cachedJobInfo(): 00038 print "\n" 00039 print "Cached Job Information:" 00040 jobInfoHist.fillStream(ROOT.cout) 00041 print "\n" 00042 return SUCCESS 00043 def execute(self):
def Dump::PrintJobInfoAlg::execute | ( | self | ) |
Definition at line 44 of file Dump.py.
00044 : 00045 self.info("executing") 00046 00047 evt = self.evtSvc() 00048 genHeader = evt["/Event/Gen/GenHeader"] 00049 if genHeader: 00050 jobInfo = self.jobInfoSvc.jobInfo(genHeader.jobId()) 00051 print "Kinematics at time ",genHeader.timeStamp().AsString()," generated by job ",jobInfo.jobId()," with command: ", jobInfo.get('command') 00052 00053 return SUCCESS 00054 def finalize(self):
def Dump::PrintJobInfoAlg::finalize | ( | self | ) |