spine.data.larcv.RunInfo
- class spine.data.larcv.RunInfo(run: int = -1, subrun: int = -1, event: int = -1)[source]
Run information related to a specific event.
- run
Run ID
- Type:
int
- subrun
Sub-run ID
- Type:
int
- event
Event ID
- Type:
int
- Attributes:
enum_attrsFetches HDF5-friendly enumerator descriptors for enum-backed fields.
enum_dictsFetches the dictionary of enumerated attributes and their enumerator descriptors.
enum_valuesFetches reverse enum lookups from stored values to symbolic names.
field_unitsFetches the documented units for each field.
index_attrsReturn the tuple of index-bearing attributes.
Methods
as_dict([lite, include_derived])Returns the data class as dictionary of (key, value) pairs.
attr_names([include_derived, ...])Return the names of valid attributes on this data class.
from_dict(cls_dict)Builds and returns an object of the class from a dictionary of attributes.
from_larcv(larcv_event)Builds and returns a Meta object from a LArCV 2D metadata object
scalar_dict([attrs, lengths, lite])Returns the data class attributes as a dictionary of scalars.
set_precision([precision])Casts all the vector attributes to a different precision.
shift_indexes(shifts)Apply offsets to index attributes in place.
value_with_units(attr)Fetch an attribute value with its documented units.
- __init__(run: int = -1, subrun: int = -1, event: int = -1) None
Methods
__init__([run, subrun, event])as_dict([lite, include_derived])Returns the data class as dictionary of (key, value) pairs.
attr_names([include_derived, ...])Return the names of valid attributes on this data class.
from_dict(cls_dict)Builds and returns an object of the class from a dictionary of attributes.
from_larcv(larcv_event)Builds and returns a Meta object from a LArCV 2D metadata object
scalar_dict([attrs, lengths, lite])Returns the data class attributes as a dictionary of scalars.
set_precision([precision])Casts all the vector attributes to a different precision.
shift_indexes(shifts)Apply offsets to index attributes in place.
value_with_units(attr)Fetch an attribute value with its documented units.
Attributes
enum_attrsFetches HDF5-friendly enumerator descriptors for enum-backed fields.
enum_dictsFetches the dictionary of enumerated attributes and their enumerator descriptors.
enum_valuesFetches reverse enum lookups from stored values to symbolic names.
field_unitsFetches the documented units for each field.
index_attrsReturn the tuple of index-bearing attributes.
- run: int = -1
- subrun: int = -1
- event: int = -1