lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
detector::AreaDetectorOpal Class Reference

AreaDetector subclass for Opal: finds the indexes of the Opal config and data fields by name, gives typed accessors for them, and provides raw() and pedestal-subtracted calib() arrays. More...

#include <AreaDetectorOpal.hh>

Inherits detector::AreaDetector.

Public Member Functions

 AreaDetectorOpal (const std::string &detname, XtcData::ConfigIter &configiter)
 Construct with AreaDetector(detname, configiter) and call _set_indexes_config(configiter).
 
 AreaDetectorOpal (const std::string &detname)
 Construct with AreaDetector(detname); no ConfigIter is stored.
 
 AreaDetectorOpal ()
 Default constructor (AreaDetector()).
 
virtual ~AreaDetectorOpal ()
 Destructor; only logs a debug message.
 
virtual void detid (std::ostream &os, const int ind=-1)
 Write ind to os zero-padded to a width of 4 characters.
 
virtual void _set_indexes_config (XtcData::ConfigIter &)
 Return at once if no ConfigIter is stored.
 
virtual void _set_indexes_data (XtcData::DataIter &)
 Return at once if a DataIter was already recorded.
 
virtual const void print_config_indexes ()
 Print the recorded index of every config field to stdout.
 
virtual const void print_config ()
 Print detname, dettype, every config value, the derived counts, detid(), ndim() and size() to stdout.
 
virtual const void print_data_indexes (XtcData::DataIter &)
 Call _set_indexes_data(di) if no DataIter is recorded yet, then print the recorded data-field indexes to stdout (the first two lines show the config indexes of Version and TypeId).
 
virtual const void print_data (XtcData::DataIter &)
 Call _set_indexes_data(di) if no DataIter is recorded yet, then print every data value and array of di to stdout.
 
void _class_msg (const std::string &msg=std::string())
 Log an INFO message "In AreaDetectorOpal::" followed by msg.
 
virtual NDArray< opal_raw_t > & raw (XtcData::DescData &)
 Reserve size() elements in the internal raw array, set its shape from shape() and ndim(), and return it.
 
virtual NDArray< opal_raw_t > & raw (XtcData::DataIter &di)
 Call _set_indexes_data(di), then return raw(descdata(di)).
 
virtual const NDArray< calib_t > & calib (const event_t &evt)
 Forward to AreaDetector::calib(evt), a default that logs a warning; declared here to avoid a hidden-overload warning.
 
virtual NDArray< opal_calib_t > & calib (XtcData::DescData &)
 Prepare the raw array as raw(dd) does, then fill and return an internal float array with raw minus pedestals, element by element.
 
virtual NDArray< opal_calib_t > & calib (XtcData::DataIter &di)
 Call _set_indexes_data(di), then return calib(descdata(di)).
 
virtual void load_calib_constants ()
 Set the calib type to "pedestals", get pedestals_d() (double constants from the CalibPars backend), print them to stdout and keep a pointer to them for calib().
 
int64_t Version ()
 shape, size, ndim of data from configuration object
 
int64_t TypeId ()
 Return config field "TypeId" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t defect_pixel_correction_enabled ()
 Return config field "defect_pixel_correction_enabled" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t number_of_defect_pixels ()
 Return config field "number_of_defect_pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t output_offset ()
 Return config field "output_offset" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t gain_percent ()
 Return config field "gain_percent" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Column_Pixels ()
 Return config field "Column_Pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Row_Pixels ()
 Return config field "Row_Pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Mirroring ()
 Return config field "Mirroring" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t output_mirroring ()
 Return config field "output_mirroring" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t vertical_binning ()
 Return config field "vertical_binning" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Depth ()
 Return config field "Depth" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Output_LUT_Size ()
 Return config field "Output_LUT_Size" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t Binning ()
 Return config field "Binning" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t output_resolution ()
 Return config field "output_resolution" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t output_resolution_bits ()
 Return config field "output_resolution_bits" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t vertical_remapping ()
 Return config field "vertical_remapping" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t LUT_Size ()
 Return config field "LUT_Size" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t output_lookup_table_enabled ()
 Return config field "output_lookup_table_enabled" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
