calix.common.cadc.CADCCalibResult
-
class
calix.common.cadc.
CADCCalibResult
(target: Optional[CalibTarget], options: Optional[CalibOptions], v_ramp_offset: numpy.ndarray = <factory>, i_ramp_slope: numpy.ndarray = <factory>, channel_offset: numpy.ndarray = <factory>, success: Optional[numpy.ndarray] = None) Bases:
calix.common.base.CalibResult
Result object for the CADC calibration.
Contains: * Calibrated values for cadc_v_ramp_offset. One per quadrant. * Calibrated values for cadc_i_ramp_slope. One per quadrant. * Calibrated digital channel offsets. One per channel. * Success mask for calibration. Successfully calibrated channels are indicated by True, for any failure the channels will be flagged False. Failing quadrants result in all channels on that quadrant being flagged False.
-
__init__
(target: Optional[CalibTarget], options: Optional[CalibOptions], v_ramp_offset: numpy.ndarray = <factory>, i_ramp_slope: numpy.ndarray = <factory>, channel_offset: numpy.ndarray = <factory>, success: Optional[numpy.ndarray] = None) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(target, options[, v_ramp_offset, …])Initialize self.
apply
(builder)Apply the calibration into the given builder.
Attributes
-
apply
(builder: Union[pystadls_vx_v3.PlaybackProgramBuilder, pystadls_vx_v3.PlaybackProgramBuilderDumper, calix.common.base.WriteRecordingPlaybackProgramBuilder]) Apply the calibration into the given builder.
Applying configures and enables the CADC so that it is ready for usage, just like after running the calibration.
- Parameters
builder – Builder or dumper to append configuration instructions to.
-
channel_offset
: numpy.ndarray
-
i_ramp_slope
: numpy.ndarray
-
success
: Optional[numpy.ndarray] = None
-
v_ramp_offset
: numpy.ndarray
-