Belle II Software  release-08-01-10
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 32 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 36 of file seqroot_input.py.

36  def event(self):
37  """reimplementation of Module::event().
38 
39  prints PXD true and simhit indices, using relations
40  """
41 
42  truehits = Belle2.PyStoreArray('PXDTrueHits')
43  for truehit in truehits:
44  relations = truehit.getRelationsTo("PXDSimHits")
45  print("truehit %d => hits " % truehit.getArrayIndex(), end="")
46  for hit in relations:
47  print(hit.getArrayIndex(), end=", ")
48  print()
49 
50 
51 # ============================================================================
52 # Now lets create the necessary modules to perform a simulation
53 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

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