INNER CODE UNIT · Python

__getattr__

KATRIN-Experiment/Kassiopeia · Kassiopeia/Python/KassiopeiaReader.py:45

    def __getattr__(self, name):
        assert(type(name) == str)

        if not name in self.data:
            raise KeyError("IteratorItem does not contain a field named '%s'" % name)

        return self.data[name]

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…