28 def event(self):
29 """reimplementation of Module::event()."""
30
32 displayData.create()
33
34
35 displayData.obj().addLabel("Origin", XYZVector(0, 0, 0))
36
37
38 for i in range(10):
39 displayData.obj().addPoint("set 1", XYZVector(15, 15, 10 * i))
40 for i in range(10):
41 displayData.obj().addPoint("set 2", XYZVector(10 * i, 0, 50))
42
43
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))
48
49 displayData.obj().addArrow("z=-2m", XYZVector(100, 100, -200), XYZVector(0, 0, -200), ROOT.kGray)
50
51
53 part = mcparticles[0]
54 if part is not None:
55 displayData.obj().select(part)
56
57
58
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.