00001 #ifndef St_tpcSectorT0offsetC_h
00002 #define St_tpcSectorT0offsetC_h
00003
00004 #include "TChair.h"
00005 #include "tables/St_tpcSectorT0offset_Table.h"
00006
00007 class St_tpcSectorT0offsetC : public TChair {
00008 public:
00009 static St_tpcSectorT0offsetC* instance();
00010 tpcSectorT0offset_st *Struct(Int_t i = 0) {return ((St_tpcSectorT0offset*) Table())->GetTable()+i;}
00011 UInt_t getNumRows() {return GetNRows();}
00012 Float_t* t0(Int_t i = 0) {return Struct(i)->t0;}
00013 Float_t t0offset(Int_t sector=1) {return t0()[sector-1];}
00014 protected:
00015 St_tpcSectorT0offsetC(St_tpcSectorT0offset *table=0) : TChair(table) {}
00016 virtual ~St_tpcSectorT0offsetC() {fgInstance = 0;}
00017 private:
00018 static St_tpcSectorT0offsetC* fgInstance;
00019 ClassDefChair(St_tpcSectorT0offset, tpcSectorT0offset_st )
00020 ClassDef(St_tpcSectorT0offsetC,1)
00021 };
00022 #endif