78 #include <TRotMatrix.h>
92 const double deg2rad = 0.01745329252;
93 Double_t s0 = TMath::Sin(a * deg2rad);
94 Double_t c0 = TMath::Cos(a * deg2rad);
95 Double_t s1 = TMath::Sin(b * deg2rad);
96 Double_t c1 = TMath::Cos(b * deg2rad);
97 Double_t s2 = TMath::Sin(c * deg2rad);
98 Double_t c2 = TMath::Cos(c * deg2rad);
99 rot[0] = c0 * c1 * c2 - s0 * s2;
100 rot[1] = -c0 * c1 * s2 - s0 * c2;
102 rot[3] = s0 * c1 * c2 + c0 * s2;
103 rot[4] = c0 * c2 - s0 * c1 * s2;
114 for (Int_t i = 0; i < 9; i++) {
115 Double_t d =
rot[i] - r(i);
130 for (Int_t i = 0; i < 3; i++) {
131 for (Int_t j = 0; j < 3; j++) {
132 a[j + 3 * i] =
rot[i + 3 * j];
135 t =
new TRotMatrix(name, title, a);
void setEulerAngles(const Double_t, const Double_t, const Double_t)
ClassImp(FairEventBuilder)
TRotMatrix * createTRotMatrix(const Text_t *name="", const Text_t *title="")
Double_t diff2(const FairGeoRotation &) const