24 #ifndef genfit_Track_h 25 #define genfit_Track_h 40 class KalmanFitStatus;
96 Track(
AbsTrackRep* trackRep,
const TVector3& posSeed,
const TVector3& momSeed);
97 Track(
AbsTrackRep* trackRep,
const TVectorD& stateSeed,
const TMatrixDSym& covSeed);
101 void swap(
Track& other);
104 virtual void Clear(Option_t* =
"");
109 const std::vector< genfit::TrackPoint* > &
getPoints()
const {
return trackPoints_;}
112 TrackPoint* getPointWithMeasurement(
int id)
const;
150 bool hasFitStatus(
const AbsTrackRep* rep = NULL)
const;
155 bool hasKalmanFitStatus(
const AbsTrackRep* rep = NULL)
const;
165 void setStateSeed(
const TVectorD& s) {stateSeed_.ResizeTo(s); stateSeed_ = s;}
166 void setStateSeed(
const TVector3& pos,
const TVector3& mom);
169 void setCovSeed(
const TMatrixDSym& c) {covSeed_.ResizeTo(c); covSeed_ = c;}
181 void insertPoint(
TrackPoint* point,
int id = -1);
190 void insertPoints(std::vector<genfit::TrackPoint*> points,
int id = -1);
192 void deletePoint(
int id);
205 void mergeTrack(
const Track* other,
int id = -1);
210 void deleteTrackRep(
int id);
212 void setCardinalRep(
int id);
214 void determineCardinalRep();
225 bool udpateSeed(
int id = 0,
AbsTrackRep* rep = NULL,
bool biased =
true);
228 void reverseTrackPoints();
232 stateSeed_(3) *= -1; stateSeed_(4) *= -1; stateSeed_(5) *= -1;
247 void deleteForwardInfo(
int startId = 0,
int endId = -1,
const AbsTrackRep* rep = NULL);
248 void deleteBackwardInfo(
int startId = 0,
int endId = -1,
const AbsTrackRep* rep = NULL);
249 void deleteReferenceInfo(
int startId = 0,
int endId = -1,
const AbsTrackRep* rep = NULL);
250 void deleteMeasurementInfo(
int startId = 0,
int endId = -1,
const AbsTrackRep* rep = NULL);
251 void deleteFitterInfo(
int startId = 0,
int endId = -1,
const AbsTrackRep* rep = NULL);
254 double getTrackLen(
AbsTrackRep* rep = NULL,
int startId = 0,
int endId = -1)
const;
256 double getTOF(
AbsTrackRep* rep = NULL,
int startId = 0,
int endId = -1)
const;
269 void fixWeights(
AbsTrackRep* rep = NULL,
int startId = 0,
int endId = -1);
285 void prune(
const Option_t* =
"CFLWRMIU");
287 void Print(
const Option_t* =
"")
const;
289 bool checkConsistency()
const;
293 void trackHasChanged();
295 void fillPointsWithMeasurement();
320 #endif // genfit_Track_h
const std::vector< genfit::TrackPoint * > & getPoints() const
Contains the measurement and covariance in raw detector coordinates.
bool operator()(const TrackPoint *lhs, const TrackPoint *rhs) const
AbsTrackRep * getCardinalRep() const
Get cardinal track representation.
std::vector< TrackPoint * > trackPoints_
std::map< const AbsTrackRep *, FitStatus * > fitStatuses_
helper
void setTimeSeed(double time)
unsigned int getNumPoints() const
Track candidate – seed values and indices.
double getTimeSeed() const
const std::vector< genfit::TrackPoint * > & getPointsWithMeasurement() const
const TMatrixDSym & getCovSeed() const
unsigned int getNumPointsWithMeasurement() const
StateOnPlane with additional covariance matrix.
unsigned int cardinalRep_
std::vector< TrackPoint * > trackPointsWithMeasurement_
unsigned int getCardinalRepId() const
void reverseMomSeed()
Flip direction of momentum seed.
void setMcTrackId(int i)
Set the MCT track id, for MC simulations.
AbsTrackRep * getTrackRep(int id) const
Abstract base class for a track representation.
unsigned int getNumReps() const
Class where important numbers and properties of a fit can be stored.
double getSortingParameter() const
Object containing AbsMeasurement and AbsFitterInfo objects.
Helper class for TrackPoint sorting, used in Track::sort().
int getMcTrackId() const
Get the MCT track id, for MC simulations - default value = -1.
void setCovSeed(const TMatrixDSym &c)
std::vector< AbsTrackRep * > trackReps_
FitStatus for use with AbsKalmanFitter implementations.
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
void setStateSeed(const TVectorD &s)
Factory object to create AbsMeasurement objects from digitized and clustered data.
Defines for I/O streams used for error and debug printing.
const TVectorD & getStateSeed() const
FitStatus * getFitStatus(const AbsTrackRep *rep=NULL) const
Get FitStatus for a AbsTrackRep. Per default, return FitStatus for cardinalRep.