nectarchain.trr_test_suite.tools_components.ToMContainer#
- class ToMContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainer- Attributes:
run_number (np.uint16): The run number associated with the waveforms. npixels (np.uint16): The number of effective pixels. pixels_id (np.ndarray[np.uint16]): The pixel IDs. ucts_timestamp (np.ndarray[np.uint64]): The UCTS timestamps of the events. event_type (np.ndarray[np.uint8]): The trigger event types. event_id (np.ndarray[np.uint32]): The event IDs. charge_hg (np.ndarray[np.float64]): The mean high gain charge per event. tom_no_fit (np.ndarray[np.float64]): The time of maximum from the data (no fitting). good_evts (np.ndarray[np.uint32]): The IDs of the good (non-cosmic ray) events.
- Attributes:
- run_numberField(default=None, type=uint16)
run number associated to the waveforms
- npixelsField(default=None, type=uint16)
number of effective pixels
- pixels_idField(default=None, dtype=uint16, ndim=1, type=ndarray)
pixel ids
- ucts_timestampField(default=None, dtype=uint64, ndim=1, type=ndarray)
events ucts timestamp
- event_typeField(default=None, dtype=uint8, ndim=1, type=ndarray)
trigger event type
- event_idField(default=None, dtype=uint32, ndim=1, type=ndarray)
event ids
- charge_hgField(default=None, dtype=float64, ndim=2, type=ndarray)
The mean high gain charge per event
- tom_no_fitField(default=None, dtype=float64, ndim=2, type=ndarray)
Time of maximum from data (no fitting)
- good_evtsField(default=None, dtype=uint32, ndim=1, type=ndarray)
good (non cosmic ray) event ids
- metadict
dict of attached metadata
- prefixstr
Prefix attached to column names when saved to a table or file
Methods
as_dictConvert the
Containerinto a dictionaryfrom_hdf5Reads a container from an HDF5 file.
itemsGenerator over (key, value) pairs for the items
keysGet the keys of the container
resetReset all values back to their default values
updateupdate more than one parameter at once (e.g.
update(x=3,y=4)orupdate(**dict_of_values)).validateCheck that all fields in the Container have the expected characteristics (as defined by the Field metadata).
valuesGet the keys of the container
Attributes
run_numbernpixelspixels_iducts_timestampevent_typeevent_idcharge_hgtom_no_fitgood_evtsmetaprefixdefault_prefixfields