23 StFgtHit::StFgtHit(
int key,
int centralStripGeoId,
float charge,
24 short disc,
short quad,
char layer,
25 float rPos,
float rErr,
float phiPos,
float phiErr,
float zPos,
float zErr )
27 StHit::setHardwarePosition(disc*8+quad*2+(layer==
'R'));
28 StHit::setCharge(charge);
34 mCentralStripGeoId = centralStripGeoId;
41 mPosition.setX( rPos*cos(phiPos) );
42 mPosition.setY( rPos*sin(phiPos) );
43 mPosition.setZ( zPos );
46 mPositionError.setZ( zErr );
50 StFgtHit::~StFgtHit() {
55 void StFgtHit::update2error(){
56 float cosPhiSq = cos( mPhi );
58 float sinPhiSq = 1 - cosPhiSq;
60 float mErrRSq = mErrR*mErrR;
61 float mErrPhiSq = mErrPhi*mErrPhi;
63 float xErrSq = mErrRSq*cosPhiSq + mErrPhiSq*sinPhiSq;
64 float yErrSq = mErrRSq*sinPhiSq + mErrPhiSq*cosPhiSq;
66 mPositionError.setX( sqrt( xErrSq ) );
67 mPositionError.setY( sqrt( yErrSq ) );