Belle II Software light-2406-ragdoll
|
Public Member Functions | |
def | __init__ (self, listname, variables, filename) |
def | initialize (self) |
def | event (self) |
def | terminate (self) |
Protected Attributes | |
_filename | |
Output filename. | |
_listname | |
Particle list name. | |
_variables | |
List of variables. | |
_varnames | |
variable names | |
_var_objects | |
variable objects for each variable | |
_evtmeta | |
Event metadata. | |
_plist | |
Pointer to the particle list. | |
_hdf5file | |
The hdf5 file. | |
_dtype | |
The data type. | |
_table | |
The pytable. | |
Dump variables directly to HDF5 This Module is the equivalent of VariablesToNtuple but creates an hdf5 file instead of a root file. It is slower as it is implemented in pure python and should currently be considered a proof of concept.
Definition at line 21 of file b2pandas_utils.py.
def __init__ | ( | self, | |
listname, | |||
variables, | |||
filename | |||
) |
Constructor to initialize the internal state Arguments: listname(str): name of the particle list variables(list(str)): list of variables to save for each particle filename(str): name of the hdf5 file to be created
Definition at line 30 of file b2pandas_utils.py.
def event | ( | self | ) |
Create a new row in the hdf5 file with for each particle in the list
Definition at line 88 of file b2pandas_utils.py.
def initialize | ( | self | ) |
Create the hdf5 file and list of variable objects to be used during event processing.
Definition at line 46 of file b2pandas_utils.py.
def terminate | ( | self | ) |
save and close the output
Definition at line 108 of file b2pandas_utils.py.
|
protected |
The data type.
Definition at line 79 of file b2pandas_utils.py.
|
protected |
Event metadata.
Definition at line 60 of file b2pandas_utils.py.
|
protected |
Output filename.
Definition at line 40 of file b2pandas_utils.py.
|
protected |
The hdf5 file.
Definition at line 67 of file b2pandas_utils.py.
|
protected |
Particle list name.
Definition at line 42 of file b2pandas_utils.py.
|
protected |
Pointer to the particle list.
Definition at line 63 of file b2pandas_utils.py.
|
protected |
The pytable.
Definition at line 86 of file b2pandas_utils.py.
|
protected |
variable objects for each variable
Definition at line 57 of file b2pandas_utils.py.
|
protected |
List of variables.
Definition at line 44 of file b2pandas_utils.py.
|
protected |
variable names
Definition at line 52 of file b2pandas_utils.py.