53 #include "StFtpcConfMapPoint.hh"
54 #include "StMessMgr.h"
83 SetIntPoint(0., 0., 0., 0., 0., 0.);
97 StFtpcConfMapPoint::StFtpcConfMapPoint(Long_t row,
106 Float_t timepossigma,
145 SetIntPoint(0., 0., 0., 0., 0., 0.);
161 StFtpcConfMapPoint::~StFtpcConfMapPoint()
172 SetIntPoint(vertex->GetX(), vertex->GetY(), vertex->GetZ(),
173 vertex->GetXerr(), vertex->GetYerr(), vertex->GetZerr());
184 void StFtpcConfMapPoint::SetIntPoint(
const Double_t in_x,
const Double_t in_y,
const Double_t in_z,
185 const Double_t in_x_err,
const Double_t in_y_err,
const Double_t in_z_err)
207 if (
this == preceding_hit) {
208 SetIntPoint(preceding_hit->GetX(), preceding_hit->GetY(), preceding_hit->GetZ(),
209 preceding_hit->GetXerr(), preceding_hit->GetYerr(), preceding_hit->GetZerr());
213 SetIntPoint(preceding_hit->GetXt(), preceding_hit->GetYt(), preceding_hit->GetZt(),
214 preceding_hit->GetXterr(), preceding_hit->GetYterr(), preceding_hit->GetZterr());
224 void StFtpcConfMapPoint::SetShiftedCoord()
231 SetXverr(TMath::Sqrt(GetXerr()*GetXerr() + mXterr*mXterr));
232 SetYverr(TMath::Sqrt(GetYerr()*GetYerr() + mYterr*mYterr));
233 SetZverr(TMath::Sqrt(GetZerr()*GetZerr() + mZterr*mZterr));
239 void StFtpcConfMapPoint::SetConfCoord()
248 if ((r2 = mXv*mXv + mYv*mYv)) {
251 mXprimeerr = TMath::Sqrt(TMath::Power((-mXv * mXv + mYv*mYv) * mXverr, 2) + TMath::Power( 2*mXv*mYv*mYverr, 2)) / TMath::Power(mXv*mXv + mYv*mYv, 2);
252 mXprimeerr = TMath::Sqrt(TMath::Power((-mXv * mXv - 3*mYv*mYv) * mYverr, 2) + TMath::Power(-2*mXv*mYv*mXverr, 2)) / TMath::Power(mXv*mXv + mYv*mYv, 2);
266 void StFtpcConfMapPoint::SetAngles()
271 Double_t r3dim = TMath::Sqrt(mXv*mXv + mYv*mYv + mZv*mZv);
272 Double_t r2dim = TMath::Sqrt(mXv*mXv + mYv*mYv);
277 LOG_WARN <<
"The pseudorapidity cannot be calculated! (2-dim radius is zero and set to 1.e-10.)" << endm;
282 mPhi = (mYv > 0.) ? TMath::Pi() / 2. : - TMath::Pi() / 2.;
286 mPhi = (mXv > 0.) ? TMath::ASin(mYv/r2dim) : TMath::Pi() - TMath::ASin(mYv/r2dim);
290 mPhi += 2. * TMath::Pi();
293 mEta = 0.5 * TMath::Log((r3dim + mZv)/(r3dim - mZv));