int64_t black_level ()
 Return config field "black_level" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.
 
Array< uint16_t > output_lookup_table ()
 Return config field "output_lookup_table" as Array<uint16_t>, at the index recorded by _set_indexes_config() (0 if not found).
 
int64_t data_Version (XtcData::DataIter &di)
 Return data field "data_Version" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
int64_t data_TypeId (XtcData::DataIter &di)
 Return data field "data_TypeId" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
int64_t height (XtcData::DataIter &di)
 Return data field "height" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
int64_t width (XtcData::DataIter &di)
 Return data field "width" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
int64_t depth (XtcData::DataIter &di)
 Return data field "depth" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
virtual const NDArray< pixel_offset_t > & offset (const event_t &evt)
 Forward to AreaDetector::offset(evt); declared here to avoid a hidden-overload warning.
 
int64_t offset (XtcData::DataIter &di)
 Return data field "offset" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
int64_t depth_bytes (XtcData::DataIter &di)
 Return data field "depth_bytes" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.
 
Array< uint8_t > _int_pixel_data (XtcData::DataIter &di)
 Return data field "_int_pixel_data" of di as Array<uint8_t>, at the index recorded by _set_indexes_data() (0 if not found).
 
Array< uint8_t > data8 (XtcData::DataIter &di)
 Return data field "data8" of di as Array<uint8_t>, at the index recorded by _set_indexes_data() (0 if not found).
 
Array< uint16_t > data16 (XtcData::DataIter &di)
 Return data field "data16" of di as Array<uint16_t>, at the index recorded by _set_indexes_data() (0 if not found).
 
- Public Member Functions inherited from detector::AreaDetector
 AreaDetector (const std::string &detname, ConfigIter &ci)
 Construct for detname (type AREA_DETECTOR) and keep a pointer to ci for later config and data access.
 
 AreaDetector (const std::string &detname)
 Construct for detname (type AREA_DETECTOR) with no ConfigIter.
 
 AreaDetector ()
 Default constructor: Detector() (name "NoDevice"), no ConfigIter.
 
virtual ~AreaDetector ()
 Delete the CalibPars object and the shape array if they were created (the array is allocated with new[] but released with delete).
 
void _default_msg (const std::string &msg=std::string()) const
 Log a WARNING that AreaDetector::msg is a default method that should be re-implemented in the derived class.
 
template<typename T >
T config_value_for_index (XtcData::ConfigIter &ci, index_t i)
 Return field i of ci.desc_shape() as a scalar of type T (DescData::get_value<T>()).
 
template<typename T >
Array< T > config_array_for_index (XtcData::ConfigIter &ci, index_t i)
 Return field i of ci.desc_shape() as an Array<T> (DescData::get_array<T>()).
 
template<typename T >
T config_value_for_index (index_t i)
 Return field i of the stored ConfigIter's desc_shape() as a scalar of type T; asserts that a ConfigIter is stored.
 
template<typename T >
Array< T > config_array_for_index (index_t i)
 Return field i of the stored ConfigIter's desc_shape() as an Array<T>; asserts that a ConfigIter is stored.
 
DescData & descdata (XtcData::DataIter &di)
 Return di.desc_value() built with the NamesLookup of the stored ConfigIter (not checked to be set).
 
template<typename T >
T data_value_for_index (XtcData::DescData &dd, index_t i)
 Return dd.get_value<T>(i).
 
template<typename T >
T data_value_for_index (XtcData::DataIter &di, index_t i)
 Return descdata(di).get_value<T>(i).
 
template<typename T >
Array< T > data_array_for_index (XtcData::DescData &dd, index_t i)
 Return dd.get_array<T>(i).
 
template<typename T >
Array< T > data_array_for_index (XtcData::DataIter &di, index_t i)
 Return descdata(di).get_array<T>(i).
 
