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_dict

Convert the Container into a dictionary

from_hdf5

Reads a container from an HDF5 file.

items

Generator over (key, value) pairs for the items

keys

Get the keys of the container

reset

Reset all values back to their default values

update

update more than one parameter at once (e.g. update(x=3,y=4) or update(**dict_of_values)).

validate

Check that all fields in the Container have the expected characteristics (as defined by the Field metadata).

values

Get the keys of the container

Attributes

run_number

npixels

pixels_id

ucts_timestamp

mean_event_charge

event_type

event_id

ucts_busy_counter

ucts_event_counter

meta

prefix

default_prefix

fields