46 param=
new TArrayD(nParam);
47 intrinsicRot.setElement(-1.,0);
48 intrinsicRot.setElement(-1.,4);
73 const Double_t fac=20.;
74 const Double_t raddeg=180./TMath::Pi();
77 for(Int_t i=0; i<4; i++) { cb+=*(volu->
getPoint(i)); }
78 for(Int_t j=4; j<8; j++) { ct+=*(volu->
getPoint(j)); }
84 param->AddAt(TMath::Abs(dc(2))/fac,0);
85 alpha=TMath::ATan(TMath::Sqrt(dc(0)*dc(0)+dc(1)*dc(1))/dc(2))*raddeg;
86 if (TMath::Abs(alpha)<0.0001) {
90 if (TMath::Abs(dc(0))<0.0001) {
91 if (dc(1)>0) { beta=90.0; }
94 beta=atan(dc(1)/dc(0))*raddeg;
95 if (dc(0)<0) { beta=180.0 + beta; }
96 if (beta<0) { beta=360.0 + beta; }
99 param->AddAt(alpha,1);
100 param->AddAt(beta,2);
105 Double_t a=TMath::ATan(((*(volu->
getPoint(1)))(0)
110 if (TMath::Abs(a)<=0.0001) {
param->AddAt(0.,6); }
111 else {
param->AddAt(a,6); }
115 a=TMath::ATan(((*(volu->
getPoint(5)))(0)
119 if (TMath::Abs(a)<=0.0001) {
param->AddAt(0.,10); }
120 else {
param->AddAt(a,10); }
124 if (TMath::Abs(dx)>=0.001) {
125 cout <<
"top and bottom plane are not coplanar for shape TRAP\n";
126 cout <<
"lenght in x-direction of top plane is changed\n";
127 cout <<
"old values: " <<
param->At(8) <<
" " <<
param->At(9) <<
"\n";
130 cout <<
"new values: " <<
param->At(8) <<
" " <<
param->At(9) <<
"\n";
141 Double_t
t[3]= {0.,0.,0.};
142 for(Int_t i=0; i<8; i++) { t[0]+=(*(volu->
getPoint(i)))(0); }