Public Member Functions | |
def | __init__ |
def | execute |
Public Attributes | |
count |
Place multiple objects of the same type at multiple locations in the event store.
Definition at line 10 of file TestMultiStream.py.
def RootIOTest::TestMultiStream::MultiStreams::__init__ | ( | self, | ||
name = 'MultiStreams' | ||||
) |
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
Definition at line 14 of file TestMultiStream.py.