Belle II Software  release-05-02-19
TestModule Class Reference
Inheritance diagram for TestModule:
Collaboration diagram for TestModule:

Public Member Functions

def event (self)
 

Detailed Description

Test to read relations in the input files.

Definition at line 25 of file seqroot_input.py.

Member Function Documentation

◆ event()

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

prints PXD true and simhit indices, using relations

Definition at line 29 of file seqroot_input.py.

29  def event(self):
30  """reimplementation of Module::event().
31 
32  prints PXD true and simhit indices, using relations
33  """
34 
35  truehits = Belle2.PyStoreArray('PXDTrueHits')
36  for truehit in truehits:
37  relations = truehit.getRelationsTo("PXDSimHits")
38  print("truehit %d => hits " % truehit.getArrayIndex(), end="")
39  for hit in relations:
40  print(hit.getArrayIndex(), end=", ")
41  print()
42 
43 
44 # ============================================================================
45 # Now lets create the necessary modules to perform a simulation
46 

The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58