14#include <boost/serialization/access.hpp>
27 template<
typename DataT>
30 friend class boost::serialization::access;
47 MeasurementXy(DataT
x, DataT
y, DataT dx2, DataT dy2, DataT dxy, DataT ndfX, DataT ndfY)
62 template<
typename DataTb>
74 template<
typename DataTb>
98 void SetCov(DataT dx2, DataT dxy, DataT dy2)
105 DataT
X()
const {
return fX; }
106 DataT
Y()
const {
return fY; }
129 std::string
ToString(
int indentLevel = 0)
const;
147 friend class boost::serialization::access;
148 template<
class Archive>
168 template<
typename TdataB,
bool TDoAllA,
bool TDoAllB>
198 template<
typename TdataA>
199 template<
typename TdataB,
bool TDoAllA,
bool TDoAllB>
202 auto copy = [&](TdataA& a,
const TdataB& b) {
std::string ToString(CbmCutId id)
Convert CbmCutId to a string representation.
Common constant definitions for the Kalman Filter library.
DataT fX
x coordinate of the measurement
void Set(const MeasurementXy< DataTb > &m)
MeasurementXy()=default
default constructor
DataT fDx2
rms^2 of the x coordinate measurement
DataT fDxy
covariance of the x and y coordinate measurements
bool IsUndefined() const
Checks, if some fields are undefined.
DataT fNdfX
ndf for the x coordinate measurement
MeasurementXy(DataT x, DataT y, DataT dx2, DataT dy2, DataT dxy, DataT ndfX, DataT ndfY)
void SetOneEntry(const int i, const MeasurementXy< fvec > &m, const int im)
DataT fY
y coordinate of the measurement
void SetCov(DataT dx2, DataT dxy, DataT dy2)
DataT fNdfY
ndf for the y coordinate measurement
void Set(const MeasurementXy< fvec > &m, const int im)
void serialize(Archive &ar, const unsigned int)
void CopyBase(const int ia, const MeasurementXy< TdataB > &Tb, const int ib)
Copies all/one entries from the other class.
bool IsFinite() const
Checks, if all fields are finite.
void SetOneEntry(const int i, const MeasurementXy< DataTb > &m)
DataT fDy2
rms^2 of the y coordinate measurement
static void CopyEntries(TdataA &a, int ia, const TdataB &b, int ib)
bool IsFinite(const T &val)
Checks whether a variable of a particular type is finite.
bool IsUndefined(const T &val)
Checks whether a variable of a particular type defined.
class cbm::algo::kf::MeasurementTime _fvecalignment