22 #ifndef STSVTWAFERGEOMETRY_HH
23 #define STSVTWAFERGEOMETRY_HH
25 #include "StSvtHybrid.h"
26 #include "TGeoMatrix.h"
36 void setID(Int_t i){
id = i;}
37 void setDriftDirection(Double_t x1, Double_t x2, Double_t x3)
38 {Double_t *r = GetRotationMatrix(); r[0] = x1; r[3] = x2; r[6] = x3;}
39 void setTransverseDirection(Double_t x1, Double_t x2, Double_t x3)
40 {Double_t *r = GetRotationMatrix(); r[1] = x1; r[4] = x2; r[7] = x3;};
41 void setNormalDirection(Double_t x1, Double_t x2, Double_t x3)
42 {Double_t *r = GetRotationMatrix(); r[2] = x1; r[5] = x2; r[8] = x3;};
43 void setCenterPosition(Double_t x1, Double_t x2, Double_t x3) {Double_t *t = GetTranslation(); t[0] = x1; t[1] = x2; t[2] = x3;}
45 Int_t getID(){
return id;}
46 Double_t d(Int_t i){Double_t *r = GetRotationMatrix();
return r[3*i]; }
47 Double_t t(Int_t i){Double_t *r = GetRotationMatrix();
return r[3*i+1];}
48 Double_t n(Int_t i){Double_t *r = GetRotationMatrix();
return r[3*i+2];}
49 Double_t x(Int_t i){Double_t *t = GetTranslation();
return t[i]; }
51 void print(Option_t *option=
"");