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

Public Member Functions

def __init__ (self)
 
def event (self)
 

Detailed Description

Test to read relations.

Definition at line 17 of file mcparticle_relations.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor.

Definition at line 21 of file mcparticle_relations.py.

21 def __init__(self):
22 """constructor."""
23
24 super().__init__()
25

Member Function Documentation

◆ event()

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

access all relations from/to MCParticles,
any invalid indices should be caught.

Definition at line 26 of file mcparticle_relations.py.

26 def event(self):
27 """reimplementation of Module::event().
28
29 access all relations from/to MCParticles,
30 any invalid indices should be caught.
31 """
32
33 mcparticles = Belle2.PyStoreArray('MCParticles')
34 # this will generate an index internally, checking consistency
35 # (will die with a FATAL if something goes wrong)
36 from_relations = mcparticles[0].getRelationsFrom("ALL") # noqa
37 to_relations = mcparticles[0].getRelationsTo("ALL") # noqa
38
39
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

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