StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_SurveyC.h
1 #ifndef St_SurveyC_h
2 #define St_SurveyC_h
3 
4 #include "TChair.h"
5 #include "tables/St_Survey_Table.h"
6 #include "TGeoMatrix.h"
7 class St_SurveyC : public TChair {
8  public:
9  virtual ~St_SurveyC();
10  static St_SurveyC *instance(const Char_t *name);
11  Survey_st *Struct(Int_t i = 0) const {return ((St_Survey*) Table())->GetTable()+i;}
12  UInt_t getNumRows() const {return GetNRows();}
13  Int_t Id(Int_t i = 0) const {return Struct(i)->Id;}
14  Double_t r00(Int_t i = 0) const {return Struct(i)->r00;} // 0
15  Double_t r01(Int_t i = 0) const {return Struct(i)->r01;} // 1
16  Double_t r02(Int_t i = 0) const {return Struct(i)->r02;} // 2
17  Double_t r10(Int_t i = 0) const {return Struct(i)->r10;} // 3
18  Double_t r11(Int_t i = 0) const {return Struct(i)->r11;} // 4
19  Double_t r12(Int_t i = 0) const {return Struct(i)->r12;} // 5
20  Double_t r20(Int_t i = 0) const {return Struct(i)->r20;} // 6
21  Double_t r21(Int_t i = 0) const {return Struct(i)->r21;} // 7
22  Double_t r22(Int_t i = 0) const {return Struct(i)->r22;} // 8
23  Double_t t0(Int_t i = 0) const {return Struct(i)->t0;}
24  Double_t t1(Int_t i = 0) const {return Struct(i)->t1;}
25  Double_t t2(Int_t i = 0) const {return Struct(i)->t2;}
26  Double_t sigmaRotX(Int_t i = 0) const {return Struct(i)->sigmaRotX;}
27  Double_t sigmaRotY(Int_t i = 0) const {return Struct(i)->sigmaRotY;}
28  Double_t sigmaRotZ(Int_t i = 0) const {return Struct(i)->sigmaRotZ;}
29  Double_t sigmaTrX(Int_t i = 0) const {return Struct(i)->sigmaTrX;}
30  Double_t sigmaTrY(Int_t i = 0) const {return Struct(i)->sigmaTrY;}
31  Double_t sigmaTrZ(Int_t i = 0) const {return Struct(i)->sigmaTrZ;}
32  Char_t* comment(Int_t i = 0) const {return Struct(i)->comment;}
33  void GetAngles(Double_t &phi, Double_t &the, Double_t &psi, Int_t i = 0);
34  const Double_t *Rotation(Int_t i = 0) const {return &Struct(i)->r00;}
35  const Double_t *Translation(Int_t i = 0) const {return &Struct(i)->t0;}
36  const TGeoHMatrix &GetMatrix(Int_t i = 0);
37  const TGeoHMatrix &GetMatrix4Id(Int_t id);
38  const TGeoHMatrix &GetMatrixR(Int_t i); // ignoring rotation alpha and beta
39  const Double_t *r(Int_t i = 0) const {return &Struct(i)->r00;}
40  const Double_t *t(Int_t i = 0) const {return &Struct(i)->t0;}
41  static void Normalize(TGeoHMatrix &rot);
42  static Double_t IsOrtogonal(const Double_t *r);
43  protected:
44  St_SurveyC(St_Survey *table=0);
45  private:
46  TGeoHMatrix **fRotations;
47  ClassDefChair(St_Survey, Survey_st )
48  ClassDef(St_SurveyC,1) //C++ TChair for Survey table class
49 };
50 #endif
Definition: TChair.h:27