StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_pxlHotPixelsC.h
1 #ifndef St_pxlHotPixelsC_h
2 #define St_pxlHotPixelsC_h
3 
4 #include "TChair.h"
5 #include "tables/St_pxlHotPixels_Table.h"
6 #include <map>
7 class St_pxlHotPixelsC : public TChair {
8  public:
9  static St_pxlHotPixelsC* instance();
10  pxlHotPixels_st *Struct(Int_t i = 0) const {return ((St_pxlHotPixels*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  UInt_t* hotPixel(Int_t i = 0) const {return Struct(i)->hotPixel;}
13  Int_t pixelHot(Int_t sector, Int_t ladder, Int_t sensor, Int_t row, Int_t column) const;
14  protected:
15  St_pxlHotPixelsC(St_pxlHotPixels *table=0) : TChair(table) {}
16  virtual ~St_pxlHotPixelsC() {fgInstance = 0;}
17  private:
18  static St_pxlHotPixelsC* fgInstance;
19  static map<UInt_t,Short_t> mMapHotPixels;
20  ClassDefChair(St_pxlHotPixels, pxlHotPixels_st )
21  ClassDef(St_pxlHotPixelsC,1) //C++ TChair for pxlHotPixels table class
22 };
23 #endif
Definition: TChair.h:27