StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcGridLeakC.h
1 #ifndef St_tpcGridLeakC_h
2 #define St_tpcGridLeakC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcGridLeak_Table.h"
6 
7 enum StGLpos {
8  kGLinner=0,
9  kGLmiddl=1,
10  kGLouter=2
11 };
12 class St_tpcGridLeakC : public TChair {
13  public:
14  static St_tpcGridLeakC* instance();
15  tpcGridLeak_st *Struct(Int_t i = 0) {return ((St_tpcGridLeak*) Table())->GetTable()+i;}
16  UInt_t getNumRows() {return GetNRows();}
17  Double_t InnerGLRadius(Int_t i = 0) {return Struct(i)->InnerGLRadius;}
18  Double_t MiddlGLRadius(Int_t i = 0) {return Struct(i)->MiddlGLRadius;}
19  Double_t OuterGLRadius(Int_t i = 0) {return Struct(i)->OuterGLRadius;}
20  Double_t InnerGLWidth(Int_t i = 0) {return Struct(i)->InnerGLWidth;}
21  Double_t MiddlGLWidth(Int_t i = 0) {return Struct(i)->MiddlGLWidth;}
22  Double_t OuterGLWidth(Int_t i = 0) {return Struct(i)->OuterGLWidth;}
23  Double_t InnerGLStrength(Int_t i = 0) {return Struct(i)->InnerGLStrength;}
24  Double_t MiddlGLStrength(Int_t i = 0) {return Struct(i)->MiddlGLStrength;}
25  Double_t OuterGLStrength(Int_t i = 0) {return Struct(i)->OuterGLStrength;}
26  Double_t getGridLeakStrength(StGLpos pos){
27  switch (pos) {
28  case (kGLinner) : return InnerGLStrength();
29  case (kGLmiddl) : return MiddlGLStrength();
30  case (kGLouter) : return OuterGLStrength();
31  }
32  return 0;
33  }
34  Double_t getGridLeakRadius(StGLpos pos) {
35  switch (pos) {
36  case (kGLinner) : return InnerGLRadius();
37  case (kGLmiddl) : return MiddlGLRadius();
38  case (kGLouter) : return OuterGLRadius();
39  }
40  return 0;
41  }
42  Double_t getGridLeakWidth(StGLpos pos) {
43  switch (pos) {
44  case (kGLinner) : return InnerGLWidth();
45  case (kGLmiddl) : return MiddlGLWidth();
46  case (kGLouter) : return OuterGLWidth();
47  }
48  return 0;
49  }
50  protected:
51  St_tpcGridLeakC(St_tpcGridLeak *table=0) : TChair(table) {}
52  virtual ~St_tpcGridLeakC() {fgInstance = 0;}
53  private:
54  static St_tpcGridLeakC* fgInstance;
55  ClassDefChair(St_tpcGridLeak, tpcGridLeak_st )
56  ClassDef(St_tpcGridLeakC,1) //C++ TChair for tpcGridLeak table class
57 };
58 #endif
Definition: TChair.h:27