Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/PHGenFitPkg/PHGenFit/Track.h>
Public Member Functions | |
Track (genfit::AbsTrackRep *rep, TVector3 seed_pos, TVector3 seed_mom, TMatrixDSym seed_cov, const int v=0) | |
Default ctor. | |
Track (const PHGenFit::Track &t) | |
Copy constructor. | |
~Track () | |
Default dtor. | |
int | addMeasurement (PHGenFit::Measurement *measurement) |
Add measurement. | |
int | addMeasurements (std::vector< PHGenFit::Measurement * > &measurements) |
int | deleteLastMeasurement () |
int | updateOneMeasurementKalman (const std::vector< PHGenFit::Measurement * > &measurements, std::map< double, std::shared_ptr< PHGenFit::Track > > &incr_chi2s_new_tracks, const int base_tp_idx=-1, const int direction=1, const float blowup_factor=1., const bool use_fitted_state=false) const |
double | extrapolateToPlane (genfit::MeasuredStateOnPlane &state, TVector3 O, TVector3 n, const int tr_point_id=0) const |
double | extrapolateToLine (genfit::MeasuredStateOnPlane &state, TVector3 line_point, TVector3 line_direction, const int tr_point_id=0) const |
double | extrapolateToCylinder (genfit::MeasuredStateOnPlane &state, double radius, TVector3 line_point, TVector3 line_direction, const int tr_point_id=0, const int direction=1) const |
double | extrapolateToPoint (genfit::MeasuredStateOnPlane &state, TVector3 P, const int tr_point_id=0) const |
genfit::MeasuredStateOnPlane * | extrapolateToPlane (TVector3 O, TVector3 n, const int tr_point_id=0) const |
genfit::MeasuredStateOnPlane * | extrapolateToLine (TVector3 line_point, TVector3 line_direction, const int tr_point_id=0) const |
genfit::MeasuredStateOnPlane * | extrapolateToCylinder (double radius, TVector3 line_point, TVector3 line_direction, const int tr_point_id=0, const int direction=1) const |
genfit::MeasuredStateOnPlane * | extrapolateToPoint (TVector3 P, const int tr_point_id=0) const |
genfit::Track * | getGenFitTrack () |
genfit::Track * | getGenFitTrack () const |
double | get_chi2 () const |
double | get_ndf () const |
double | get_charge () const |
TVector3 | get_mom () const |
const std::vector< unsigned int > & | get_cluster_IDs () const |
void | set_cluster_IDs (const std::vector< unsigned int > &clusterIDs) |
const std::vector < TrkrDefs::cluskey > & | get_cluster_keys () const |
void | set_cluster_keys (const std::vector< TrkrDefs::cluskey > &clusterkeys) |
void | set_vertex_id (const unsigned int vert_id) |
unsigned int | get_vertex_id () const |
int | get_verbosity () const |
void | set_verbosity (int v) |
Private Member Functions | |
Track | operator= (Track &trk)=delete |
Private Attributes | |
int | verbosity |
genfit::Track * | _track |
std::vector< unsigned int > | _clusterIDs |
std::vector< TrkrDefs::cluskey > | _clusterkeys |
unsigned int | _vertex_id {std::numeric_limits<unsigned int>::max()} |
Definition at line 35 of file Track.h.
View newest version in sPHENIX GitHub at line 35 of file Track.h
PHGenFit::Track::Track | ( | genfit::AbsTrackRep * | rep, |
TVector3 | seed_pos, | ||
TVector3 | seed_mom, | ||
TMatrixDSym | seed_cov, | ||
const int | v = 0 |
||
) |
Default ctor.
Definition at line 62 of file Track.cc.
View newest version in sPHENIX GitHub at line 62 of file Track.cc
References _track, genfit::MeasuredStateOnPlane::get6DStateCov(), genfit::MeasuredStateOnPlane::setPosMomCov(), testSigmaEff::v, and verbosity.
PHGenFit::Track::Track | ( | const PHGenFit::Track & | t | ) |
Copy constructor.
Definition at line 80 of file Track.cc.
View newest version in sPHENIX GitHub at line 80 of file Track.cc
References _clusterIDs, _clusterkeys, _track, _vertex_id, get_cluster_IDs(), get_cluster_keys(), get_vertex_id(), getGenFitTrack(), and verbosity.
PHGenFit::Track::~Track | ( | ) |
Default dtor.
Definition at line 134 of file Track.cc.
View newest version in sPHENIX GitHub at line 134 of file Track.cc
References _clusterIDs, _clusterkeys, and _track.
int PHGenFit::Track::addMeasurement | ( | PHGenFit::Measurement * | measurement | ) |
Add measurement.
Definition at line 89 of file Track.cc.
View newest version in sPHENIX GitHub at line 89 of file Track.cc
References _clusterIDs, _clusterkeys, _track, PHGenFit::Measurement::get_cluster_ID(), PHGenFit::Measurement::get_cluster_key(), PHGenFit::Measurement::getMeasurement(), and genfit::Track::insertPoint().
int PHGenFit::Track::addMeasurements | ( | std::vector< PHGenFit::Measurement * > & | measurements | ) |
Definition at line 103 of file Track.cc.
View newest version in sPHENIX GitHub at line 103 of file Track.cc
References _clusterIDs, _clusterkeys, _track, and genfit::Track::insertPoint().
Referenced by main(), BDiJetModule::MakeGenFitTrack(), SVReco::MakeGenFitTrack(), and PHG4TrackFastSim::process_event().
int PHGenFit::Track::deleteLastMeasurement | ( | ) |
Definition at line 124 of file Track.cc.
View newest version in sPHENIX GitHub at line 124 of file Track.cc
References _clusterIDs, _clusterkeys, _track, and genfit::Track::deletePoint().
double PHGenFit::Track::extrapolateToCylinder | ( | genfit::MeasuredStateOnPlane & | state, |
double | radius, | ||
TVector3 | line_point, | ||
TVector3 | line_direction, | ||
const int | tr_point_id = 0 , |
||
const int | direction = 1 |
||
) | const |
Definition at line 245 of file Track.cc.
View newest version in sPHENIX GitHub at line 245 of file Track.cc
References _track, assert, Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToCylinder(), genfit::Track::getCardinalRep(), genfit::Track::getCovSeed(), genfit::TrackPoint::getFitterInfo(), genfit::Track::getNumPointsWithMeasurement(), genfit::Track::getPointWithMeasurement(), genfit::Track::getStateSeed(), LogError, LogWarning, genfit::AbsTrackRep::setPosMomCov(), physmon_simulation::tp, verbosity, genfit::Exception::what(), and WILD_DOUBLE.
Referenced by extrapolateToCylinder(), main(), and PHG4TrackFastSim::MakeSvtxTrack().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToCylinder | ( | double | radius, |
TVector3 | line_point, | ||
TVector3 | line_direction, | ||
const int | tr_point_id = 0 , |
||
const int | direction = 1 |
||
) | const |
Definition at line 347 of file Track.cc.
View newest version in sPHENIX GitHub at line 347 of file Track.cc
References assert, extrapolateToCylinder(), filter::state, and WILD_DOUBLE.
double PHGenFit::Track::extrapolateToLine | ( | genfit::MeasuredStateOnPlane & | state, |
TVector3 | line_point, | ||
TVector3 | line_direction, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 198 of file Track.cc.
View newest version in sPHENIX GitHub at line 198 of file Track.cc
References _track, Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToLine(), genfit::Track::getCardinalRep(), genfit::TrackPoint::getFitterInfo(), genfit::Track::getPointWithMeasurementAndFitterInfo(), physmon_simulation::tp, genfit::Exception::what(), and WILD_DOUBLE.
Referenced by extrapolateToLine(), main(), SVReco::MakeSvtxTrack(), and PHG4TrackFastSim::MakeSvtxTrack().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToLine | ( | TVector3 | line_point, |
TVector3 | line_direction, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 232 of file Track.cc.
View newest version in sPHENIX GitHub at line 232 of file Track.cc
References extrapolateToLine(), filter::state, and WILD_DOUBLE.
double PHGenFit::Track::extrapolateToPlane | ( | genfit::MeasuredStateOnPlane & | state, |
TVector3 | O, | ||
TVector3 | n, | ||
const int | tr_point_id = 0 |
||
) | const |
track_point 0 is the first one, and -1 is the last one
Definition at line 149 of file Track.cc.
View newest version in sPHENIX GitHub at line 149 of file Track.cc
References _track, Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::Track::getCardinalRep(), genfit::TrackPoint::getFitterInfo(), genfit::Track::getPointWithMeasurementAndFitterInfo(), physmon_simulation::tp, genfit::Exception::what(), and WILD_DOUBLE.
Referenced by extrapolateToPlane(), and PHG4TrackFastSim::MakeSvtxTrack().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToPlane | ( | TVector3 | O, |
TVector3 | n, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 185 of file Track.cc.
View newest version in sPHENIX GitHub at line 185 of file Track.cc
References extrapolateToPlane(), filter::state, and WILD_DOUBLE.
double PHGenFit::Track::extrapolateToPoint | ( | genfit::MeasuredStateOnPlane & | state, |
TVector3 | P, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 720 of file Track.cc.
View newest version in sPHENIX GitHub at line 720 of file Track.cc
References _track, Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPoint(), genfit::Track::getCardinalRep(), genfit::TrackPoint::getFitterInfo(), genfit::Track::getPointWithMeasurementAndFitterInfo(), physmon_simulation::tp, genfit::Exception::what(), and WILD_DOUBLE.
Referenced by extrapolateToPoint(), BDiJetModule::MakeGenFitTrack(), SVReco::MakeSvtxTrack(), and SVReco::printGenFitTrackKinematics().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToPoint | ( | TVector3 | P, |
const int | tr_point_id = 0 |
||
) | const |
Definition at line 753 of file Track.cc.
View newest version in sPHENIX GitHub at line 753 of file Track.cc
References extrapolateToPoint(), filter::state, and WILD_DOUBLE.
double PHGenFit::Track::get_charge | ( | ) | const |
Definition at line 794 of file Track.cc.
View newest version in sPHENIX GitHub at line 794 of file Track.cc
References _track, charge(), genfit::Track::getCardinalRep(), genfit::AbsTrackRep::getCharge(), genfit::KalmanFitterInfo::getFittedState(), genfit::TrackPoint::getFitterInfo(), genfit::Track::getNumPointsWithMeasurement(), genfit::Track::getPointWithMeasurement(), filter::state, and verbosity.
Referenced by SVReco::MakeSvtxTrack(), and PHG4TrackFastSim::MakeSvtxTrack().
double PHGenFit::Track::get_chi2 | ( | ) | const |
Definition at line 766 of file Track.cc.
View newest version in sPHENIX GitHub at line 766 of file Track.cc
References _track, Acts::UnitConstants::fs, genfit::Track::getCardinalRep(), genfit::FitStatus::getChi2(), and genfit::Track::getFitStatus().
Referenced by SVReco::MakeSvtxTrack(), and PHG4TrackFastSim::MakeSvtxTrack().
|
inline |
|
inline |
TVector3 PHGenFit::Track::get_mom | ( | ) | const |
Definition at line 835 of file Track.cc.
View newest version in sPHENIX GitHub at line 835 of file Track.cc
References _track, genfit::Track::getCardinalRep(), genfit::KalmanFitterInfo::getFittedState(), genfit::TrackPoint::getFitterInfo(), genfit::StateOnPlane::getMom(), genfit::Track::getNumPointsWithMeasurement(), genfit::Track::getPointWithMeasurement(), and filter::state.
double PHGenFit::Track::get_ndf | ( | ) | const |
Definition at line 780 of file Track.cc.
View newest version in sPHENIX GitHub at line 780 of file Track.cc
References _track, Acts::UnitConstants::fs, genfit::Track::getCardinalRep(), genfit::Track::getFitStatus(), and genfit::FitStatus::getNdf().
Referenced by SVReco::MakeSvtxTrack(), and PHG4TrackFastSim::MakeSvtxTrack().
|
inline |
|
inline |
|
inline |
Definition at line 82 of file Track.h.
View newest version in sPHENIX GitHub at line 82 of file Track.h
References _track.
Referenced by SVReco::findSecondaryVertex(), SVReco::MakeGenFitTrack(), SVReco::MakeSvtxTrack(), BDiJetModule::process_event(), PHGenFit::Fitter::processTrack(), and Track().
|
inline |
|
inline |
Definition at line 99 of file Track.h.
View newest version in sPHENIX GitHub at line 99 of file Track.h
References _clusterIDs.
|
inline |
Definition at line 109 of file Track.h.
View newest version in sPHENIX GitHub at line 109 of file Track.h
References _clusterkeys.
|
inline |
|
inline |
Definition at line 114 of file Track.h.
View newest version in sPHENIX GitHub at line 114 of file Track.h
References _vertex_id.
int PHGenFit::Track::updateOneMeasurementKalman | ( | const std::vector< PHGenFit::Measurement * > & | measurements, |
std::map< double, std::shared_ptr< PHGenFit::Track > > & | incr_chi2s_new_tracks, | ||
const int | base_tp_idx = -1 , |
||
const int | direction = 1 , |
||
const float | blowup_factor = 1. , |
||
const bool | use_fitted_state = false |
||
) | const |
A new TrackPoint created in addMeasurement PHGenFit: clusterID also registerd
Get the pointer of the TrackPoint just created
Definition at line 361 of file Track.cc.
View newest version in sPHENIX GitHub at line 361 of file Track.cc
References genfit::KalmanFitterInfo::addMeasurementsOnPlane(), genfit::MeasuredStateOnPlane::blowUpCov(), genfit::MeasuredStateOnPlane::clone(), Acts::Test::cov, Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::StateOnPlane::getAuxInfo(), genfit::MeasuredStateOnPlane::getCov(), genfit::KalmanFitterInfo::getFittedState(), genfit::TrackPoint::getFitterInfo(), genfit::MeasurementOnPlane::getHMatrix(), genfit::KalmanFitterInfo::getMeasurementsOnPlane(), genfit::KalmanFitterInfo::getPrediction(), genfit::TrackPoint::getRawMeasurements(), genfit::StateOnPlane::getState(), genfit::KalmanFitterInfo::getUpdate(), H, genfit::TrackPoint::hasFitterInfo(), genfit::tools::invertMatrix(), it, LogDebug, LogWarning, Acts::PrimitivesView3DTest::plane, genfit::StateOnPlane::setAuxInfo(), genfit::TrackPoint::setFitterInfo(), genfit::AbsTrackRep::setPosMomCov(), genfit::KalmanFitterInfo::setPrediction(), genfit::MeasuredStateOnPlane::setStateCovPlane(), genfit::KalmanFitterInfo::setUpdate(), filter::state, physmon_simulation::tp, Acts::KalmanVertexTrackUpdater::update(), verbosity, and genfit::Exception::what().
|
private |
Definition at line 145 of file Track.h.
View newest version in sPHENIX GitHub at line 145 of file Track.h
Referenced by addMeasurement(), addMeasurements(), deleteLastMeasurement(), get_cluster_IDs(), set_cluster_IDs(), Track(), and ~Track().
|
private |
Definition at line 146 of file Track.h.
View newest version in sPHENIX GitHub at line 146 of file Track.h
Referenced by addMeasurement(), addMeasurements(), deleteLastMeasurement(), get_cluster_keys(), set_cluster_keys(), Track(), and ~Track().
|
private |
Definition at line 143 of file Track.h.
View newest version in sPHENIX GitHub at line 143 of file Track.h
Referenced by addMeasurement(), addMeasurements(), deleteLastMeasurement(), extrapolateToCylinder(), extrapolateToLine(), extrapolateToPlane(), extrapolateToPoint(), get_charge(), get_chi2(), get_mom(), get_ndf(), getGenFitTrack(), Track(), and ~Track().
|
private |
Definition at line 147 of file Track.h.
View newest version in sPHENIX GitHub at line 147 of file Track.h
Referenced by get_vertex_id(), set_vertex_id(), and Track().
|
private |
Definition at line 141 of file Track.h.
View newest version in sPHENIX GitHub at line 141 of file Track.h
Referenced by extrapolateToCylinder(), get_charge(), get_verbosity(), set_verbosity(), Track(), and updateOneMeasurementKalman().