Belle II Software development
TestModule Class Reference
Inheritance diagram for TestModule:

Public Member Functions

def event (self)
 

Detailed Description

Test to read relations in the input files.

Definition at line 31 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 35 of file seqroot_input.py.

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

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