|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Calibration constants and geometry for one detector. More...
#include <CalibPars.hh>
Inherited by calib::CalibParsEpix100a.
Public Types | |
| typedef geometry::AXIS | AXIS |
| Alias for geometry::AXIS. | |
Public Member Functions | |
| CalibPars (const char *detname="Undefined detname", const DBTYPE &dbtype=DBWEB) | |
| Store detname and create the DB backend with getCalibParsDB(dbtype), which gives NULL for types it does not implement. | |
| virtual | ~CalibPars () |
| Call deleteGeometryAccess(); the DB backend is not deleted. | |
| const std::string & | detname () |
| Return the detector name. | |
| virtual const NDArray< common_mode_t > & | common_mode (Query &) |
| access to calibration constants | |
| virtual const NDArray< pedestals_t > & | pedestals (Query &) |
| Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< double > & | pedestals_d (Query &) |
| Return the DB backend's get_ndarray_double(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_rms_t > & | rms (Query &) |
| Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_status_t > & | status (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_gain_t > & | gain (Query &) |
| Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_offset_t > & | offset (Query &) |
| Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_bkgd_t > & | background (Query &) |
| Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask_calib (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask_from_status (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask_edges (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask_neighbors (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask_bits (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| virtual const NDArray< pixel_mask_t > & | mask (Query &) |
| Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here). | |
| geometry::GeometryAccess * | geometryAccess (Query &) |
| access to geometry | |
| void | deleteGeometryAccess () |
| Delete the GeometryAccess object if one exists. | |
| virtual const geometry_t & | geometry_str (Query &) |
| Return the DB backend's get_string(q) and log a debug message; q is passed unchanged. | |
| virtual NDArray< const pixel_coord_t > & | coords (Query &) |
| Return geometryAccess(q)->get_pixel_coords(axis), with axis taken from q's AXISNUM parameter. | |
| virtual NDArray< const pixel_idx_t > & | indexes (Query &) |
| Return geometryAccess(q)->get_pixel_coord_indexes(axis), with axis taken from q's AXISNUM parameter. | |
| virtual NDArray< const pixel_size_t > & | pixel_size (Query &) |
| Default stub: logs a warning that the method (named image_size in the message) should be re-implemented in a derived class, and returns an internal array that is never filled. | |
| virtual NDArray< const pixel_area_t > & | pixel_area (Query &) |
| Return geometryAccess(q)->get_pixel_areas(). | |
| virtual NDArray< const pixel_mask_t > & | mask_geo (Query &) |
| Return geometryAccess(q)->get_pixel_mask(mbits), with mbits taken from q's MASKBITSGEO parameter. | |
| virtual NDArray< const pixel_size_t > & | image_xaxis (Query &) |
| Default stub: logs a warning that it should be re-implemented in a derived class and returns an internal array that is never filled. | |
| virtual NDArray< const pixel_size_t > & | image_yaxis (Query &) |
| Default stub: logs a warning that it should be re-implemented in a derived class and returns an internal array that is never filled. | |
| CalibParsDB * | calibparsdb () |
| Return the DB backend pointer (NULL if getCalibParsDB() did not implement the type). | |
| CalibPars (const CalibPars &)=delete | |
| Copy construction is disabled. | |
| CalibPars & | operator= (const CalibPars &)=delete |
| Copy assignment is disabled. | |
| CalibPars () | |
| Default constructor with an empty body: the DB and GeometryAccess pointers are left uninitialized, so destroying such an object deletes an uninitialized pointer. | |
Protected Attributes | |
| NDArray< common_mode_t > | _common_mode |
| NDArray< pedestals_t > | _pedestals |
| NDArray< pixel_rms_t > | _pixel_rms |
| NDArray< pixel_status_t > | _pixel_status |
| NDArray< pixel_gain_t > | _pixel_gain |
| NDArray< pixel_offset_t > | _pixel_offset |
| NDArray< pixel_bkgd_t > | _pixel_bkgd |
| NDArray< pixel_mask_t > | _pixel_mask |
| NDArray< const pixel_size_t > | _pixel_size |
| geometry_t | _geometry |
| const std::string | _detname |
| CalibParsDB * | _calibparsdb |
| geometry::GeometryAccess * | _geometryaccess |
Calibration constants and geometry for one detector.
Constants come from a CalibParsDB backend created from dbtype by getCalibParsDB(). Geometry arrays come from a GeometryAccess object built on first use from the string returned by geometry_str().
| typedef geometry::AXIS calib::CalibPars::AXIS |
Alias for geometry::AXIS.
| calib::CalibPars::CalibPars | ( | const char * | detname = "Undefined detname", |
| const DBTYPE & | dbtype = DBWEB |
||
| ) |
Store detname and create the DB backend with getCalibParsDB(dbtype), which gives NULL for types it does not implement.
No GeometryAccess is created yet.
|
virtual |
Call deleteGeometryAccess(); the DB backend is not deleted.
|
delete |
Copy construction is disabled.
|
inline |
Default constructor with an empty body: the DB and GeometryAccess pointers are left uninitialized, so destroying such an object deletes an uninitialized pointer.
|
virtual |
Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
inline |
Return the DB backend pointer (NULL if getCalibParsDB() did not implement the type).
|
virtual |
access to calibration constants
|
virtual |
Return geometryAccess(q)->get_pixel_coords(axis), with axis taken from q's AXISNUM parameter.
| void calib::CalibPars::deleteGeometryAccess | ( | ) |
Delete the GeometryAccess object if one exists.
The pointer is not reset, so a later geometryAccess() call would return the deleted object.
|
inline |
Return the detector name.
|
virtual |
Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_string(q) and log a debug message; q is passed unchanged.
The trailing comment says it is the content of the geometry calibration file.
| geometry::GeometryAccess * calib::CalibPars::geometryAccess | ( | Query & | ) |
access to geometry
|
virtual |
Default stub: logs a warning that it should be re-implemented in a derived class and returns an internal array that is never filled.
|
virtual |
Default stub: logs a warning that it should be re-implemented in a derived class and returns an internal array that is never filled.
|
virtual |
Return geometryAccess(q)->get_pixel_coord_indexes(axis), with axis taken from q's AXISNUM parameter.
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return geometryAccess(q)->get_pixel_mask(mbits), with mbits taken from q's MASKBITSGEO parameter.
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
Return the DB backend's get_ndarray_double(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return geometryAccess(q)->get_pixel_areas().
|
virtual |
Default stub: logs a warning that the method (named image_size in the message) should be re-implemented in a derived class, and returns an internal array that is never filled.
|
virtual |
Return the DB backend's get_ndarray_float(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
virtual |
Return the DB backend's get_ndarray_uint16(q) and log a debug message; q is passed unchanged (its CALIBTYPE is not set here).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |