Belle II Software  release-08-01-10
VisualizeVertex Class Reference
Inheritance diagram for VisualizeVertex:
Collaboration diagram for VisualizeVertex:

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Visualize the vertex configured for the ParticleGun

Definition at line 31 of file pgun_vertex.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 39 of file pgun_vertex.py.

39  def event(self):
40  """reimplementation of Module::event()."""
41 
42  displayData = Belle2.PyStoreObj("DisplayData")
43  displayData.create()
44 
45  displayData.obj().addLabel("Origin", XYZVector(0, 0, 0))
46  displayData.obj().addLabel("0,0,10", XYZVector(0, 0, 10))
47 
48  # visualize extent of vertex
49  global vertexparams
50  displayData.obj().addPoint("Vertex", XYZVector(vertexparams[0][0],
51  vertexparams[1][0],
52  vertexparams[2][0]))
53  for d in range(3):
54  sigma = vertexparams[d][1]
55  # add points at +-sigma on both sides of Vertex
56  vertexparams[d][0] -= sigma
57  displayData.obj().addPoint("Width", XYZVector(vertexparams[0][0],
58  vertexparams[1][0],
59  vertexparams[2][0]))
60  vertexparams[d][0] += 2 * sigma
61  displayData.obj().addPoint("Width", XYZVector(vertexparams[0][0],
62  vertexparams[1][0],
63  vertexparams[2][0]))
64  vertexparams[d][0] -= sigma
65 
66 
67 # register necessary modules
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
reimplementation of Module::initialize().

Definition at line 34 of file pgun_vertex.py.


The documentation for this class was generated from the following file: