/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
RootIOTest::TestHeaderObjects::HeaderDump Class Reference
Inheritance diagram for RootIOTest::TestHeaderObjects::HeaderDump:
Inheritance graph
[legend]
Collaboration diagram for RootIOTest::TestHeaderObjects::HeaderDump:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def execute
def finalize

Public Attributes

 pkl
 txt
 paths

Detailed Description

A gaudi alg that dumps header objects into a pickle file

Definition at line 83 of file TestHeaderObjects.py.


Constructor & Destructor Documentation

def RootIOTest::TestHeaderObjects::HeaderDump::__init__ (   self,
  name = 'InputHeaderDump',
  filebase = 'input_header_dump',
  headers = None 
)

Definition at line 87 of file TestHeaderObjects.py.

00088                                                                                        :
00089         GaudiAlgo.__init__(self,name)
00090         self.pkl = open(filebase+'.pkl',"w")
00091         self.txt = open(filebase+'.txt',"w")
00092         if headers:
00093             self.paths = headers
00094         else:
00095             self.paths = ['/Event/Sim/SimHeader','/Event/Gen/GenHeader']
00096         return


Member Function Documentation

def RootIOTest::TestHeaderObjects::HeaderDump::execute (   self)

Definition at line 97 of file TestHeaderObjects.py.

00098                      :
00099         evt = self.evtSvc()
00100         for path in self.paths:
00101             hdr = evt[path]
00102             if not hdr:
00103                 print 'Failed to get HeaderObject from "%s"'%path
00104                 return FAILURE
00105             self.txt.write("%s"%hdr)
00106             phdr = PythonHeaderObject(hdr)
00107             pickle.dump(phdr,self.pkl)
00108             continue
00109         return SUCCESS

def RootIOTest::TestHeaderObjects::HeaderDump::finalize (   self)

Definition at line 110 of file TestHeaderObjects.py.

00111                       :
00112         self.pkl.close()
00113         self.txt.close()
00114         return SUCCESS
00115         


Member Data Documentation

Definition at line 87 of file TestHeaderObjects.py.

Definition at line 87 of file TestHeaderObjects.py.

Definition at line 87 of file TestHeaderObjects.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 10:20:12 for RootIOTest by doxygen 1.7.4