CbmRoot
|
A class to convert XY coordinates to UV coordinates. More...
#include <CaUvConverter.h>
Public Member Functions | |
CaUvConverter (double phiU, double phiV) | |
construct from U,V angles | |
CaUvConverter (double phiU, double dx2, double dxy, double dy2) | |
construct from U angle and XY covariance matrix | |
void | SetFromUV (double phiU, double phiV) |
construct from U,V angles | |
void | SetFromXYCovMatrix (double phiU, double dx2, double dxy, double dy2) |
construct from U angle and XY covariance matrix | |
std::pair< double, double > | ConvertXYtoUV (double x, double y) const |
Conversion function (x,y) -> (u,v) | |
std::pair< double, double > | ConvertUVtoXY (double u, double v) const |
Conversion function (x,y) -> (u,v) | |
std::tuple< double, double, double > | ConvertCovMatrixUVtoXY (double du2, double duv, double dv2) const |
Conversion function (du2, duv, dv2) -> (dx2, dxy, dy2) | |
std::tuple< double, double, double > | ConvertCovMatrixXYtoUV (double dx2, double dxy, double dy2) const |
Conversion function (dx2, dxy, dy2) -> (du2, duv, dv2) | |
Private Attributes | |
double | fcosU {cbm::algo::ca::constants::Undef<double>} |
U coordinate in XY. | |
double | fsinU {cbm::algo::ca::constants::Undef<double>} |
double | fcosV {cbm::algo::ca::constants::Undef<double>} |
V coordinate in XY. | |
double | fsinV {cbm::algo::ca::constants::Undef<double>} |
double | fcosX {cbm::algo::ca::constants::Undef<double>} |
X coordinate in UV. | |
double | fsinX {cbm::algo::ca::constants::Undef<double>} |
double | fcosY {cbm::algo::ca::constants::Undef<double>} |
Y coordinate in UV. | |
double | fsinY {cbm::algo::ca::constants::Undef<double>} |
A class to convert XY coordinates to UV coordinates.
Definition at line 15 of file CaUvConverter.h.
|
inline |
|
inline |
construct from U angle and XY covariance matrix
Definition at line 22 of file CaUvConverter.h.
References SetFromXYCovMatrix().
|
inline |
Conversion function (du2, duv, dv2) -> (dx2, dxy, dy2)
du2 | Variance of U-coordinate measurement |
duv | Covariance of U & V - coordinate measurement |
dv2 | Variance of V-coordinate measurement |
Definition at line 53 of file CaUvConverter.h.
References fcosX, fcosY, fsinX, and fsinY.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::Exec().
|
inline |
Conversion function (dx2, dxy, dy2) -> (du2, duv, dv2)
dx2 | Variance of X-coordinate measurement |
dxy | Covariance of X & Y - coordinate measurement |
dy2 | Variance of Y-coordinate measurement |
Definition at line 65 of file CaUvConverter.h.
References fcosU, fcosV, fsinU, and fsinV.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::Exec(), and SetFromXYCovMatrix().
|
inline |
Conversion function (x,y) -> (u,v)
u | U-coordinate |
v | V-coordinate |
Definition at line 43 of file CaUvConverter.h.
References fcosX, fcosY, fsinX, fsinY, and v.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::Exec().
|
inline |
Conversion function (x,y) -> (u,v)
x | X-coordinate |
y | Y-coordinate |
Definition at line 34 of file CaUvConverter.h.
References fcosU, fcosV, fsinU, fsinV, x, and y.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::Exec().
void CaUvConverter::SetFromUV | ( | double | phiU, |
double | phiV ) |
construct from U,V angles
Definition at line 16 of file CaUvConverter.cxx.
References cos(), fcosU, fcosV, fcosX, fcosY, fsinU, fsinV, fsinX, fsinY, and sin().
Referenced by CaUvConverter(), and SetFromXYCovMatrix().
void CaUvConverter::SetFromXYCovMatrix | ( | double | phiU, |
double | dx2, | ||
double | dxy, | ||
double | dy2 ) |
construct from U angle and XY covariance matrix
Definition at line 39 of file CaUvConverter.cxx.
References ConvertCovMatrixXYtoUV(), cos(), SetFromUV(), and sin().
Referenced by CaUvConverter().
|
private |
U coordinate in XY.
Definition at line 74 of file CaUvConverter.h.
Referenced by ConvertCovMatrixXYtoUV(), ConvertXYtoUV(), and SetFromUV().
|
private |
V coordinate in XY.
Definition at line 77 of file CaUvConverter.h.
Referenced by ConvertCovMatrixXYtoUV(), ConvertXYtoUV(), and SetFromUV().
|
private |
X coordinate in UV.
Definition at line 80 of file CaUvConverter.h.
Referenced by ConvertCovMatrixUVtoXY(), ConvertUVtoXY(), and SetFromUV().
|
private |
Y coordinate in UV.
Definition at line 83 of file CaUvConverter.h.
Referenced by ConvertCovMatrixUVtoXY(), ConvertUVtoXY(), and SetFromUV().
|
private |
Definition at line 75 of file CaUvConverter.h.
Referenced by ConvertCovMatrixXYtoUV(), ConvertXYtoUV(), and SetFromUV().
|
private |
Definition at line 78 of file CaUvConverter.h.
Referenced by ConvertCovMatrixXYtoUV(), ConvertXYtoUV(), and SetFromUV().
|
private |
Definition at line 81 of file CaUvConverter.h.
Referenced by ConvertCovMatrixUVtoXY(), ConvertUVtoXY(), and SetFromUV().
|
private |
Definition at line 84 of file CaUvConverter.h.
Referenced by ConvertCovMatrixUVtoXY(), ConvertUVtoXY(), and SetFromUV().