nectarchain.trr_test_suite.tools_components.PedestalContainer#
- class PedestalContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainer- Attributes of the PedestalContainer class that store various data related to the
pedestal of a NectarCAM event.
- 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 IDs of the pixels. ucts_timestamp (np.ndarray[np.uint64]): The UCTS timestamp of the events. event_type (np.ndarray[np.uint8]): The trigger event type. event_id (np.ndarray[np.uint32]): The event IDs. pedestal_hg (np.ndarray[np.float64]): The high gain pedestal per event. pedestal_lg (np.ndarray[np.float64]): The low gain pedestal per event. rms_ped_hg (np.ndarray[np.float64]): The high gain pedestal RMS per event. rms_ped_lg (np.ndarray[np.float64]): The low gain pedestal RMS per event.
- 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
- pedestal_hgField(default=None, dtype=float64, ndim=2, type=ndarray)
High gain pedestal per event
- pedestal_lgField(default=None, dtype=float64, ndim=2, type=ndarray)
Low gain pedestal per event
- rms_ped_hgField(default=None, dtype=float64, ndim=2, type=ndarray)
High gain pedestal rms per event
- rms_ped_lgField(default=None, dtype=float64, ndim=2, type=ndarray)
Low gain pedestal rms per event
- 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_idpedestal_hgpedestal_lgrms_ped_hgrms_ped_lgmetaprefixdefault_prefixfields