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_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

event_type

event_id

charge_hg

tom_no_fit

good_evts

meta

prefix

default_prefix

fields