/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
Dump::PrintJobInfoAlg Class Reference
Inheritance diagram for Dump::PrintJobInfoAlg:
Inheritance graph
[legend]
Collaboration diagram for Dump::PrintJobInfoAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 jobInfoSvc

Detailed Description

Definition at line 17 of file Dump.py.


Constructor & Destructor Documentation

def Dump::PrintJobInfoAlg::__init__ (   self,
  name 
)

Definition at line 19 of file Dump.py.

00020                            :
00021         DybPythonAlg.__init__(self,name)
00022         return


Member Function Documentation

def Dump::PrintJobInfoAlg::initialize (   self)

Definition at line 23 of file Dump.py.

00024                         :
00025         status = DybPythonAlg.initialize(self)
00026         if status.isFailure(): return status
00027         self.info("initializing")
00028 
00029         # Example histogram: Total raw ADC sum for each trigger
00030         self.jobInfoSvc = self.svc('IJobInfoSvc','JobInfoSvc')
00031         jobInfo = self.jobInfoSvc.currentJobInfo()
00032         import time
00033         print "\n"
00034         print "Current Job Information:"
00035         jobInfo.fillStream(ROOT.cout)
00036         print "\n"
00037 
00038         for jobInfoHist in self.jobInfoSvc.cachedJobInfo():
00039             print "\n"
00040             print "Cached Job Information:"
00041             jobInfoHist.fillStream(ROOT.cout)
00042             print "\n"
00043         return SUCCESS

def Dump::PrintJobInfoAlg::execute (   self)

Definition at line 44 of file Dump.py.

00045                      :
00046         self.info("executing")
00047 
00048         evt = self.evtSvc()
00049         genHeader = evt["/Event/Gen/GenHeader"]
00050         if genHeader:
00051             jobInfo = self.jobInfoSvc.jobInfo(genHeader.jobId())
00052             print "Kinematics at time ",genHeader.timeStamp().AsString()," generated by job ",jobInfo.jobId()," with command: ", jobInfo.get('command')
00053         
00054         return SUCCESS
        
def Dump::PrintJobInfoAlg::finalize (   self)

Definition at line 55 of file Dump.py.

00056                       :
00057         self.info("finalizing")
00058         status = DybPythonAlg.finalize(self)
00059         return status


Member Data Documentation

Definition at line 23 of file Dump.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:59:35 for JobInfoSvc by doxygen 1.7.4