StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcStatusC.h
1 #ifndef St_tpcStatusC_h
2 #define St_tpcStatusC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcStatus_Table.h"
6 #include "St_tpcPadPlanesC.h"
7 class St_tpcStatusC : public TChair {
8  public:
9  static St_tpcStatusC* instance();
10  tpcStatus_st *Struct(Int_t i = 0) const {return ((St_tpcStatus*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  UChar_t* status(Int_t i = 0) const {return Struct(i)->status;}
13  UChar_t status(Int_t sector, Int_t row) const {return status()[St_tpcPadPlanesC::instance()->padRows()*(sector-1)+(row-1)];}
14  Bool_t isDead() {return ((status()) && (status()[0]==0xff));}
15  protected:
16  St_tpcStatusC(St_tpcStatus *table=0) : TChair(table) {}
17  virtual ~St_tpcStatusC() {fgInstance = 0;}
18  private:
19  static St_tpcStatusC* fgInstance;
20  ClassDefChair(St_tpcStatus, tpcStatus_st )
21  ClassDef(St_tpcStatusC,1) //C++ TChair for tpcStatus table class
22 };
23 #endif
Definition: TChair.h:27