37 StPxlHit::~StPxlHit() { }
39 StPxlHit::StPxlHit() :
StHit(),
51 StPxlHit::StPxlHit(
const double localPos[3],
unsigned sector,
unsigned ladder,
unsigned sensor,
53 unsigned int hwPosition,
float charge,
unsigned char trackRefCount,
54 unsigned short idTruth,
unsigned short quality,
unsigned short id) :
55 StHit(position, error, hwPosition, charge, trackRefCount, idTruth, quality, id),
65 std::copy(localPos, localPos+3, mLocalPosition);
76 StPxlHit::StPxlHit(
const double localPos[3],
unsigned sector,
unsigned ladder,
unsigned sensor,
77 unsigned short idTruth) :
89 std::copy(localPos, localPos+3, mLocalPosition);
100 StPxlHit::StPxlHit(
float meanRow,
float meanColumn,
unsigned int sector,
unsigned int ladder,
107 mMeanColumn(meanColumn),
115 StDetectorId StPxlHit::detector()
const {
return mDetectorId;}
117 void StPxlHit::setDetectorId(StDetectorId
id) {mDetectorId = id;}
119 float StPxlHit::localPosition(
unsigned int i)
const
122 return mLocalPosition[i];
127 void StPxlHit::setLocalPosition(
float u,
float v,
float w)
129 mLocalPosition[0] = u;
130 mLocalPosition[1] = v;
131 mLocalPosition[2] = w;
134 ostream& operator<<(ostream& os,
const StPxlHit&
hit)
136 os <<
"HFT Hit -I- \tSector:"<<
static_cast<int>(hit.sector())
137 <<
" ladder: "<< static_cast<int>(hit.ladder())
138 <<
" sensor: "<< static_cast<int>(hit.sensor())
139 <<
" localPosition[0]/localPosition[1]/localPosition[2] : " << hit.localPosition(0)
140 <<
"/" << hit.localPosition(1)
141 <<
"/" << hit.localPosition(2)
142 <<
" kDetectorId : " << hit.detector()