virtual void process_config ()
 Print to stdout the Names of the stored ConfigIter's shape() entry and, for each field, its name, rank, type and element size, plus the value for INT64 scalars or the elements of arrays read as uint32_t.
 
virtual void process_data (XtcData::DataIter &)
 Log the _default_msg() warning, then print each data field's name, rank and type, with the value for INT64 scalars or the first five elements of arrays read as uint16_t.
 
virtual std::string detid (const int ind=-1)
 Return what detid(std::ostream&, ind) writes, as a string.
 
virtual const size_t ndim ()
 Return 3 if numberOfModules > 1, else 2.
 
virtual const size_t size ()
 Return numberOfPixels.
 
virtual shape_t * shape ()
 Return the shape array, allocated on the first call from {numberOfModules, numberOfRows, numberOfColumns} if numberOfModules > 1, else {numberOfRows, numberOfColumns}.
 
virtual const size_t ndim (const event_t &)
 Default: logs the _default_msg() warning and returns 0.
 
virtual const size_t size (const event_t &)
 Default: logs the _default_msg() warning and returns 0.
 
virtual const shape_t * shape (const event_t &)
 Default: logs the _default_msg() warning; if no shape array exists yet, allocates {1, 2, 3}; returns the shape array.
 
virtual const void print_data ()
 Default: only logs the _default_msg() warning.
 
template<typename T >
void raw (XtcData::DescData &ddata, T *&pdata, const char *dataname="frame")
 Set pdata to the data of the array field named dataname in ddata.
 
template<typename T >
void raw (XtcData::DataIter &datao, T *&pdata, const char *dataname="frame")
 Same as raw(DescData&, T*&, const char*), using datao.desc_value() with the stored ConfigIter's NamesLookup.
 
template<typename T >
void raw (XtcData::DescData &ddata, NDArray< T > &nda, const char *dataname="frame")
 Like raw(DescData&, T*&, const char*), then set the shape of nda from shape() and ndim() and point nda at the data without copying (set_data_buffer()).
 
template<typename T >
void raw (XtcData::DataIter &datao, NDArray< T > &nda, const char *dataname="frame")
 Same as raw(DescData&, NDArray<T>&, const char*), using datao.desc_value() with the stored ConfigIter's NamesLookup.
 
virtual const NDArray< common_mode_t > & common_mode (const event_t &)
 access to calibration constants
 
virtual const NDArray< pedestals_t > & pedestals (const event_t &)
 Return calib_pars()->pedestals(query(evt)); query(evt) returns the stored Query without refreshing it.
 
virtual const NDArray< double > & pedestals_d ()
 Return calib_pars()->pedestals_d(query()); query() first refreshes the Query from detname, expname, calibtype and runnum.
 
virtual const NDArray< pixel_rms_t > & rms (const event_t &)
 Return calib_pars()->rms(query(evt)).
 
virtual const NDArray< pixel_status_t > & status (const event_t &)
 Return calib_pars()->status(query(evt)).
 
virtual const NDArray< pixel_gain_t > & gain (const event_t &)
 Return calib_pars()->gain(query(evt)).
 
virtual const NDArray< pixel_bkgd_t > & background (const event_t &)
 Return calib_pars()->background(query(evt)).
 
virtual const NDArray< pixel_mask_t > & mask_calib (const event_t &)
 Return calib_pars()->mask_calib(query(evt)).
 
virtual const NDArray< pixel_mask_t > & mask_from_status (const event_t &)
 Return calib_pars()->mask_from_status(query(evt)).
 
virtual const NDArray< pixel_mask_t > & mask_edges (const event_t &, const size_t &nnbrs=8)
 Return calib_pars()->mask_edges(query(evt)); nnbrs is ignored.
 
virtual const NDArray< pixel_mask_t > & mask_neighbors (const event_t &, const size_t &nrows=1, const size_t &ncols=1)
 Return calib_pars()->mask_neighbors(query(evt)); nrows and ncols are ignored.
 
