32 #include "StMemoryPool.hh"
39 unsigned int,
float,
unsigned char = 0);
44 void*
operator new(
size_t sz,
void *p) {
return p;}
45 void*
operator new(size_t) {
return mPool.alloc(); }
46 void operator delete(
void* p) { mPool.free(p); }
48 unsigned int ladder()
const;
49 unsigned int wafer()
const;
50 unsigned int centralStripNSide()
const;
51 unsigned int centralStripPSide()
const;
52 unsigned int clusterSizeNSide()
const;
53 unsigned int clusterSizePSide()
const;
54 float localPosition(
unsigned int)
const;
55 static unsigned int sector(
unsigned int);
56 unsigned int sector()
const;
57 void setLocalPosition(
float,
float,
float);
58 void setADC(
unsigned short,
unsigned short);
59 int getADC(
unsigned int)
const;
60 virtual int volumeID()
const;
61 void Print(
const Option_t *option=
"")
const;
63 StDetectorId detector()
const;
67 Float_t mLocalPosition[3];
71 enum {mWaferPerLadder=16};
76 inline StDetectorId StSstHit::detector()
const {
return kSstId;}
79 StSstHit::sector(
unsigned int ladder) {
80 if (ladder <= 2 || ladder == 20)
return 1;
81 if (ladder >= 3 && ladder <= 9)
return 2;
82 if (ladder >= 10 && ladder <= 12)
return 3;
83 if (ladder >= 13 && ladder <= 19)
return 4;
88 StSstHit::sector()
const {
return sector(ladder()); }
90 ostream& operator<<(ostream& os,
StSstHit const & v);