![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, extractor=None) | |
addExtractor (self, class_type, extractor) | |
extract (self, obj) | |
Public Attributes | |
extractor = extractor | |
the dictionary used for data extraction, key is the ROOT type and value a list of extractors | |
Class to automatically extract quantities from ROOT Objects
Definition at line 84 of file quantity_extract.py.
__init__ | ( | self, | |
extractor = None ) |
Initialize the class with a set of quantity extractors
Definition at line 89 of file quantity_extract.py.
addExtractor | ( | self, | |
class_type, | |||
extractor ) |
Adds an extractor to this class @param class_type: the string you get when running <root_object>.IsA().GetName() This is used to map the correct extractor to this root object
Definition at line 102 of file quantity_extract.py.
extract | ( | self, | |
obj ) |
Extract quantities from a root object @return: a dictionary of extracted quantities
Definition at line 119 of file quantity_extract.py.
extractor = extractor |
the dictionary used for data extraction, key is the ROOT type and value a list of extractors
Definition at line 96 of file quantity_extract.py.