39 #include <TMathBase.h>
74 const Double_t fac = 20.;
75 const Double_t raddeg = 180. / TMath::Pi();
78 for (Int_t i = 0; i < 4; i++) {
81 for (Int_t j = 4; j < 8; j++) {
89 param->AddAt(TMath::Abs(dc(2)) / fac, 0);
90 alpha = TMath::ATan(TMath::Sqrt(dc(0) * dc(0) + dc(1) * dc(1)) / dc(2)) * raddeg;
91 if (TMath::Abs(alpha) < 0.0001) {
95 if (TMath::Abs(dc(0)) < 0.0001) {
102 beta = atan(dc(1) / dc(0)) * raddeg;
111 param->AddAt(alpha, 1);
112 param->AddAt(beta, 2);
119 / 40. /
param->At(3))
121 if (TMath::Abs(a) <= 0.0001) {
131 / 40. /
param->At(7))
133 if (TMath::Abs(a) <= 0.0001) {
134 param->AddAt(0., 10);
140 if (TMath::Abs(dx) >= 0.001) {
141 cout <<
"top and bottom plane are not coplanar for shape TRAP\n";
142 cout <<
"lenght in x-direction of top plane is changed\n";
143 cout <<
"old values: " <<
param->At(8) <<
" " <<
param->At(9) <<
"\n";
146 cout <<
"new values: " <<
param->At(8) <<
" " <<
param->At(9) <<
"\n";
155 Double_t t[3] = {0., 0., 0.};
156 for (Int_t i = 0; i < 8; i++) {
void setX(const Double_t a)
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
FairGeoTransform * center
ClassImp(FairEventBuilder)
TArrayD * calcVoluParam(FairGeoVolume *)
FairGeoVector * getPoint(const Int_t n)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
FairGeoTransform * position
void setElement(const Double_t, const Int_t)
void setY(const Double_t a)