#include <TrkTrackState.h>
◆ TrkTrackState() [1/3]
TrkTrackState::TrkTrackState |
( |
| ) |
|
◆ TrkTrackState() [2/3]
TrkTrackState::TrkTrackState |
( |
const double |
Rk[5] | ) |
|
◆ TrkTrackState() [3/3]
◆ ~TrkTrackState()
Trk::TrkTrackState::~TrkTrackState |
( |
| ) |
|
|
inline |
◆ applyEnergyLoss()
void TrkTrackState::applyEnergyLoss |
( |
int |
dir | ) |
|
Definition at line 184 of file TrkTrackState.cxx.
185 double lenCorr, effLength, lV[3], gV[3];
188 if (pS ==
nullptr)
return;
194 lenCorr = 1.0 / fabs(lV[2]);
198 m_Re[4] +=
dir * (
m_Re[4] * effLength * (1.0 - 0.5 * effLength));
199 m_Ge[4][4] +=
m_Re[4] *
m_Re[4] * effLength * (0.415 - 0.744 * effLength);
202 }
else if (abs(
dir) == 2) {
◆ applyMaterialEffects()
void TrkTrackState::applyMaterialEffects |
( |
| ) |
|
◆ applyMultipleScattering()
void TrkTrackState::applyMultipleScattering |
( |
| ) |
|
Definition at line 158 of file TrkTrackState.cxx.
159 double lenCorr, sigmaMS,
s2, a2, radLength, lV[3], gV[3],
a;
162 if (pS ==
nullptr)
return;
168 lenCorr = 1.0 / fabs(lV[2]);
170 sigmaMS = 13.6 * fabs(
m_Re[4]) * sqrt(radLength) * (1.0 + 0.038 *
log(radLength));
171 s2 = sigmaMS * sigmaMS;
◆ attachToSurface()
◆ getScatteringMode()
int TrkTrackState::getScatteringMode |
( |
| ) |
const |
◆ getStateSize()
int Trk::TrkTrackState::getStateSize |
( |
| ) |
|
|
inline |
◆ getSurface()
◆ getTrackCovariance()
double Trk::TrkTrackState::getTrackCovariance |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
◆ getTrackState()
double Trk::TrkTrackState::getTrackState |
( |
int |
i | ) |
|
|
inline |
◆ report()
void TrkTrackState::report |
( |
| ) |
|
Definition at line 89 of file TrkTrackState.cxx.
90 printf(
"STATE x0=%f y0=%f phi=%f theta=%f qOverP=%f pT=%f\n",
92 printf(
"COVARIANCE \n");
93 for (
auto &
i :
m_Gk) {
◆ resetCovariance()
void TrkTrackState::resetCovariance |
( |
| ) |
|
◆ runSmoother()
void TrkTrackState::runSmoother |
( |
| ) |
|
Definition at line 218 of file TrkTrackState.cxx.
219 double dR[5], dG[5][5],
B[5][5];
224 for (
i = 0;
i < 5;
i++) {
226 for (j = 0; j < 5; j++) dG[
i][j] =
m_Gk[
i][j] -
m_Ge[
i][j];
229 if (dR[2] >
M_PI) dR[2] -= 2 *
M_PI;
230 if (dR[2] < -
M_PI) dR[2] += 2 *
M_PI;
231 for (
i = 0;
i < 5;
i++) {
239 for (
i = 0;
i < 5;
i++)
240 for (j = 0; j < 5; j++) {
242 for (
m = 0;
m < 5;
m++) B[
i][j] +=
m_A[
i][
m] * dG[
m][j];
244 for (
i = 0;
i < 5;
i++)
245 for (j = 0; j < 5; j++) {
246 for (
m = 0;
m < 5;
m++)
◆ serialize()
void TrkTrackState::serialize |
( |
char |
fileName[] | ) |
|
Definition at line 73 of file TrkTrackState.cxx.
77 fprintf(pFile,
"%f %f %f %f %f\n",
79 for (
int i = 0;
i < 5;
i++) {
80 for (
int j = 0; j < 5; j++) {
81 if (j <
i) fprintf(pFile,
" ");
◆ setPreviousState()
◆ setScatteringMode()
void TrkTrackState::setScatteringMode |
( |
int |
mode | ) |
|
◆ setSmootherGain()
void TrkTrackState::setSmootherGain |
( |
double |
A[5][5] | ) |
|
◆ setTrackCovariance()
void TrkTrackState::setTrackCovariance |
( |
double |
A[5][5] | ) |
|
◆ setTrackState()
void TrkTrackState::setTrackState |
( |
const double |
A[5] | ) |
|
◆ updateTrackCovariance()
void TrkTrackState::updateTrackCovariance |
( |
const double * |
pUpd | ) |
|
◆ updateTrackState()
void TrkTrackState::updateTrackState |
( |
const double * |
pUpd | ) |
|
◆ m_A
double Trk::TrkTrackState::m_A[5][5] {} |
|
protected |
◆ m_Ge
double Trk::TrkTrackState::m_Ge[5][5] {} |
|
protected |
◆ m_Gk
double Trk::TrkTrackState::m_Gk[5][5] {} |
|
protected |
◆ m_isScattered
bool Trk::TrkTrackState::m_isScattered |
|
protected |
◆ m_pPrevState
◆ m_pSurface
◆ m_Re
double Trk::TrkTrackState::m_Re[5] {} |
|
protected |
◆ m_Rk
double Trk::TrkTrackState::m_Rk[5] {} |
|
protected |
◆ m_scattMode
int Trk::TrkTrackState::m_scattMode |
|
protected |
The documentation for this class was generated from the following files: