StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcGlobalPositionC.h
1 #ifndef St_tpcGlobalPositionC_h
2 #define St_tpcGlobalPositionC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcGlobalPosition_Table.h"
6 
7 class St_tpcGlobalPositionC : public TChair {
8  public:
9  static St_tpcGlobalPositionC* instance();
10  tpcGlobalPosition_st *Struct(Int_t i = 0) const {return ((St_tpcGlobalPosition*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Float_t LocalxShift(Int_t i = 0) const {return Struct(i)->LocalxShift;}
13  Float_t LocalyShift(Int_t i = 0) const {return Struct(i)->LocalyShift;}
14  Float_t LocalzShift(Int_t i = 0) const {return Struct(i)->LocalzShift;}
15  /* Float_t PhiXY(Int_t i = 0) const {return Struct(i)->PhiXY;} */
16  Float_t PhiXZ(Int_t i = 0) const {return Struct(i)->PhiXZ;}
17  Float_t PhiYZ(Int_t i = 0) const {return Struct(i)->PhiYZ;}
18  /* Float_t XX(Int_t i = 0) const {return Struct(i)->XX;}
19  Float_t YY(Int_t i = 0) const {return Struct(i)->YY;}
20  Float_t ZZ(Int_t i = 0) const {return Struct(i)->ZZ;} */
21  Float_t PhiXY_geom(Int_t i = 0) const {return Struct(i)->PhiXY_geom;}
22  Float_t PhiXZ_geom(Int_t i = 0) const {return Struct(i)->PhiXZ_geom;}
23  Float_t PhiYZ_geom(Int_t i = 0) const {return Struct(i)->PhiYZ_geom;}
24  /* Float_t XX_geom(Int_t i = 0) const {return Struct(i)->XX_geom;}
25  Float_t YY_geom(Int_t i = 0) const {return Struct(i)->YY_geom;}
26  Float_t ZZ_geom(Int_t i = 0) const {return Struct(i)->ZZ_geom;} */
27  Double_t TpcCenterPositionX() const {return LocalxShift();}
28  Double_t TpcCenterPositionY() const {return LocalyShift();}
29  Double_t TpcCenterPositionZ() const {return LocalzShift();}
30  Double_t TpcRotationAroundGlobalAxisX() const {return PhiYZ_geom();}
31  Double_t TpcRotationAroundGlobalAxisY() const {return PhiXZ_geom();}
32  Double_t TpcRotationAroundGlobalAxisZ() const {return PhiXY_geom();}
33  Double_t TpcEFieldRotationX() const {return PhiYZ();} /* YTWIST */
34  Double_t TpcEFieldRotationY() const {return PhiXZ();} /* XTWIST */
35  Double_t XTWIST() const {return 1e3*TpcEFieldRotationY();}
36  Double_t YTWIST() const {return -1e3*TpcEFieldRotationX();}
37  /* Double_t TpcEFieldRotationZ() const {return PhiXY();} */
38  Double_t X0() const {return LocalxShift();}
39  Double_t Y0() const {return LocalyShift();}
40  Double_t Z0() const {return LocalzShift();}
41  Double_t alpha() const {return PhiYZ_geom();}
42  Double_t beta() const {return PhiXZ_geom();}
43  Double_t gamma() const {return PhiXY_geom();}
44  protected:
45  St_tpcGlobalPositionC(St_tpcGlobalPosition *table=0) : TChair(table) {}
46  virtual ~St_tpcGlobalPositionC() {fgInstance = 0;}
47  private:
48  static St_tpcGlobalPositionC* fgInstance;
49  ClassDefChair(St_tpcGlobalPosition, tpcGlobalPosition_st )
50  ClassDef(St_tpcGlobalPositionC,1) //C++ TChair for tpcGlobalPosition table class
51 };
52 #endif
Definition: TChair.h:27