Skip to content

CalibrationConstants

#include <xalgospp/detector/lcls2/calibdb.hh>
struct CalibrationConstants

Defined 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.

Name Kind Owner
data variable Declared here
dtype variable Declared here
shape variable Declared here
metadata variable Declared here
to_ncarray function Declared here
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 > data

Defined in src/lib/xalgospp/detector/lcls2/calibdb.hh:104

Raw byte stream.


std::string dtype

Defined in src/lib/xalgospp/detector/lcls2/calibdb.hh:105

The datatype of each element.


std::vector< std::size_t > shape

Defined in src/lib/xalgospp/detector/lcls2/calibdb.hh:106

The final shape the byte stream should take.


CalibDocMetadata metadata

Defined in src/lib/xalgospp/detector/lcls2/calibdb.hh:107

The associated metadata for this set of constants.

Return Name Description
ncarray::NCArray to_ncarray static Convert the calibration data to an 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.

An NCArrayView over the calibration data.