nectarchain.trr_test_suite.tools_components.UCTSContainer#
- class UCTSContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainer- Defines the fields for the UCTSContainer class, which is used to store various
data related to UCTS events.
The fields include: -
run_number: The run number associated with the waveforms. -npixels: The number of effective pixels. -pixels_id: The IDs of the pixels. -ucts_timestamp: The UCTS timestamp of the events. -event_type: The trigger event type. -event_id: The IDs of the events. -ucts_busy_counter: The UCTS busy counter. -ucts_event_counter: The UCTS event counter.
- 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
- mean_event_chargeField(default=None, dtype=uint32, ndim=1, type=ndarray)
average pixel charge for event
- 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
- ucts_busy_counterField(default=None, dtype=uint32, ndim=1, type=ndarray)
busy counter
- ucts_event_counterField(default=None, dtype=uint32, ndim=1, type=ndarray)
event counter
- 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_timestampmean_event_chargeevent_typeevent_iducts_busy_counteructs_event_countermetaprefixdefault_prefixfields