nectarchain.data.container.core.ArrayDataContainer#
- class ArrayDataContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainerA container that holds information about waveforms from a specific run.
- Attributes:
run_number (int): The run number associated with the waveforms. nevents (int): The number of events. npixels (int): The number of pixels. camera (str): The name of the camera. pixels_id (np.ndarray): An array of pixel IDs. broken_pixels_hg (np.ndarray): An array of high gain broken pixels. broken_pixels_lg (np.ndarray): An array of low gain broken pixels. ucts_timestamp (np.ndarray): An array of events’ UCTS timestamps. ucts_busy_counter (np.ndarray): An array of UCTS busy counters. ucts_event_counter (np.ndarray): An array of UCTS event counters. event_type (np.ndarray): An array of trigger event types. event_id (np.ndarray): An array of event IDs. trig_pattern_all (np.ndarray): An array of trigger patterns. trig_pattern (np.ndarray): An array of reduced trigger patterns. multiplicity (np.ndarray): An array of events’ multiplicities.
- Attributes:
- run_numberField(default=None, type=uint16)
run number associated to the waveforms
- neventsField(default=None, type=uint64)
number of events
- npixelsField(default=None, type=uint16)
number of effective pixels
- pixels_idField(default=None, dtype=uint16, ndim=1, type=ndarray)
pixel ids
- broken_pixels_hgField(default=None, dtype=bool, ndim=2, type=ndarray)
high gain broken pixels
- broken_pixels_lgField(default=None, dtype=bool, ndim=2, type=ndarray)
low gain broken pixels
- cameraField(default=None, type=str)
camera name
- ucts_timestampField(default=None, dtype=uint64, ndim=1, type=ndarray)
events ucts timestamp
- ucts_busy_counterField(default=None, dtype=uint32, ndim=1, type=ndarray)
ucts busy counter
- ucts_event_counterField(default=None, dtype=uint32, ndim=1, type=ndarray)
ucts event counter
- 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
- trig_pattern_allField(default=None, dtype=bool, ndim=3, type=ndarray)
trigger pattern
- trig_patternField(default=None, dtype=bool, ndim=2, type=ndarray)
reduced trigger pattern
- multiplicityField(default=None, dtype=uint16, ndim=1, type=ndarray)
events multiplicity
- 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_numberneventsnpixelspixels_idbroken_pixels_hgbroken_pixels_lgcameraucts_timestampucts_busy_counteructs_event_counterevent_typeevent_idtrig_pattern_alltrig_patternmultiplicitymetaprefixdefault_prefixfields