00001 #ifndef St_asic_thresholds_tpxC_h
00002 #define St_asic_thresholds_tpxC_h
00003
00004 #include "TChair.h"
00005 #include "tables/St_asic_thresholds_tpx_Table.h"
00006
00007 class St_asic_thresholds_tpxC : public TChair {
00008 public:
00009 static St_asic_thresholds_tpxC* instance();
00010 asic_thresholds_tpx_st *Struct(Int_t i = 0) {return ((St_asic_thresholds_tpx*) Table())->GetTable()+i;}
00011 UInt_t getNumRows() {return GetNRows();}
00012 Int_t thresh_lo(Int_t i = 0) {return Struct(i)->thresh_lo;}
00013 Int_t thresh_hi(Int_t i = 0) {return Struct(i)->thresh_hi;}
00014 Int_t n_seq_lo(Int_t i = 0) {return Struct(i)->n_seq_lo;}
00015 Int_t n_seq_hi(Int_t i = 0) {return Struct(i)->n_seq_hi;}
00016 protected:
00017 St_asic_thresholds_tpxC(St_asic_thresholds_tpx *table=0) : TChair(table) {}
00018 virtual ~St_asic_thresholds_tpxC() {fgInstance = 0;}
00019 private:
00020 static St_asic_thresholds_tpxC* fgInstance;
00021 ClassDefChair(St_asic_thresholds_tpx, asic_thresholds_tpx_st )
00022 ClassDef(St_asic_thresholds_tpxC,1)
00023 };
00024 #endif