CbmRoot
Loading...
Searching...
No Matches
CbmTofTrackletParam.cxx
Go to the documentation of this file.
1/* Copyright (C) 2005-2020 PI-UHd, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Norbert Herrmann [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- FairTrackParam source file -----
7// ----- Created 27/01/05 by V. Friese -----
8// -------------------------------------------------------------------------
9
10#include "CbmTofTrackletParam.h"
11
12#include <Logger.h> // for Logger, LOG
13
14double CbmTofTrackletParam::GetZr(double R) const
15{
16 double P = (fTx + fTy);
17 double Q = 0.5 * (fX * fX + fY * fY - R * R);
18 double Arg = P * P * 0.25 - Q;
19 LOG(info) << " GetZr " << R << ", P " << P << ", Q " << Q << ", Arg " << Arg;
20
21 if (Arg > 0.) {
22 double z = -P * 0.5 + std::sqrt(Arg);
23 LOG(info) << " GetZr " << R << ", P " << P << ", Q " << Q << ", Arg " << Arg << ", z " << z;
24 return z;
25 }
26 return 0.;
27}
28
29
ClassImp(CbmConverterManager)
Data class for track parameters.
double GetZr(double R) const