16 StFstHit::StFstHit(
unsigned char disk,
unsigned char wedge,
unsigned char sensor,
unsigned char apv,
float charge,
float chargeErr,
unsigned char maxTB,
float meanRStrip,
float meanPhiStrip,
17 unsigned char nRawHits,
unsigned char nRawHitsR,
unsigned char nRawHitsPhi) :
StHit(),
20 mMeanRStrip(meanRStrip),
21 mMeanPhiStrip(meanPhiStrip),
22 mChargeErr(chargeErr),
24 mNRawHitsR(nRawHitsR),
25 mNRawHitsPhi(nRawHitsPhi),
29 StHit::setHardwarePosition(1 + (wedge - 1)*kFstNumSensorsPerWedge + sensor);
30 StHit::setCharge(charge);
35 StHit(p, e, hw, q, c),
50 StDetectorId StFstHit::detector()
const {
return mDetectorId;}
52 void StFstHit::setDetectorId(StDetectorId
id) {mDetectorId = id;}
54 void StFstHit::setLocalPosition(
float vR,
float vPhi,
float vZ)
61 float StFstHit::localPosition(
unsigned int i)
const
69 std::ostream &operator<<(std::ostream &os,
const StFstHit &
hit)
71 os <<
"FST Hit -I- disk: " <<
static_cast<int>(hit.getDisk())
72 <<
" wedge: " << static_cast<int>(hit.getWedge())
73 <<
" sensor: " << static_cast<int>(hit.getSensor())
74 <<
" localPosition[0]/localPosition[1]/localPosition[2] : " << hit.localPosition(0)
75 <<
"/" << hit.localPosition(1)
76 <<
"/" << hit.localPosition(2)
77 <<
" ADC : " << hit.charge() <<
"+-" << hit.getChargeErr()
78 <<
" detector: " << hit.detector()
Float_t mLocalPosition[3]
local position of hit inside the sensor