StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcSectorPositionC.h
1 #ifndef St_tpcSectorPositionC_h
2 #define St_tpcSectorPositionC_h
3 #include <assert.h>
4 #include "TChair.h"
5 #include "tables/St_tpcSectorPosition_Table.h"
6 
7 class St_tpcSectorPositionC : public TObject {
8  public:
9  static St_tpcSectorPositionC* instance();
10  tpcSectorPosition_st *Struct(Int_t i = 0) const {assert(i >=0 && i <= 23); return fgTables[i]->GetTable();}
11  Float_t innerSectorLocalxShift(Int_t i = 0) const {return Struct(i)->innerSectorLocalxShift;}
12  Float_t innerSectorLocalyShift(Int_t i = 0) const {return Struct(i)->innerSectorLocalyShift;}
13  Float_t innerSectorRotationAngle(Int_t i = 0) const {return Struct(i)->innerSectorRotationAngle;}
14  Float_t innerSectorCovMatrix(Int_t i = 0) const {return Struct(i)->innerSectorCovMatrix;}
15  Float_t outerSectorLocalxShift(Int_t i = 0) const {return Struct(i)->outerSectorLocalxShift;}
16  Float_t outerSectorLocalyShift(Int_t i = 0) const {return Struct(i)->outerSectorLocalyShift;}
17  Float_t outerSectorRotationAngle(Int_t i = 0) const {return Struct(i)->outerSectorRotationAngle;}
18  Float_t outerSectorCovMatrix(Int_t i = 0) const {return Struct(i)->outerSectorCovMatrix;}
19 
20  Double_t innerPositionOffsetX(Int_t i = 0) const { return innerSectorLocalxShift(i);}
21  Double_t outerPositionOffsetX(Int_t i = 0) const { return outerSectorLocalxShift(i);}
22  Double_t innerRotation(Int_t i = 0) const { return innerSectorRotationAngle(i);}
23  Double_t outerRotation(Int_t i = 0) const { return outerSectorRotationAngle(i);}
24 
25  protected:
26  St_tpcSectorPositionC() : TObject() {}
27  virtual ~St_tpcSectorPositionC() {fgInstance = 0;}
28  private:
29  static St_tpcSectorPositionC* fgInstance;
30  static St_tpcSectorPosition *fgTables[24];
31  ClassDef(St_tpcSectorPositionC,1) //C++ TChair for tpcSectorPosition table class
32 };
33 #endif