12from ROOT
import Belle2
14b2.logging.log_level = b2.LogLevel.ERROR
19 """Test to read relations."""
27 """reimplementation of Module::event().
29 access all relations from/to MCParticles,
30 any invalid indices should be caught.
36 from_relations = mcparticles[0].getRelationsFrom(
"ALL")
37 to_relations = mcparticles[0].getRelationsTo(
"ALL")
40eventinfosetter = b2.register_module(
'EventInfoSetter')
41eventinfosetter.param(
'evtNumList', [10])
43gearbox = b2.register_module(
'Gearbox')
44geometry = b2.register_module(
'Geometry')
45pgun = b2.register_module(
'ParticleGun')
46g4sim = b2.register_module(
'FullSim')
49main = b2.create_path()
51main.add_module(eventinfosetter)
52main.add_module(gearbox)
53main.add_module(geometry)
A (simplified) python wrapper for StoreArray.