StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StIstDigiHit.h
1 #ifndef StIstDigiHit_h
2 #define StIstDigiHit_h
3 
4 #include "StIstUtil/StIstConsts.h"
5 #include "StEvent/StIstHit.h"
6 
7 
14 class StIstDigiHit: public StIstHit
15 {
16 public:
17  StIstDigiHit();
18  StIstDigiHit(const StIstHit &istHit);
19 
20  void setApv(unsigned char apvId);
21  void setMeanColumn(float meanColumn);
22  void setMeanRow(float meanRow);
23  void setClusterSizeFlag(bool flag);
24 
25  unsigned char getApv() const;
26  float getMeanColumn() const;
27  float getMeanRow() const;
28  bool getClusterSizeFlag() const;
29  float localPositionErr(unsigned int i) const;
30 
31  void* operator new(size_t sz, void *p) { return p; }
32  void* operator new(size_t) { return mPool.alloc(); }
33  void operator delete(void* p) { mPool.free(p); }
34 
35 private:
36  UChar_t mApv;
37  Float_t mMeanColumn;
38  Float_t mMeanRow;
39  Bool_t mClusterSizeFlag; //0: cluster Size in r-phi < 2; 1: cluster Size in Z
40 
41  static StMemoryPool mPool;
42 };
43 
44 #endif