30 #include "StMemoryPool.hh"
39 unsigned int hwPosition,
float charge,
unsigned char trackRefCount = 0,
40 unsigned short idTruth=0,
unsigned short quality=0,
unsigned short id =0,
41 StDetectorId = kUnknownId);
44 StDetectorId detector()
const;
45 unsigned int layer()
const;
46 unsigned int ladder()
const;
47 unsigned int wafer()
const;
49 int extraByte0()
const;
50 int extraByte1()
const;
55 double double0()
const;
56 double double1()
const;
57 double double2()
const;
58 double double3()
const;
59 double double4()
const;
62 void setLadder(
short);
64 void setExtraByte0(
int);
65 void setExtraByte1(
int);
66 void setDetectorId(StDetectorId);
69 void setVolumeId(
int);
71 void setDouble0(
double);
72 void setDouble1(
double);
73 void setDouble2(
double);
74 void setDouble3(
double);
75 void setDouble4(
double);
77 void setErrorMatrix(
const float* M);
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 friend ostream& operator<<(ostream& os,
const StRnDHit& h);
109 StDetectorId mDetectorId;
111 float mErrorMatrix[9];
118 inline unsigned int StRnDHit::layer()
const {
return mLayer;}
119 inline unsigned int StRnDHit::ladder()
const {
return mLadder;}
120 inline unsigned int StRnDHit::wafer()
const {
return mWafer;}
121 inline int StRnDHit::extraByte0()
const {
return mExtraByte0;}
122 inline int StRnDHit::extraByte1()
const {
return mExtraByte1;}
123 inline int StRnDHit::key()
const {
return mKey;}
124 inline int StRnDHit::volumeId()
const {
return mVolumeId;}
125 inline double StRnDHit::double0()
const {
return mDouble0;}
126 inline double StRnDHit::double1()
const {
return mDouble1;}
127 inline double StRnDHit::double2()
const {
return mDouble2;}
128 inline double StRnDHit::double3()
const {
return mDouble3;}
129 inline double StRnDHit::double4()
const {
return mDouble4;}
131 inline void StRnDHit::setLayer(
short v) {mLayer = v;}
132 inline void StRnDHit::setLadder(
short v) {
mLadder = v;}
133 inline void StRnDHit::setWafer(
short v) {
mWafer = v;}
134 inline void StRnDHit::setExtraByte0(
int v) {
mExtraByte0=v;}
135 inline void StRnDHit::setExtraByte1(
int v) {mExtraByte1=v;}
136 inline void StRnDHit::setKey(
int v) {mKey = v;}
137 inline void StRnDHit::setVolumeId(
int v) {
mVolumeId=v;}
138 inline void StRnDHit::setDouble0(
double val) {
mDouble0 = val;}
139 inline void StRnDHit::setDouble1(
double val) {mDouble1 = val;}
140 inline void StRnDHit::setDouble2(
double val) {mDouble2 = val;}
141 inline void StRnDHit::setDouble3(
double val) {mDouble3 = val;}
142 inline void StRnDHit::setDouble4(
double val) {mDouble4 = val;}
Int_t mVolumeId
key from StMcHit
Double_t mDouble0
VolumeId from StMcHit.