|
| extractor |
| the dictionary used for data extraction, key is the ROOT type and value a list of extractors
|
|
Class to automatically quntaties from ROOT Objects
Definition at line 84 of file quantity_extract.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
extractor = None |
|
) |
| |
Initialize the class with a set of quantity extractors
Definition at line 89 of file quantity_extract.py.
89 def __init__(self, extractor=None):
91 Initialize the class with a set of quantity extractors
96 self.extractor = extractor
98 if self.extractor
is None:
100 self.extractor = default_extractor()
◆ addExtractor()
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.
◆ extract()
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.
The documentation for this class was generated from the following file: