118 #include "StMeasuredPoint.h"
120 #include "StContainers.h"
130 unsigned int hardware,
132 unsigned char trakRefCount = 0,
134 unsigned short quality=0,
135 unsigned short id =0);
140 int operator==(
const StHit&)
const;
141 int operator!=(
const StHit&)
const;
143 float charge()
const;
144 unsigned int trackReferenceCount()
const;
145 unsigned int flag()
const;
148 int usedInFit()
const;
150 int qaTruth()
const {
return mQuality; }
152 const StHit* nextHit()
const;
153 unsigned int hardwarePosition()
const;
156 void setCharge(
float);
157 void setFlag(
unsigned short val) { mFlag = val; }
158 void setFitFlag(
unsigned char);
159 void setTrackReferenceCount(
unsigned char);
160 void setHardwarePosition(
unsigned int);
162 void setId(
int Id) {mId = Id;}
163 void setIdTruth(
int idtru,
int qatru=0);
164 void SetNextHit(
StHit *next = 0) {mNextHit = next;}
166 virtual StDetectorId detector()
const = 0;
167 virtual void Print(Option_t *option=
"")
const;
170 unsigned int bits(
unsigned int,
unsigned int)
const;
172 UInt_t mHardwarePosition;
179 UChar_t mTrackRefCount;
185 inline unsigned int StHit::bits(
unsigned int bit,
unsigned int nbits)
const
187 return (mHardwarePosition>>bit) & ~(~0UL<<nbits);
190 inline unsigned int StHit::hardwarePosition()
const {
return mHardwarePosition;}
191 inline int StHit::id()
const {
return mId;}
192 inline const StHit* StHit::nextHit()
const {
return mNextHit;}
194 ostream& operator<<(ostream& os,
StHit const & v);