66 #include "StMemoryPool.hh"
75 unsigned int,
float,
unsigned char = 0);
81 void*
operator new(
size_t sz,
void *p) {
return p;}
82 void*
operator new(size_t) {
return mPool.alloc(); }
83 void operator delete(
void* p) { mPool.free(p); }
85 unsigned int sector()
const;
86 unsigned int plane()
const;
87 unsigned int padsInHit()
const;
88 unsigned int timebinsInHit()
const;
92 double padPosition()
const;
93 double timePosition()
const;
94 double sigmaPadPosition()
const;
95 double sigmaTimePosition()
const;
97 void setPadPosition(
float);
98 void setTimePosition(
float);
99 void setSigmaPadPosition(
float);
100 void setSigmaTimePosition(
float);
102 StDetectorId detector()
const;
110 Float_t mPadPosSigma;
111 Float_t mTimePosSigma;
116 inline StDetectorId StFtpcHit::detector()
const {
return static_cast<StDetectorId
>(StHit::bits(0, 4));}
118 inline double StFtpcHit::padPosition()
const {
return mPadPos;}
119 inline double StFtpcHit::timePosition()
const {
return mTimePos;}
120 inline double StFtpcHit::sigmaPadPosition()
const {
return mPadPosSigma;}
121 inline double StFtpcHit::sigmaTimePosition()
const {
return mTimePosSigma;}
122 inline void StFtpcHit::setPadPosition(
float val) {mPadPos = val;}
123 inline void StFtpcHit::setTimePosition(
float val) {mTimePos = val;}
124 inline void StFtpcHit::setSigmaPadPosition(
float val) {mPadPosSigma = val;}
125 inline void StFtpcHit::setSigmaTimePosition(
float val) {mTimePosSigma = val;}