16 from ROOT
import Belle2
22 """Test DisplayData"""
25 """reimplementation of Module::initialize()."""
30 """reimplementation of Module::event()."""
36 displayData.obj().addLabel(
"Origin", XYZVector(0, 0, 0))
40 displayData.obj().addPoint(
"set 1", XYZVector(15, 15, 10 * i))
42 displayData.obj().addPoint(
"set 2", XYZVector(10 * i, 0, 50))
45 pos = XYZVector(0, 0, 100)
46 displayData.obj().addArrow(
"x", pos, pos + XYZVector(50, 0, 0))
47 displayData.obj().addArrow(
"y", pos, pos + XYZVector(0, 50, 0))
48 displayData.obj().addArrow(
"z", pos, pos + XYZVector(0, 0, 50))
50 displayData.obj().addArrow(
"z=-2m", XYZVector(100, 100, -200), XYZVector(0, 0, -200), ROOT.kGray)
56 displayData.obj().select(part)
60 eventinfosetter = b2.register_module(
'EventInfoSetter')
61 eventinfosetter.param(
'evtNumList', [500])
65 gearbox = b2.register_module(
'Gearbox')
66 geometry = b2.register_module(
'Geometry')
68 particlegun = b2.register_module(
'ParticleGun')
69 particlegun.param(
'nTracks', 4)
73 g4sim = b2.register_module(
'FullSim')
75 g4sim.logging.log_level = b2.LogLevel.ERROR
78 main = b2.create_path()
81 main.add_module(eventinfosetter)
83 main.add_module(gearbox)
84 main.add_module(geometry)
85 main.add_module(particlegun)
91 display = b2.register_module(
'Display')
92 display.param(
'showAllPrimaries',
True)
93 main.add_module(display)
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.