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


Constructor & Destructor Documentation

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

Definition at line 15 of file TestMultiStream.py.

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


Member Function Documentation

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

Definition at line 21 of file TestMultiStream.py.

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

Member Data Documentation

Definition at line 15 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 Fri May 16 2014 10:20:12 for RootIOTest by doxygen 1.7.4