Alignment correction for an element of the CT-PPS detector. Within the geometry description, every sensor (more generally every element) is given its translation and rotation. These two quantities shall be understood in local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then it holds. More...
#include <CTPPSRPAlignmentCorrectionData.h>
Public Member Functions | |
void | add (const CTPPSRPAlignmentCorrectionData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
CTPPSRPAlignmentCorrectionData (double _sh_x, double _sh_x_u, double _sh_y, double _sh_y_u, double _sh_z, double _sh_z_u, double _rot_x, double _rot_x_u, double _rot_y, double _rot_y_u, double _rot_z, double _rot_z_u) | |
full constructor, shifts in mm, rotations in rad More... | |
CTPPSRPAlignmentCorrectionData (double _sh_x=0., double _sh_y=0., double _sh_z=0., double _rot_x=0., double _rot_y=0., double rot_z=0.) | |
no uncertainty constructor, shifts in mm, rotation in rad More... | |
ROOT::Math::Rotation3D | getRotationMatrix () const |
double | getRotX () const |
double | getRotXUnc () const |
double | getRotY () const |
double | getRotYUnc () const |
double | getRotZ () const |
double | getRotZUnc () const |
double | getShX () const |
double | getShXUnc () const |
double | getShY () const |
double | getShYUnc () const |
double | getShZ () const |
double | getShZUnc () const |
math::XYZVectorD | getTranslation () const |
math::XYZVectorD | getTranslationUncertainty () const |
void | setRotX (const double &v) |
void | setRotXUnc (const double &v) |
void | setRotY (const double &v) |
void | setRotYUnc (const double &v) |
void | setRotZ (const double &v) |
void | setRotZUnc (const double &v) |
void | setShX (const double &v) |
void | setShXUnc (const double &v) |
void | setShY (const double &v) |
void | setShYUnc (const double &v) |
void | setShZ (const double &v) |
void | setShZUnc (const double &v) |
Protected Attributes | |
double | rot_x |
double | rot_x_unc |
double | rot_y |
double | rot_y_unc |
double | rot_z |
double | rot_z_unc |
double | sh_x |
double | sh_x_unc |
double | sh_y |
double | sh_y_unc |
double | sh_z |
double | sh_z_unc |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Alignment correction for an element of the CT-PPS detector. Within the geometry description, every sensor (more generally every element) is given its translation and rotation. These two quantities shall be understood in local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then it holds.
x_g = rotation * x_l + translation
This class presents an alignment correction to the translation and rotation. It follows these formulae:
translation_final = translation_correction + translation_original rotation_final = rotation_correction * rotation_original
Alignment corrections can be added, following this prescription:
translation_final = translation_added + translation_original rotation_final = rotation_added * rotation_original
NB: As follows from the above definitions, all translations are in the global space. This means that the rotations do not act on them.
Besides the values of rotations and translations, this class contains also uncertainties for these paramaters (the _unc data memebers).
The rotation is parameterized by 3 rotation parameters, the matrix is obtained by calling ROOT::Math::RotationZYX(r_z, r_y, r_x), which corresponds to:
| 1 0 0 | | cos r_y 0 +sin r_y | | cos r_z -sin r_z 0 | R = | 0 cos r_x -sin r_x | * | 0 1 0 | * | sin r_z cos r_z 0 | | 0 sin r_x cos r_x | |-sin r_y 0 cos r_y | | 0 0 1 |
Definition at line 58 of file CTPPSRPAlignmentCorrectionData.h.
CTPPSRPAlignmentCorrectionData::CTPPSRPAlignmentCorrectionData | ( | double | _sh_x, |
double | _sh_x_u, | ||
double | _sh_y, | ||
double | _sh_y_u, | ||
double | _sh_z, | ||
double | _sh_z_u, | ||
double | _rot_x, | ||
double | _rot_x_u, | ||
double | _rot_y, | ||
double | _rot_y_u, | ||
double | _rot_z, | ||
double | _rot_z_u | ||
) |
full constructor, shifts in mm, rotations in rad
Definition at line 20 of file CTPPSRPAlignmentCorrectionData.cc.
CTPPSRPAlignmentCorrectionData::CTPPSRPAlignmentCorrectionData | ( | double | _sh_x = 0. , |
double | _sh_y = 0. , |
||
double | _sh_z = 0. , |
||
double | _rot_x = 0. , |
||
double | _rot_y = 0. , |
||
double | rot_z = 0. |
||
) |
void CTPPSRPAlignmentCorrectionData::add | ( | const CTPPSRPAlignmentCorrectionData & | a, |
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
merges (cumulates) alignements match between x, y and read-out shifts is not checked
sumErrors | if it is true, old and new alignment uncertainties are summed (in quadrature) if it is false, the uncertainties of the parameter (i.e. not the object) will be used With the add... switches one can control which corrections are added. |
Definition at line 53 of file CTPPSRPAlignmentCorrectionData.cc.
References a, rot_x, rot_x_unc, rot_y, rot_y_unc, rot_z, rot_z_unc, sh_x, sh_x_unc, sh_y, sh_y_unc, sh_z, sh_z_unc, and mathSSE::sqrt().
Referenced by CTPPSRPAlignmentCorrectionsData::getFullSensorCorrection(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
inline |
Definition at line 140 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by RPDisplacementGenerator::RPDisplacementGenerator().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 130 of file CTPPSRPAlignmentCorrectionData.h.
|
inline |
Definition at line 133 of file CTPPSRPAlignmentCorrectionData.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 136 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by RPDisplacementGenerator::RPDisplacementGenerator().
|
inline |
Definition at line 138 of file CTPPSRPAlignmentCorrectionData.h.
|
private |
|
inline |
Definition at line 119 of file CTPPSRPAlignmentCorrectionData.h.
References rot_y, and findQualityFiles::v.
|
inline |
Definition at line 122 of file CTPPSRPAlignmentCorrectionData.h.
References rot_y_unc, and findQualityFiles::v.
|
inline |
Definition at line 125 of file CTPPSRPAlignmentCorrectionData.h.
References rot_z, and findQualityFiles::v.
|
inline |
Definition at line 128 of file CTPPSRPAlignmentCorrectionData.h.
References rot_z_unc, and findQualityFiles::v.
|
inline |
Definition at line 131 of file CTPPSRPAlignmentCorrectionData.h.
|
inline |
Definition at line 134 of file CTPPSRPAlignmentCorrectionData.h.
|
inline |
Definition at line 101 of file CTPPSRPAlignmentCorrectionData.h.
References sh_y, and findQualityFiles::v.
|
inline |
Definition at line 104 of file CTPPSRPAlignmentCorrectionData.h.
References sh_y_unc, and findQualityFiles::v.
|
inline |
Definition at line 107 of file CTPPSRPAlignmentCorrectionData.h.
References sh_z, and findQualityFiles::v.
|
inline |
Definition at line 110 of file CTPPSRPAlignmentCorrectionData.h.
References sh_z_unc, and findQualityFiles::v.
|
inline |
Definition at line 113 of file CTPPSRPAlignmentCorrectionData.h.
References rot_x, and findQualityFiles::v.
|
inline |
Definition at line 116 of file CTPPSRPAlignmentCorrectionData.h.
References rot_x_unc, and findQualityFiles::v.
|
friend |
Definition at line 151 of file CTPPSRPAlignmentCorrectionData.h.
|
friend |
Definition at line 151 of file CTPPSRPAlignmentCorrectionData.h.
|
protected |
the three rotation angles in rad
Definition at line 74 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getShZ(), setRotZUnc(), and setShZ().
|
protected |
Definition at line 75 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getShZUnc(), and setShZUnc().
|
protected |
Definition at line 74 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getRotX(), setRotX(), and setRotZUnc().
|
protected |
Definition at line 75 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getRotXUnc(), and setRotXUnc().
|
protected |
Definition at line 74 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getRotY(), setRotY(), and setRotZUnc().
|
protected |
Definition at line 75 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getRotYUnc(), and setRotYUnc().
|
protected |
shift in mm; in global XYZ frame, which is not affected by (alignment) rotations! "_unc" denotes the shift uncertainties
Definition at line 69 of file CTPPSRPAlignmentCorrectionData.h.
|
protected |
Definition at line 70 of file CTPPSRPAlignmentCorrectionData.h.
|
protected |
|
protected |
Definition at line 70 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getShXUnc(), setRotZ(), and setShXUnc().
|
protected |
|
protected |
Definition at line 70 of file CTPPSRPAlignmentCorrectionData.h.
Referenced by add(), getShYUnc(), setRotZ(), and setShYUnc().