EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/packages/trackreco/ALICEKF.h>
Public Member Functions | |
ALICEKF (PHCompositeNode *topNode, TrkrClusterContainer *cmap, double fieldDir, unsigned int min_clusters, double max_sin_phi, int verbosity) | |
std::vector< SvtxTrack_v2 > | ALICEKalmanFilter (const std::vector< std::vector< TrkrDefs::cluskey >> &chains, bool use_nhits_limit, const PositionMap &globalPositions) const |
Eigen::Matrix< double, 6, 6 > | getEigenCov (const SvtxTrack_v2 &track) const |
bool | covIsPosDef (const SvtxTrack_v2 &track) const |
void | repairCovariance (SvtxTrack_v2 &track) const |
bool | checknan (double val, const std::string &msg, int num) const |
double | get_Bz (double x, double y, double z) const |
void | CircleFitByTaubin (const std::vector< std::pair< double, double >> &pts, double &R, double &X0, double &Y0) const |
void | useConstBField (bool opt) |
void | useFixedClusterError (bool opt) |
void | setFixedClusterError (int i, double val) |
double | getClusterError (TrkrCluster *c, Acts::Vector3F global, int i, int j) const |
void | line_fit (const std::vector< std::pair< double, double >> &pts, double &a, double &b) const |
std::vector< double > | GetCircleClusterResiduals (const std::vector< std::pair< double, double >> &pts, double R, double X0, double Y0) const |
std::vector< double > | GetLineClusterResiduals (const std::vector< std::pair< double, double >> &pts, double A, double B) const |
Private Member Functions | |
int | Verbosity () const |
Private Attributes | |
PHField * | _B = nullptr |
size_t | _min_clusters_per_track = 20 |
TrkrClusterContainer * | _cluster_map = nullptr |
int | _v = 0 |
double | _Bzconst = 10*0.000299792458f |
double | _fieldDir = -1 |
double | _max_sin_phi = 1. |
bool | _use_const_field = false |
bool | _use_fixed_clus_error = true |
std::array< double, 3 > | _fixed_clus_error = {.1,.1,.1} |
Definition at line 22 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 22 of file ALICEKF.h
|
inline |
Definition at line 25 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 25 of file ALICEKF.h
References _B, _cluster_map, _fieldDir, _max_sin_phi, _min_clusters_per_track, _v, and PHFieldUtility::GetFieldMapNode().
std::vector< SvtxTrack_v2 > ALICEKF::ALICEKalmanFilter | ( | const std::vector< std::vector< TrkrDefs::cluskey >> & | chains, |
bool | use_nhits_limit, | ||
const PositionMap & | globalPositions | ||
) | const |
Definition at line 93 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 93 of file ALICEKF.cc
References _Bzconst, _cluster_map, _fieldDir, _max_sin_phi, _min_clusters_per_track, starlightConstants::alpha, c, GPUTPCTrackParam::CalculateFitParameters(), checknan(), CircleFitByTaubin(), cos(), Acts::Test::cov, covIsPosDef(), d, GPUTPCTrackParam::Filter(), TrkrClusterContainer::findCluster(), get_Bz(), SvtxTrack_v2::get_x(), SvtxTrack_v2::get_y(), SvtxTrack_v2::get_z(), GPUTPCTrackParam::GetChi2(), getClusterError(), GPUTPCTrackParam::GetCov(), GPUTPCTrackParam::GetDzDs(), GPUTPCTrackParam::GetErr2QPt(), GPUTPCTrackParam::GetErr2Y(), GPUTPCTrackParam::GetErr2Z(), GPUTPCTrackParam::GetKappa(), TrkrDefs::getLayer(), GPUTPCTrackParam::GetNDF(), GPUTPCTrackParam::GetQPt(), TrkrCluster::getRPhiError(), GPUTPCTrackParam::GetSinPhi(), GPUTPCTrackParam::GetX(), GPUTPCTrackParam::GetY(), GPUTPCTrackParam::GetZ(), GPUTPCTrackParam::InitParam(), SvtxTrack_v2::insert_cluster_key(), G4TTL::layer, LogDebug, LogError, LogWarning, M_PI, p, Acts::IntegrationTest::R, repairCovariance(), GPUTPCTrackParam::Rotate(), Acts::UnitConstants::s, SvtxTrack_v2::set_charge(), SvtxTrack_v2::set_chisq(), SvtxTrack_v2::set_error(), SvtxTrack_v2::set_id(), SvtxTrack_v2::set_ndf(), SvtxTrack_v2::set_px(), SvtxTrack_v2::set_py(), SvtxTrack_v2::set_pz(), SvtxTrack_v2::set_x(), SvtxTrack_v2::set_y(), SvtxTrack_v2::set_z(), GPUTPCTrackParam::SetDzDs(), GPUTPCTrackParam::SetQPt(), GPUTPCTrackParam::SetSinPhi(), GPUTPCTrackParam::SetX(), GPUTPCTrackParam::SetY(), GPUTPCTrackParam::SetZ(), square(), nlohmann::to_string(), Acts::Test::transform, GPUTPCTrackParam::TransportToX(), Verbosity(), x, y, and z.
bool ALICEKF::checknan | ( | double | val, |
const std::string & | msg, | ||
int | num | ||
) | const |
Definition at line 35 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 35 of file ALICEKF.cc
References Verbosity().
Referenced by ALICEKalmanFilter().
void ALICEKF::CircleFitByTaubin | ( | const std::vector< std::pair< double, double >> & | pts, |
double & | R, | ||
double & | X0, | ||
double & | Y0 | ||
) | const |
Definition at line 754 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 754 of file ALICEKF.cc
References starlightConstants::A2, Dy, Acts::IntegrationTest::R, x, and y.
Referenced by ALICEKalmanFilter().
bool ALICEKF::covIsPosDef | ( | const SvtxTrack_v2 & | track | ) | const |
Definition at line 726 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 726 of file ALICEKF.cc
References Acts::Test::cov, and getEigenCov().
Referenced by ALICEKalmanFilter().
double ALICEKF::get_Bz | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Definition at line 44 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 44 of file ALICEKF.cc
References _B, _use_const_field, Acts::UnitConstants::cm, PHField::GetFieldValue(), and p.
Referenced by ALICEKalmanFilter().
std::vector< double > ALICEKF::GetCircleClusterResiduals | ( | const std::vector< std::pair< double, double >> & | pts, |
double | R, | ||
double | X0, | ||
double | Y0 | ||
) | const |
Definition at line 876 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 876 of file ALICEKF.cc
References Acts::IntegrationTest::R, square(), Acts::Test::transform, x, and y.
double ALICEKF::getClusterError | ( | TrkrCluster * | c, |
Acts::Vector3F | global, | ||
int | i, | ||
int | j | ||
) | const |
Definition at line 53 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 53 of file ALICEKF.cc
References _fixed_clus_error, _use_fixed_clus_error, cos(), check_license::err(), and TrkrCluster::getActsLocalError().
Referenced by ALICEKalmanFilter().
Eigen::Matrix< double, 6, 6 > ALICEKF::getEigenCov | ( | const SvtxTrack_v2 & | track | ) | const |
Definition at line 713 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 713 of file ALICEKF.cc
References Acts::Test::cov, and SvtxTrack_v2::get_error().
Referenced by covIsPosDef(), and repairCovariance().
std::vector< double > ALICEKF::GetLineClusterResiduals | ( | const std::vector< std::pair< double, double >> & | pts, |
double | A, | ||
double | B | ||
) | const |
Definition at line 890 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 890 of file ALICEKF.cc
References kdfinder::abs(), c, square(), Acts::Test::transform, and z.
void ALICEKF::line_fit | ( | const std::vector< std::pair< double, double >> & | pts, |
double & | a, | ||
double & | b | ||
) | const |
Definition at line 844 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 844 of file ALICEKF.cc
References square(), Verbosity(), and z.
void ALICEKF::repairCovariance | ( | SvtxTrack_v2 & | track | ) | const |
Definition at line 736 of file ALICEKF.cc.
View newest version in sPHENIX GitHub at line 736 of file ALICEKF.cc
References Acts::Test::cov, Acts::UnitConstants::e, getEigenCov(), and SvtxTrack_v2::set_error().
Referenced by ALICEKalmanFilter().
|
inline |
Definition at line 48 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 48 of file ALICEKF.h
References _fixed_clus_error.
|
inline |
Definition at line 46 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 46 of file ALICEKF.h
References _use_const_field.
|
inline |
Definition at line 47 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 47 of file ALICEKF.h
References _use_fixed_clus_error.
|
inlineprivate |
Definition at line 57 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 57 of file ALICEKF.h
References _v.
Referenced by ALICEKalmanFilter(), checknan(), and line_fit().
|
private |
|
private |
Definition at line 61 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 61 of file ALICEKF.h
Referenced by ALICEKalmanFilter().
|
private |
|
private |
|
private |
Definition at line 66 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 66 of file ALICEKF.h
Referenced by getClusterError(), and setFixedClusterError().
|
private |
|
private |
|
private |
|
private |
Definition at line 65 of file ALICEKF.h.
View newest version in sPHENIX GitHub at line 65 of file ALICEKF.h
Referenced by getClusterError(), and useFixedClusterError().
|
private |