33 StRnDHit::~StRnDHit() { }
35 StRnDHit::StRnDHit() :
48 mDetectorId(kUnknownId),
49 mErrorMatrix{0,0,0, 0,0,0, 0,0,0}
51 mLayer = mLadder = mWafer = -1;
52 mExtraByte1 = mExtraByte0 = 0;
53 mKey = mVolumeId = -1;
54 mDouble0 = mDouble1 = mDouble2 = mDouble3 = mDouble4 = 0.;
55 mDetectorId = kUnknownId;
58 void StRnDHit::setErrorMatrix(
const float* M )
60 for (
int i=0;i<9;i++ )
62 mErrorMatrix[i] = M[i];
66 StMatrixF StRnDHit::covariantMatrix()
const {
70 M(1,1) = mErrorMatrix[0];
71 M(1,2) = mErrorMatrix[1];
72 M(1,3) = mErrorMatrix[2];
74 M(2,1) = mErrorMatrix[3];
75 M(2,2) = mErrorMatrix[4];
76 M(2,3) = mErrorMatrix[5];
78 M(3,1) = mErrorMatrix[6];
79 M(3,2) = mErrorMatrix[7];
80 M(3,3) = mErrorMatrix[8];
89 unsigned int hw,
float q,
unsigned char c,
90 unsigned short idTruth,
unsigned short quality,
91 unsigned short id, StDetectorId dId)
92 :
StHit(p, e, hw, q, c, idTruth, quality, id)
94 mLayer = mLadder = mWafer = -1;
95 mExtraByte0 = mExtraByte1 = 0;
97 mKey = mVolumeId = -1;
99 mDouble0 = mDouble1 = mDouble2 = mDouble3 = mDouble4 = 0.;
103 StDetectorId StRnDHit::detector()
const {
return mDetectorId;}
105 void StRnDHit::setDetectorId(StDetectorId
id) {mDetectorId = id;}
107 ostream& operator<<(ostream& os,
const StRnDHit&
hit)
109 return os <<
"HFT Hit -I- \tLayer:"<<hit.mLayer<<
" ladder: "<<hit.
mLadder
110 <<
" wafer: "<< hit.
mWafer<<
"\n\t\t"<< hit
111 <<
" \n\t\tExtraByte0: "<<hit.
mExtraByte0<<
" ExtraByte1: "<<hit.mExtraByte1
112 <<
"\n\t\tDoubles: "<< hit.
mDouble0<<
" "<<hit.mDouble1<<
" "<<hit.mDouble2
113 << hit.mDouble3 <<
" " << hit.mDouble4<<endl;
Double_t mDouble0
VolumeId from StMcHit.