00001 #ifndef St_tpcMaxHitsC_h
00002 #define St_tpcMaxHitsC_h
00003 #include "TChair.h"
00004 #include "tables/St_tpcMaxHits_Table.h"
00005 class St_tpcMaxHitsC : public TChair {
00006 public:
00007 static St_tpcMaxHitsC* instance();
00008 tpcMaxHits_st *Struct(Int_t i = 0) {return ((St_tpcMaxHits*) Table())->GetTable()+i;}
00009 Int_t maxSectorHits() {return Struct()->maxSectorHits;}
00010 Int_t maxBinZeroHits() {return Struct()->maxBinZeroHits;}
00011 protected:
00012 St_tpcMaxHitsC(St_tpcMaxHits *table=0) : TChair(table) {}
00013 virtual ~St_tpcMaxHitsC() {fgInstance = 0;}
00014 private:
00015 static St_tpcMaxHitsC* fgInstance;
00016 ClassDef(St_tpcMaxHitsC,1)
00017 };
00018 #endif