CalibrationConstants
CalibrationConstants
Section titled “CalibrationConstants”#include <xalgospp/detector/lcls2/calibdb.hh>struct CalibrationConstantsDefined in src/lib/xalgospp/detector/lcls2/calibdb.hh:103
A descriptor for a single kind of calibration constants.
This struct is used when retrieving raw constants from the LCLS2 calibration database endpoints. It holds the raw bytes along with information on the underlying datatype and the shape the bytes should be reformed into.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
data |
variable |
Declared here |
dtype |
variable |
Declared here |
shape |
variable |
Declared here |
metadata |
variable |
Declared here |
to_ncarray |
function |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
std::vector< std::uint8_t > |
data |
Raw byte stream. |
std::string |
dtype |
The datatype of each element. |
std::vector< std::size_t > |
shape |
The final shape the byte stream should take. |
CalibDocMetadata |
metadata |
The associated metadata for this set of constants. |
std::vector< std::uint8_t > dataDefined in src/lib/xalgospp/detector/lcls2/calibdb.hh:104
Raw byte stream.
std::string dtypeDefined in src/lib/xalgospp/detector/lcls2/calibdb.hh:105
The datatype of each element.
std::vector< std::size_t > shapeDefined in src/lib/xalgospp/detector/lcls2/calibdb.hh:106
The final shape the byte stream should take.
metadata
Section titled “metadata”CalibDocMetadata metadataDefined in src/lib/xalgospp/detector/lcls2/calibdb.hh:107
The associated metadata for this set of constants.
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
ncarray::NCArray |
to_ncarray static |
Convert the calibration data to an NCArray. |
to_ncarray
Section titled “to_ncarray”static
static ncarray::NCArray to_ncarray(const CalibrationConstants & consts)Defined in src/lib/xalgospp/detector/lcls2/calibdb.hh:114
Convert the calibration data to an NCArray.
Returns
Section titled “Returns”An NCArrayView over the calibration data.