virtual const NDArray< pixel_mask_t > & mask_bits (const event_t &, const size_t &mbits=0177777)
 Return calib_pars()->mask_bits(query(evt)); mbits is ignored.
 
virtual const NDArray< pixel_mask_t > & mask (const event_t &, const bool &calib=true, const bool &sataus=true, const bool &edges=true, const bool &neighbors=true)
 Return calib_pars()->mask(query(evt)); the bool flags are ignored.
 
virtual const NDArray< raw_t > & raw (const event_t &)
 Default: logs the _default_msg() warning and returns a private array that this class never fills.
 
virtual const NDArray< image_t > & image (const event_t &)
 Default: logs the _default_msg() warning and returns a private array that this class never fills.
 
virtual const NDArray< image_t > & image (const event_t &, const NDArray< image_t > &nda)
 Default: logs the _default_msg() warning and returns the private image array; nda is not used.
 
virtual const NDArray< image_t > & array_from_image (const event_t &, const NDArray< image_t > &)
 Default: logs the _default_msg() warning and returns the private image array; the input array is not used.
 
virtual void move_geo (const event_t &, const pixel_size_t &dx, const pixel_size_t &dy, const pixel_size_t &dz)
 Default: only logs the _default_msg() warning.
 
virtual void tilt_geo (const event_t &, const tilt_angle_t &dtx, const tilt_angle_t &dty, const tilt_angle_t &dtz)
 Default: only logs the _default_msg() warning.
 
virtual const geometry_t & geometry (const event_t &)
 access to geometry
 
