12 from basf2
import set_random_seed, create_path, Module
13 from ROOT
import Belle2
14 from b2test_utils
import safe_process, clean_working_directory
16 set_random_seed(
"something important")
20 '''Simple module that creates some relations.'''
28 self.
trackstracks.registerInDataStore()
29 self.
clustersclusters.registerInDataStore()
36 if not self.
firstfirst:
37 track = self.
trackstracks.appendNew()
38 cluster = self.
clustersclusters.appendNew()
39 track.addRelationTo(cluster)
40 self.
firstfirst =
False
44 """Create file with empty first event"""
46 path.add_module(
'EventInfoSetter')
48 path.add_module(
'RootOutput', outputFileName=
'test.root')
53 """Read file with empty first event"""
55 path.add_module(
'RootInput', inputFileName=
'test.root')
56 path.add_module(
'PrintCollections', printForEvent=0)
60 if __name__ ==
"__main__":
61 with clean_working_directory():
A (simplified) python wrapper for StoreArray.
first
Bool for flagging the first event processed.