INNER CODE UNIT · Python
Iterator
KATRIN-Experiment/Kassiopeia · Kassiopeia/Python/KassiopeiaReader.py:53
class Iterator:
"""
A simple class for reading Kassiopeia output.
The class defines an iterator that can be used to access tree entries
in sequential order. This is typically more resource-effective than
loading the entire ROOT tree into memory before processing the data.
Usage example:
import KassiopeiaReader
reader = KassiopeiaReader.Iterator("QuadrupoleTrapSimulation.root")
print("List of tree names:", dir(reader))
reader.loadTree('component_step_world')
print("List of tree objects:", dir(reader))