ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#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 () |
int | get_verbosity () const |
void | set_verbosity (int verbosity) |
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 |
Definition at line 34 of file Track.h.
View newest version in sPHENIX GitHub at line 34 of file Track.h
PHGenFit::Track::Track | ( | genfit::AbsTrackRep * | rep, |
TVector3 | seed_pos, | ||
TVector3 | seed_mom, | ||
TMatrixDSym | seed_cov, | ||
const int | v = 0 |
||
) |
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, get_cluster_IDs(), get_cluster_keys(), getGenFitTrack(), and verbosity.
PHGenFit::Track::~Track | ( | ) |
Default dtor.
Definition at line 133 of file Track.cc.
View newest version in sPHENIX GitHub at line 133 of file Track.cc
References _clusterIDs, _clusterkeys, and _track.
int PHGenFit::Track::addMeasurement | ( | PHGenFit::Measurement * | measurement | ) |
Add measurement.
Definition at line 88 of file Track.cc.
View newest version in sPHENIX GitHub at line 88 of file Track.cc
References _clusterIDs, _clusterkeys, _track, PHGenFit::Measurement::get_cluster_ID(), PHGenFit::Measurement::get_cluster_key(), and PHGenFit::Measurement::getMeasurement().
int PHGenFit::Track::addMeasurements | ( | std::vector< PHGenFit::Measurement * > & | measurements | ) |
Definition at line 102 of file Track.cc.
View newest version in sPHENIX GitHub at line 102 of file Track.cc
References _clusterIDs, _clusterkeys, and _track.
Referenced by main(), PHG4TrackFastSim::process_event(), and B0TrackFastSim::process_event().
int PHGenFit::Track::deleteLastMeasurement | ( | ) |
Definition at line 123 of file Track.cc.
View newest version in sPHENIX GitHub at line 123 of file Track.cc
References _clusterIDs, _clusterkeys, and _track.
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 244 of file Track.cc.
View newest version in sPHENIX GitHub at line 244 of file Track.cc
References _track, e, LogError, LogWarning, G4InuclParticleNames::tp, verbosity, and WILD_DOUBLE.
Referenced by extrapolateToCylinder(), main(), PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::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 346 of file Track.cc.
View newest version in sPHENIX GitHub at line 346 of file Track.cc
References extrapolateToCylinder(), 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 197 of file Track.cc.
View newest version in sPHENIX GitHub at line 197 of file Track.cc
References _track, e, G4InuclParticleNames::tp, and WILD_DOUBLE.
Referenced by extrapolateToLine(), main(), PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::MakeSvtxTrack().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToLine | ( | TVector3 | line_point, |
TVector3 | line_direction, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 231 of file Track.cc.
View newest version in sPHENIX GitHub at line 231 of file Track.cc
References extrapolateToLine(), 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 148 of file Track.cc.
View newest version in sPHENIX GitHub at line 148 of file Track.cc
References _track, e, G4InuclParticleNames::tp, and WILD_DOUBLE.
Referenced by extrapolateToPlane(), PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::MakeSvtxTrack().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToPlane | ( | TVector3 | O, |
TVector3 | n, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 184 of file Track.cc.
View newest version in sPHENIX GitHub at line 184 of file Track.cc
References extrapolateToPlane(), and WILD_DOUBLE.
double PHGenFit::Track::extrapolateToPoint | ( | genfit::MeasuredStateOnPlane & | state, |
TVector3 | P, | ||
const int | tr_point_id = 0 |
||
) | const |
Definition at line 719 of file Track.cc.
View newest version in sPHENIX GitHub at line 719 of file Track.cc
References _track, e, G4InuclParticleNames::tp, and WILD_DOUBLE.
Referenced by extrapolateToPoint().
genfit::MeasuredStateOnPlane * PHGenFit::Track::extrapolateToPoint | ( | TVector3 | P, |
const int | tr_point_id = 0 |
||
) | const |
Definition at line 752 of file Track.cc.
View newest version in sPHENIX GitHub at line 752 of file Track.cc
References extrapolateToPoint(), and WILD_DOUBLE.
double PHGenFit::Track::get_charge | ( | ) | const |
Definition at line 793 of file Track.cc.
View newest version in sPHENIX GitHub at line 793 of file Track.cc
References _track, charge, and verbosity.
Referenced by PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::MakeSvtxTrack().
double PHGenFit::Track::get_chi2 | ( | ) | const |
Definition at line 765 of file Track.cc.
View newest version in sPHENIX GitHub at line 765 of file Track.cc
References _track, and Acts::UnitConstants::fs.
Referenced by PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::MakeSvtxTrack().
|
inline |
|
inline |
TVector3 PHGenFit::Track::get_mom | ( | ) | const |
double PHGenFit::Track::get_ndf | ( | ) | const |
Definition at line 779 of file Track.cc.
View newest version in sPHENIX GitHub at line 779 of file Track.cc
References _track, and Acts::UnitConstants::fs.
Referenced by PHG4TrackFastSim::MakeSvtxTrack(), and B0TrackFastSim::MakeSvtxTrack().
|
inline |
|
inline |
Definition at line 118 of file Track.h.
View newest version in sPHENIX GitHub at line 118 of file Track.h
References _vertex_id.
|
inline |
Definition at line 81 of file Track.h.
View newest version in sPHENIX GitHub at line 81 of file Track.h
References _track.
Referenced by PHG4TrackFastSim::process_event(), B0TrackFastSim::process_event(), PHGenFit::Fitter::processTrack(), and Track().
|
inline |
Definition at line 98 of file Track.h.
View newest version in sPHENIX GitHub at line 98 of file Track.h
References _clusterIDs.
|
inline |
Definition at line 108 of file Track.h.
View newest version in sPHENIX GitHub at line 108 of file Track.h
References _clusterkeys.
Definition at line 113 of file Track.h.
View newest version in sPHENIX GitHub at line 113 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 360 of file Track.cc.
View newest version in sPHENIX GitHub at line 360 of file Track.cc
References e, e6, H, it, LogDebug, LogWarning, Acts::PrimitivesVisualization::plane, G4InuclParticleNames::tp, track, Acts::KalmanVertexTrackUpdater::update(), and verbosity.
|
private |
Definition at line 144 of file Track.h.
View newest version in sPHENIX GitHub at line 144 of file Track.h
Referenced by addMeasurement(), addMeasurements(), deleteLastMeasurement(), get_cluster_IDs(), set_cluster_IDs(), Track(), and ~Track().
|
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_keys(), set_cluster_keys(), Track(), and ~Track().
|
private |
Definition at line 142 of file Track.h.
View newest version in sPHENIX GitHub at line 142 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 146 of file Track.h.
View newest version in sPHENIX GitHub at line 146 of file Track.h
Referenced by get_vertex_id(), and set_vertex_id().
|
private |
Definition at line 140 of file Track.h.
View newest version in sPHENIX GitHub at line 140 of file Track.h
Referenced by extrapolateToCylinder(), get_charge(), get_verbosity(), set_verbosity(), Track(), and updateOneMeasurementKalman().