16 #include <TRefArray.h>
18 #include "StEvent/StFstConsts.h"
28 int getIdTruth()
const;
29 unsigned char getDisk()
const;
30 unsigned char getWedge()
const;
31 unsigned char getSensor()
const;
32 unsigned char getApv()
const;
33 unsigned char getMaxTimeBin()
const;
34 float getMeanRStrip()
const;
35 float getMeanPhiStrip()
const;
36 float getCharge()
const;
37 float getChargeErr()
const;
38 unsigned char getNRawHits()
const;
39 unsigned char getNRawHitsR()
const;
40 unsigned char getNRawHitsPhi()
const;
41 float localPosition(
unsigned int )
const;
44 void setIdTruth(
int idtruth);
45 void setDisk(
unsigned char disk);
46 void setWedge(
unsigned char wedge);
47 void setSensor(
unsigned char sensor);
48 void setApv(
unsigned char apv);
49 void setMaxTimeBin(
unsigned char tb);
50 void setCharge(
float charge);
51 void setChargeErr(
float chargeErr);
52 void setMeanRStrip(
float meanRStrip);
53 void setMeanPhiStrip(
float meanPhiStrip);
54 void setNRawHits(
unsigned char nRawHits);
55 void setNRawHitsR(
unsigned char nRawHitsR);
56 void setNRawHitsPhi(
unsigned char nRawHitsPhi);
57 void setLocalPosition(
float,
float,
float);
59 const TVector3& xyz()
const;
60 void setXYZ(
const TVector3& p3);
62 void setHardwarePosition(
int HardwarePosition);
64 void print(
int option=0);
75 Float_t mMeanPhiStrip;
81 Float_t mLocalPosition[3];
83 UInt_t mHardwarePosition;
91 inline int StMuFstHit::getId()
const {
return mId; };
92 inline int StMuFstHit::getIdTruth()
const {
return mIdTruth; };
93 inline unsigned char StMuFstHit::getDisk()
const {
return 1 + (mHardwarePosition - 1) / kFstNumSensorsPerWedge / kFstNumWedgePerDisk;};
94 inline unsigned char StMuFstHit::getWedge()
const {
return 1 + (mHardwarePosition - 1) / kFstNumSensorsPerWedge;};
95 inline unsigned char StMuFstHit::getSensor()
const {
return (mHardwarePosition - 1) % kFstNumSensorsPerWedge;};
96 inline unsigned char StMuFstHit::getApv()
const {
return mApv; };
97 inline unsigned char StMuFstHit::getMaxTimeBin()
const {
return mMaxTimeBin; };
98 inline float StMuFstHit::getMeanRStrip()
const {
return mMeanRStrip; };
99 inline float StMuFstHit::getMeanPhiStrip()
const {
return mMeanPhiStrip; };
100 inline float StMuFstHit::getCharge()
const {
return mCharge; };
101 inline float StMuFstHit::getChargeErr()
const {
return mChargeErr; };
102 inline unsigned char StMuFstHit::getNRawHits()
const {
return mNRawHits; };
103 inline unsigned char StMuFstHit::getNRawHitsR()
const {
return mNRawHitsR; };
104 inline unsigned char StMuFstHit::getNRawHitsPhi()
const {
return mNRawHitsPhi; };
106 inline const TVector3& StMuFstHit::xyz()
const {
return mXYZ; };
108 inline void StMuFstHit::setId(
int id) { mId = id; };
109 inline void StMuFstHit::setIdTruth(
int idtruth) { mIdTruth = idtruth; };
110 inline void StMuFstHit::setApv(
unsigned char apv) { mApv = apv; };
111 inline void StMuFstHit::setMaxTimeBin(
unsigned char tb) { mMaxTimeBin = tb; };
112 inline void StMuFstHit::setMeanRStrip(
float meanRStrip) { mMeanRStrip = meanRStrip; };
113 inline void StMuFstHit::setMeanPhiStrip(
float meanPhiStrip) { mMeanPhiStrip = meanPhiStrip; };
114 inline void StMuFstHit::setCharge(
float charge) { mCharge = charge; };
115 inline void StMuFstHit::setChargeErr(
float chargeErr) { mChargeErr = chargeErr; };
116 inline void StMuFstHit::setNRawHits(
unsigned char nRawHits) { mNRawHits = nRawHits; };
117 inline void StMuFstHit::setNRawHitsR(
unsigned char nRawHitsR) { mNRawHitsR = nRawHitsR; };
118 inline void StMuFstHit::setNRawHitsPhi(
unsigned char nRawHitsPhi) { mNRawHitsPhi = nRawHitsPhi; };
120 inline void StMuFstHit::setXYZ(
const TVector3& p3) { mXYZ = p3; }
122 inline void StMuFstHit::setHardwarePosition(
int hardwarePosition) { mHardwarePosition = hardwarePosition; };
124 #endif // StMuFstHit_h