![]() |
Belle II Software release-09-00-03
|
Public Member Functions | |
| def | __init__ (self, extractor=None) |
| def | addExtractor (self, class_type, extractor) |
| def | extract (self, obj) |
Public Attributes | |
| 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.
| def __init__ | ( | self, | |
extractor = None |
|||
| ) |
Initialize the class with a set of quantity extractors
Definition at line 89 of file quantity_extract.py.
| def 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.
| def 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 |
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.