13 from ROOT
import Belle2
15 b2.logging.log_level = b2.LogLevel.ERROR
20 """Test to read relations."""
28 """reimplementation of Module::event().
30 access all relations from/to MCParticles,
31 any invalid indices should be caught.
37 from_relations = mcparticles[0].getRelationsFrom(
"ALL")
38 to_relations = mcparticles[0].getRelationsTo(
"ALL")
41 eventinfosetter = b2.register_module(
'EventInfoSetter')
42 eventinfosetter.param(
'evtNumList', [10])
44 gearbox = b2.register_module(
'Gearbox')
45 geometry = b2.register_module(
'Geometry')
46 pgun = b2.register_module(
'ParticleGun')
47 g4sim = b2.register_module(
'FullSim')
50 main = b2.create_path()
52 main.add_module(eventinfosetter)
53 main.add_module(gearbox)
54 main.add_module(geometry)
56 main.add_module(g4sim)
A (simplified) python wrapper for StoreArray.