15from ROOT
import Belle2
21 """Test DisplayData"""
24 """reimplementation of Module::initialize()."""
29 """reimplementation of Module::event()."""
35 displayData.obj().addLabel(
"Origin", XYZVector(0, 0, 0))
39 displayData.obj().addPoint(
"set 1", XYZVector(15, 15, 10 * i))
41 displayData.obj().addPoint(
"set 2", XYZVector(10 * i, 0, 50))
44 pos = XYZVector(0, 0, 100)
45 displayData.obj().addArrow(
"x", pos, pos + XYZVector(50, 0, 0))
46 displayData.obj().addArrow(
"y", pos, pos + XYZVector(0, 50, 0))
47 displayData.obj().addArrow(
"z", pos, pos + XYZVector(0, 0, 50))
49 displayData.obj().addArrow(
"z=-2m", XYZVector(100, 100, -200), XYZVector(0, 0, -200), ROOT.kGray)
55 displayData.obj().select(part)
59eventinfosetter = b2.register_module(
'EventInfoSetter')
60eventinfosetter.param(
'evtNumList', [500])
64gearbox = b2.register_module(
'Gearbox')
65geometry = b2.register_module(
'Geometry')
67particlegun = b2.register_module(
'ParticleGun')
68particlegun.param(
'nTracks', 4)
72g4sim = b2.register_module(
'FullSim')
74g4sim.logging.log_level = b2.LogLevel.ERROR
77main = b2.create_path()
80main.add_module(eventinfosetter)
82main.add_module(gearbox)
83main.add_module(geometry)
84main.add_module(particlegun)
90display = b2.register_module(
'Display')
91display.param(
'showAllPrimaries',
True)
92main.add_module(display)
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.