| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RootIOTest::TestMultiStream::MultiStreams Class Reference

Inheritance diagram for RootIOTest::TestMultiStream::MultiStreams:
[legend]
Collaboration diagram for RootIOTest::TestMultiStream::MultiStreams:
[legend]
List of all members.

Public Member Functions

def __init__
def execute

Public Attributes

 count

Detailed Description

Place multiple objects of the same type at multiple locations in
the event store.

Definition at line 10 of file TestMultiStream.py.


Member Function Documentation

def RootIOTest::TestMultiStream::MultiStreams::__init__ (   self,
  name = 'MultiStreams' 
)

Definition at line 12 of file TestMultiStream.py.

00015                                           :
00016         GaudiAlgo.__init__(self,name)
00017         self.count = 0;
        print 'MultiStreams: making one'

def RootIOTest::TestMultiStream::MultiStreams::execute (   self  ) 

Definition at line 18 of file TestMultiStream.py.

00018                            : making one'
00019         return
00020 
00021     def execute(self):
00022         self.count += 1
00023 
00024         evt = self.evtSvc()
00025 
00026         print 'MultiStreams: reading in Lotsa headers'
00027         for ind in range(0,10):
00028 
00029             gh_path = '/Event/Gen/GenHeader%d'%ind
00030             gh = evt[gh_path]
00031             sh_path = '/Event/Sim/SimHeader%d'%ind
00032             sh = evt[sh_path]
00033             if not sh:
00034                 print 'Failed to get "%s"'%sh_path
00035                 return FAILURE
00036 
00037             ihs = sh.inputHeaders()
00038             if ihs.size():
00039                 gh_input = ihs[0]
00040             else:
00041                 print 'Got empty input headers from',sh_path
00042                 return FAILURE
00043 
00044             print gh_path,gh.execNumber(),gh.timeStamp().AsString()
00045             print gh_path,gh_input.execNumber(),gh_input.timeStamp().AsString()
00046             print sh_path,sh.execNumber(),sh.timeStamp().AsString()
00047             print
00048 
00049             if gh.execNumber() != gh_input.execNumber():
00050                 print 'GenHeader exec numbers differ: %d != %d'%\
00051                     (gh.execNumber(), gh_input.execNumber())
00052                 return FAILURE
00053             if gh.timeStamp() != gh_input.timeStamp():
00054                 print 'GenHeader time stamps differ: "%s" != "%s"'%\
00055                     (gh.timeStamp().AsString(),gh_input.timeStamp().AsString())
00056                 return FAILURE
00057             continue


Member Data Documentation

RootIOTest::TestMultiStream::MultiStreams::count

Definition at line 14 of file TestMultiStream.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 Mon Apr 11 20:58:43 2011 for RootIOTest by doxygen 1.4.7