StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_MagFactorC.h
1 #ifndef St_MagFactorC_h
2 #define St_MagFactorC_h
3 
4 #include "TChair.h"
5 #include "tables/St_MagFactor_Table.h"
6 
7 class St_MagFactorC : public TChair {
8  public:
9  static St_MagFactorC* instance();
10  MagFactor_st *Struct(Int_t i = 0) {return ((St_MagFactor*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Float_t ScaleFactor(Int_t i = 0) {return Struct(i)->ScaleFactor;}
13  protected:
14  St_MagFactorC(St_MagFactor *table=0) : TChair(table) {}
15  virtual ~St_MagFactorC() {fgInstance = 0;}
16  private:
17  static St_MagFactorC* fgInstance;
18  ClassDefChair(St_MagFactor, MagFactor_st )
19  ClassDef(St_MagFactorC,1) //C++ TChair for MagFactor table class
20 };
21 #endif
Definition: TChair.h:27