CbmRoot
|
The class describes a 2D - measurement (x, y) in XY coordinate system. More...
#include <KfMeasurementXy.h>
Public Member Functions | |
MeasurementXy ()=default | |
default constructor | |
MeasurementXy (DataT x, DataT y, DataT dx2, DataT dy2, DataT dxy, DataT ndfX, DataT ndfY) | |
template<typename DataTb > | |
void | Set (const MeasurementXy< DataTb > &m) |
void | Set (const MeasurementXy< fvec > &m, const int im) |
template<typename DataTb > | |
void | SetOneEntry (const int i, const MeasurementXy< DataTb > &m) |
void | SetOneEntry (const int i, const MeasurementXy< fvec > &m, const int im) |
void | SetX (DataT x) |
void | SetY (DataT y) |
void | SetDx2 (DataT dx2) |
void | SetDy2 (DataT dy2) |
void | SetDxy (DataT dxy) |
void | SetNdfX (DataT ndfX) |
void | SetNdfY (DataT ndfY) |
void | SetCov (DataT dx2, DataT dxy, DataT dy2) |
DataT | X () const |
DataT | Y () const |
DataT | Dx2 () const |
DataT | Dy2 () const |
DataT | Dxy () const |
DataT | NdfX () const |
DataT | NdfY () const |
DataT & | X () |
DataT & | Y () |
DataT & | Dx2 () |
DataT & | Dy2 () |
DataT & | Dxy () |
DataT & | NdfX () |
DataT & | NdfY () |
std::string | ToString (int indentLevel=0) const |
bool | IsFinite () const |
Checks, if all fields are finite. | |
bool | IsUndefined () const |
Checks, if some fields are undefined. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Private Member Functions | |
template<typename TdataB , bool TDoAllA, bool TDoAllB> | |
void | CopyBase (const int ia, const MeasurementXy< TdataB > &Tb, const int ib) |
Copies all/one entries from the other class. | |
Private Attributes | |
DataT | fX {0.} |
x coordinate of the measurement | |
DataT | fY {0.} |
y coordinate of the measurement | |
DataT | fDx2 {1.} |
rms^2 of the x coordinate measurement | |
DataT | fDy2 {1.} |
rms^2 of the y coordinate measurement | |
DataT | fDxy {0.} |
covariance of the x and y coordinate measurements | |
DataT | fNdfX = 0. |
ndf for the x coordinate measurement | |
DataT | fNdfY = 0. |
ndf for the y coordinate measurement | |
Friends | |
class | boost::serialization::access |
Serialization function. | |
The class describes a 2D - measurement (x, y) in XY coordinate system.
The measurement has a finite resolution, i.e. the measurement is not a point, but a distribution with a certain rms. The measurement components may be used in the chi2 calculation or not The measurement may be a SIMD vector of values, when DataT is fvec type
Definition at line 28 of file KfMeasurementXy.h.
|
default |
default constructor
|
inline |
constructor
x | x coordinate of the measurement |
y | y coordinate of the measurement |
dx2 | rms^2 of the x coordinate measurement |
dy2 | rms^2 of the y coordinate measurement |
dxy | covariance of the x and y coordinate measurements |
ndfX | number of degrees of freedom for the x coordinate measurement if ndfX == 1, the measurement is used in fit and in the chi2 calculation if ndfX == 0, the measurement is used in fit, but not used in the chi2 calculation |
ndfY | number of degrees of freedom for the y coordinate measurement if ndfY == 1, the measurement is used in fit and in the chi2 calculation if ndfY == 0, the measurement is used in fit, but not used in the chi2 calculation |
Definition at line 47 of file KfMeasurementXy.h.
|
inlineprivate |
Copies all/one entries from the other class.
TdataB | Type of the other class |
TDoAllA | If true, all entries of the current class must be set |
TDoAllB | If true, all entries of the other class must be used |
ia | Index of SIMD vector element of the current class |
Tb | Other class |
ib | Index of SIMD vector element of the other class |
Definition at line 200 of file KfMeasurementXy.h.
References cbm::algo::kf::MeasurementXy< DataT >::Dx2(), cbm::algo::kf::MeasurementXy< DataT >::Dxy(), cbm::algo::kf::MeasurementXy< DataT >::Dy2(), cbm::algo::kf::MeasurementXy< DataT >::NdfX(), cbm::algo::kf::MeasurementXy< DataT >::NdfY(), cbm::algo::kf::MeasurementXy< DataT >::X(), and cbm::algo::kf::MeasurementXy< DataT >::Y().
|
inline |
Definition at line 118 of file KfMeasurementXy.h.
|
inline |
Definition at line 107 of file KfMeasurementXy.h.
Referenced by cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), cbm::algo::ca::TripletConstructor::FindTriplets(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), and CbmRecoQaTask::View::Load().
|
inline |
Definition at line 120 of file KfMeasurementXy.h.
|
inline |
Definition at line 109 of file KfMeasurementXy.h.
Referenced by cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), FilterFirst(), cbm::algo::ca::TripletConstructor::FindTriplets(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 119 of file KfMeasurementXy.h.
|
inline |
Definition at line 108 of file KfMeasurementXy.h.
Referenced by cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), cbm::algo::ca::TripletConstructor::FindTriplets(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), and CbmRecoQaTask::View::Load().
|
inline |
Checks, if all fields are finite.
Definition at line 132 of file KfMeasurementXy.h.
|
inline |
Checks, if some fields are undefined.
Definition at line 139 of file KfMeasurementXy.h.
|
inline |
Definition at line 121 of file KfMeasurementXy.h.
|
inline |
Definition at line 110 of file KfMeasurementXy.h.
Referenced by cbm::algo::kf::TrackKalmanFilter< double >::ApproximateBetheBloch(), cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 122 of file KfMeasurementXy.h.
|
inline |
Definition at line 111 of file KfMeasurementXy.h.
Referenced by cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 149 of file KfMeasurementXy.h.
|
inline |
Set all SIMD entries from all SIMD entries of the other class It works for scalar and fvec types, except of the case when DataT is scalar and TdataB is fvec.
Definition at line 63 of file KfMeasurementXy.h.
|
inline |
Set all SIMD entries from one SIMD entry of the other class It also works when DataT is scalar
Definition at line 70 of file KfMeasurementXy.h.
|
inline |
Definition at line 98 of file KfMeasurementXy.h.
Referenced by cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 93 of file KfMeasurementXy.h.
Referenced by CbmKfTrackFitter::CreateGlobalTrack(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 95 of file KfMeasurementXy.h.
Referenced by CbmKfTrackFitter::CreateGlobalTrack(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 94 of file KfMeasurementXy.h.
Referenced by CbmKfTrackFitter::CreateGlobalTrack(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Definition at line 96 of file KfMeasurementXy.h.
Referenced by CbmKfTrackFitter::CreateGlobalTrack(), and CbmL1PFFitter::Fit().
|
inline |
Definition at line 97 of file KfMeasurementXy.h.
Referenced by CbmKfTrackFitter::CreateGlobalTrack(), and CbmL1PFFitter::Fit().
|
inline |
Set one SIMD entry from one SIMD entry of the other class It only works when DataT is fvec, TdataB is scalar
Definition at line 75 of file KfMeasurementXy.h.
|
inline |
Set one SIMD entry from one SIMD entry of the other class It only works when DataT is fvec, TdataB is fvec
Definition at line 82 of file KfMeasurementXy.h.
|
inline |
Setters and getters
Definition at line 91 of file KfMeasurementXy.h.
References x.
Referenced by CbmBbaAlignmentTask::ApplyAlignment(), CbmKfTrackFitter::CreateGlobalTrack(), and CbmL1PFFitter::Fit().
|
inline |
Definition at line 92 of file KfMeasurementXy.h.
References y.
Referenced by CbmBbaAlignmentTask::ApplyAlignment(), CbmKfTrackFitter::CreateGlobalTrack(), and CbmL1PFFitter::Fit().
std::string cbm::algo::kf::MeasurementXy< DataT >::ToString | ( | int | indentLevel = 0 | ) | const |
Methods for debugging String representation of class contents
indentLevel | number of indent characters in the output |
Definition at line 19 of file KfMeasurementXy.cxx.
|
inline |
references, to ease assignment to SIMD vector components when DataT has fvec type
Definition at line 116 of file KfMeasurementXy.h.
|
inline |
Definition at line 105 of file KfMeasurementXy.h.
Referenced by CbmBbaAlignmentTask::ApplyAlignment(), cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), cbm::algo::kf::TrackKalmanFilter< DataT >::FilterXY(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), and CbmRecoQaTask::View::Load().
|
inline |
Definition at line 117 of file KfMeasurementXy.h.
|
inline |
Definition at line 106 of file KfMeasurementXy.h.
Referenced by CbmBbaAlignmentTask::ApplyAlignment(), cbm::algo::kf::MeasurementXy< DataT >::CopyBase(), CbmBbaAlignmentTask::Exec(), FilterFirst(), CbmBbaAlignmentTask::Finish(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), and CbmRecoQaTask::View::Load().
|
friend |
Serialization function.
Definition at line 30 of file KfMeasurementXy.h.
|
private |
rms^2 of the x coordinate measurement
Definition at line 182 of file KfMeasurementXy.h.
|
private |
covariance of the x and y coordinate measurements
Definition at line 184 of file KfMeasurementXy.h.
|
private |
rms^2 of the y coordinate measurement
Definition at line 183 of file KfMeasurementXy.h.
|
private |
ndf for the x coordinate measurement
number of degrees of freedom (used for chi2 calculation) if ndf == 1, the measurement is used in the chi2 calculation if ndf == 0, the measurement is not used in the chi2 calculation
Definition at line 190 of file KfMeasurementXy.h.
|
private |
ndf for the y coordinate measurement
Definition at line 191 of file KfMeasurementXy.h.
|
private |
|
private |
y coordinate of the measurement
Definition at line 181 of file KfMeasurementXy.h.