virtual NDArray< const pixel_coord_t > & coords (const event_t &, const size_t &axis=0)
 Return calib_pars()->coords(query(evt)); axis is ignored (CalibPars::coords() takes the axis from the Query's AXISNUM).
 
virtual NDArray< const pixel_idx_t > & indexes (const event_t &, const size_t &axis=0)
 Return calib_pars()->indexes(query(evt)); axis is ignored (CalibPars::indexes() takes the axis from the Query's AXISNUM).
 
virtual NDArray< const pixel_size_t > & pixel_size (const event_t &, const size_t &axis=0)
 Return calib_pars()->pixel_size(query(evt)); axis is ignored.
 
virtual NDArray< const pixel_size_t > & image_xaxis (const event_t &)
 Return calib_pars()->image_xaxis(query(evt)).
 
virtual NDArray< const pixel_size_t > & image_yaxis (const event_t &)
 Return calib_pars()->image_yaxis(query(evt)).
 
calib::CalibPars * calib_pars ()
 Return the CalibPars object, creating it on first use with calib::getCalibPars(detname()), which throws for detector types it does not support.
 
calib::CalibPars * calib_pars_updated ()
 Delete the current CalibPars object (if any) and return a new one from calib_pars().
 
const std::string & expname ()
 Return the experiment name (initially "NOT_DEFINED").
 
const std::string & calibtype ()
 Return the calibration type string (initially "pedestals").
 
const unsigned runnum ()
 Return the run number (initially 0).
 
void set_expname (const std::string &expname)
 Set the experiment name used by query().
 
void set_runnum (unsigned runnum)
 Set the run number used by query().
 
void set_calibtype (const std::string &calibtype)
 Set the calibration type string used by query().
 
Query & query ()
 Refresh the stored Query with set_paremeters(detname, expname, calibtype, runnum) and return it.
 
Query & query (const event_t &)
 Return the stored Query unchanged; evt is ignored.
 
 AreaDetector (const AreaDetector &)=delete
 Copy construction is disabled.
 
AreaDetector & operator= (const AreaDetector &)=delete
 Copy assignment is disabled.
 
- Public Member Functions inherited from detector::Detector
 Detector (const std::string &detname="NoDevice", const DETTYPE &dettype=UNDEFINED_DETECTOR)
 Store detname and dettype; if dettype is UNDEFINED_DETECTOR it is looked up from detname with find_dettype().
 
virtual ~Detector ()
 Destructor; only logs a debug message.
 
const std::string & detname ()
 Return the detector name.
 
const DETTYPE & dettype ()
 Return the detector type.
 
 Detector (const Detector &)=delete
 Copy construction is disabled.
 
Detector & operator= (const Detector &)=delete
 Copy assignment is disabled.
 

Additional Inherited Members

- Public Attributes inherited from detector::AreaDetector
int64_t maxModulesPerDetector
 Not initialized by AreaDetector; set by subclasses (e.g. from the config field "MaxModulesPerDetector" in AreaDetectorCspad).
 
int64_t numberOfModules
 Not initialized by AreaDetector; set by subclasses. Used by ndim() and shape().
 
int64_t numberOfRows
 Not initialized by AreaDetector; set by subclasses. Used by shape().
 
int64_t numberOfColumns
 Not initialized by AreaDetector; set by subclasses. Used by shape().
 
int64_t numberOfPixels
 Not initialized by AreaDetector; set by subclasses. Returned by size().
 
- Protected Member Functions inherited from detector::AreaDetector
void _set_index_data (XtcData::DescData &ddata, const char *dataname)
 
- Protected Attributes inherited from detector::AreaDetector
shape_t * _shape
 
ConfigIter * _pconfit = 0
 
DataIter * _pdatait = 0
 
int _ind_data
 

Detailed Description

AreaDetector subclass for Opal: finds the indexes of the Opal config and data fields by name, gives typed accessors for them, and provides raw() and pedestal-subtracted calib() arrays.

Constructor & Destructor Documentation

◆ AreaDetectorOpal() [1/3]

detector::AreaDetectorOpal::AreaDetectorOpal ( const std::string &  detname,
XtcData::ConfigIter &  configiter 
)

Construct with AreaDetector(detname, configiter) and call _set_indexes_config(configiter).

◆ AreaDetectorOpal() [2/3]

detector::AreaDetectorOpal::AreaDetectorOpal ( const std::string &  detname)

Construct with AreaDetector(detname); no ConfigIter is stored.

The trailing comment says _set_indexes_config(ci) is needed afterwards, but that method returns at once when no ConfigIter is stored.

◆ AreaDetectorOpal() [3/3]

detector::AreaDetectorOpal::AreaDetectorOpal ( )

Default constructor (AreaDetector()).

◆ ~AreaDetectorOpal()

virtual detector::AreaDetectorOpal::~AreaDetectorOpal ( )
virtual

Destructor; only logs a debug message.

Member Function Documentation

◆ _class_msg()

void detector::AreaDetectorOpal::_class_msg ( const std::string &  msg = std::string())

Log an INFO message "In AreaDetectorOpal::" followed by msg.

◆ _int_pixel_data()

Array< uint8_t > detector::AreaDetectorOpal::_int_pixel_data ( XtcData::DataIter &  di)
inline

Return data field "_int_pixel_data" of di as Array<uint8_t>, at the index recorded by _set_indexes_data() (0 if not found).

◆ _set_indexes_config()

virtual void detector::AreaDetectorOpal::_set_indexes_config ( XtcData::ConfigIter &  )
virtual

Return at once if no ConfigIter is stored.

Otherwise store configiter, record the index of each known config field (Version, TypeId, ..., output_lookup_table) by name, and set maxModulesPerDetector = 1, numberOfModules = 1, numberOfRows = Row_Pixels(), numberOfColumns = Column_Pixels() and numberOfPixels to their product.

Reimplemented from detector::AreaDetector.

◆ _set_indexes_data()

virtual void detector::AreaDetectorOpal::_set_indexes_data ( XtcData::DataIter &  )
virtual

Return at once if a DataIter was already recorded.

Otherwise record dataiter, print each data field (index, name, rank, type) to stdout, and record the index of each known data field (data_Version, ..., data16) by name. Uses the NamesLookup of the stored ConfigIter.

Reimplemented from detector::AreaDetector.

◆ Binning()

int64_t detector::AreaDetectorOpal::Binning ( )
inline

Return config field "Binning" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ black_level()

int64_t detector::AreaDetectorOpal::black_level ( )
inline

Return config field "black_level" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ calib() [1/3]

virtual const NDArray< calib_t > & detector::AreaDetectorOpal::calib ( const event_t &  evt)
inlinevirtual

Forward to AreaDetector::calib(evt), a default that logs a warning; declared here to avoid a hidden-overload warning.

Reimplemented from detector::AreaDetector.

◆ calib() [2/3]

virtual NDArray< opal_calib_t > & detector::AreaDetectorOpal::calib ( XtcData::DataIter &  di)
inlinevirtual

Call _set_indexes_data(di), then return calib(descdata(di)).

◆ calib() [3/3]

virtual NDArray< opal_calib_t > & detector::AreaDetectorOpal::calib ( XtcData::DescData &  )
virtual

Prepare the raw array as raw(dd) does, then fill and return an internal float array with raw minus pedestals, element by element.

The pedestals pointer is set only by load_calib_constants(); it is not checked.

◆ Column_Pixels()

int64_t detector::AreaDetectorOpal::Column_Pixels ( )
inline

Return config field "Column_Pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ data16()

Array< uint16_t > detector::AreaDetectorOpal::data16 ( XtcData::DataIter &  di)
inline

Return data field "data16" of di as Array<uint16_t>, at the index recorded by _set_indexes_data() (0 if not found).

◆ data8()

Array< uint8_t > detector::AreaDetectorOpal::data8 ( XtcData::DataIter &  di)
inline

Return data field "data8" of di as Array<uint8_t>, at the index recorded by _set_indexes_data() (0 if not found).

◆ data_TypeId()

int64_t detector::AreaDetectorOpal::data_TypeId ( XtcData::DataIter &  di)
inline

Return data field "data_TypeId" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ data_Version()

int64_t detector::AreaDetectorOpal::data_Version ( XtcData::DataIter &  di)
inline

Return data field "data_Version" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ defect_pixel_correction_enabled()

int64_t detector::AreaDetectorOpal::defect_pixel_correction_enabled ( )
inline

Return config field "defect_pixel_correction_enabled" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ Depth()

int64_t detector::AreaDetectorOpal::Depth ( )
inline

Return config field "Depth" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ depth()

int64_t detector::AreaDetectorOpal::depth ( XtcData::DataIter &  di)
inline

Return data field "depth" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ depth_bytes()

int64_t detector::AreaDetectorOpal::depth_bytes ( XtcData::DataIter &  di)
inline

Return data field "depth_bytes" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ detid()

virtual void detector::AreaDetectorOpal::detid ( std::ostream &  os,
const int  ind = -1 
)
virtual

Write ind to os zero-padded to a width of 4 characters.

Reimplemented from detector::AreaDetector.

◆ gain_percent()

int64_t detector::AreaDetectorOpal::gain_percent ( )
inline

Return config field "gain_percent" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ height()

int64_t detector::AreaDetectorOpal::height ( XtcData::DataIter &  di)
inline

Return data field "height" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ load_calib_constants()

virtual void detector::AreaDetectorOpal::load_calib_constants ( )
virtual

Set the calib type to "pedestals", get pedestals_d() (double constants from the CalibPars backend), print them to stdout and keep a pointer to them for calib().

Reimplemented from detector::AreaDetector.

◆ LUT_Size()

int64_t detector::AreaDetectorOpal::LUT_Size ( )
inline

Return config field "LUT_Size" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ Mirroring()

int64_t detector::AreaDetectorOpal::Mirroring ( )
inline

Return config field "Mirroring" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ number_of_defect_pixels()

int64_t detector::AreaDetectorOpal::number_of_defect_pixels ( )
inline

Return config field "number_of_defect_pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ offset() [1/2]

virtual const NDArray< pixel_offset_t > & detector::AreaDetectorOpal::offset ( const event_t &  evt)
inlinevirtual

Forward to AreaDetector::offset(evt); declared here to avoid a hidden-overload warning.

Reimplemented from detector::AreaDetector.

◆ offset() [2/2]

int64_t detector::AreaDetectorOpal::offset ( XtcData::DataIter &  di)
inline

Return data field "offset" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.

◆ output_lookup_table()

Array< uint16_t > detector::AreaDetectorOpal::output_lookup_table ( )
inline

Return config field "output_lookup_table" as Array<uint16_t>, at the index recorded by _set_indexes_config() (0 if not found).

◆ output_lookup_table_enabled()

int64_t detector::AreaDetectorOpal::output_lookup_table_enabled ( )
inline

Return config field "output_lookup_table_enabled" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ Output_LUT_Size()

int64_t detector::AreaDetectorOpal::Output_LUT_Size ( )
inline

Return config field "Output_LUT_Size" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ output_mirroring()

int64_t detector::AreaDetectorOpal::output_mirroring ( )
inline

Return config field "output_mirroring" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ output_offset()

int64_t detector::AreaDetectorOpal::output_offset ( )
inline

Return config field "output_offset" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ output_resolution()

int64_t detector::AreaDetectorOpal::output_resolution ( )
inline

Return config field "output_resolution" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ output_resolution_bits()

int64_t detector::AreaDetectorOpal::output_resolution_bits ( )
inline

Return config field "output_resolution_bits" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ print_config()

virtual const void detector::AreaDetectorOpal::print_config ( )
virtual

Print detname, dettype, every config value, the derived counts, detid(), ndim() and size() to stdout.

Reimplemented from detector::AreaDetector.

◆ print_config_indexes()

virtual const void detector::AreaDetectorOpal::print_config_indexes ( )
virtual

Print the recorded index of every config field to stdout.

◆ print_data()

virtual const void detector::AreaDetectorOpal::print_data ( XtcData::DataIter &  )
virtual

Call _set_indexes_data(di) if no DataIter is recorded yet, then print every data value and array of di to stdout.

Reimplemented from detector::AreaDetector.

◆ print_data_indexes()

virtual const void detector::AreaDetectorOpal::print_data_indexes ( XtcData::DataIter &  )
virtual

Call _set_indexes_data(di) if no DataIter is recorded yet, then print the recorded data-field indexes to stdout (the first two lines show the config indexes of Version and TypeId).

◆ raw() [1/2]

virtual NDArray< opal_raw_t > & detector::AreaDetectorOpal::raw ( XtcData::DataIter &  di)
inlinevirtual

Call _set_indexes_data(di), then return raw(descdata(di)).

◆ raw() [2/2]

virtual NDArray< opal_raw_t > & detector::AreaDetectorOpal::raw ( XtcData::DescData &  )
virtual

Reserve size() elements in the internal raw array, set its shape from shape() and ndim(), and return it.

No data is copied from dd (the copy code in AreaDetectorOpal.cc is commented out), so the array contents are not filled from the event.

◆ Row_Pixels()

int64_t detector::AreaDetectorOpal::Row_Pixels ( )
inline

Return config field "Row_Pixels" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ TypeId()

int64_t detector::AreaDetectorOpal::TypeId ( )
inline

Return config field "TypeId" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ Version()

int64_t detector::AreaDetectorOpal::Version ( )
inline

shape, size, ndim of data from configuration object

access to calibration constants

◆ vertical_binning()

int64_t detector::AreaDetectorOpal::vertical_binning ( )
inline

Return config field "vertical_binning" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ vertical_remapping()

int64_t detector::AreaDetectorOpal::vertical_remapping ( )
inline

Return config field "vertical_remapping" as int64_t, at the index recorded by _set_indexes_config() (0 if not found); aborts if that field is not INT64.

◆ width()

int64_t detector::AreaDetectorOpal::width ( XtcData::DataIter &  di)
inline

Return data field "width" of di as int64_t, at the index recorded by _set_indexes_data() (0 if not found); aborts if that field is not INT64.


The documentation for this class was generated from the following file: