96 Track(
AbsTrackRep* trackRep,
const TVector3& posSeed,
const TVector3& momSeed);
97 Track(
AbsTrackRep* trackRep,
const TVectorD& stateSeed,
const TMatrixDSym& covSeed);
104 virtual void Clear(Option_t* =
"");
168 void setStateSeed(
const TVector3& pos,
const TVector3& mom);
192 void insertPoints(std::vector<genfit::TrackPoint*> points,
int id = -1);
260 double getTOF(
AbsTrackRep* rep =
nullptr,
int startId = 0,
int endId = -1)
const;
298 void prune(
const Option_t* =
"CFLWRMIU");
300 void Print(
const Option_t* =
"")
const;
Contains the measurement and covariance in raw detector coordinates.
Abstract base class for a track representation.
Class where important numbers and properties of a fit can be stored.
FitStatus for use with AbsKalmanFitter implementations.
StateOnPlane with additional covariance matrix.
Factory object to create AbsMeasurement objects from digitized and clustered data.
Track candidate – seed values and indices.
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
TrackPoint * getPoint(int id) const
const std::vector< genfit::TrackPoint * > & getPoints() const
void addTrackRep(AbsTrackRep *trackRep)
std::map< const AbsTrackRep *, FitStatus * > fitStatuses_
helper
void setCardinalRep(int id)
TrackCand * constructTrackCand() const
Construct a new TrackCand containing the hit IDs of the measurements.
AbsTrackRep * getTrackRep(int id) const
FitStatus * getFitStatus(const AbsTrackRep *rep=nullptr) const
Get FitStatus for a AbsTrackRep. Per default, return FitStatus for cardinalRep.
int getMcTrackId() const
Get the MCT track id, for MC simulations - default value = -1.
void deleteTrackRep(int id)
Delete a AbsTrackRep and all corresponding AbsFitterInfo objects in every TrackPoint.
void reverseTrackPoints()
Flip the ordering of the TrackPoints.
void deleteTrackPointsAndFitStatus()
Delete all measurement information and the track points of the track. Does not delete track represent...
bool hasFitStatus(const AbsTrackRep *rep=nullptr) const
Check if track has a FitStatus for given AbsTrackRep. Per default, check for cardinal rep.
void reverseMomSeed()
Flip direction of momentum seed.
void switchPDGSigns(AbsTrackRep *rep=nullptr)
Switch the pdg signs of specified rep (of all reps if rep == nullptr).
std::vector< AbsTrackRep * > trackReps_
unsigned int getNumPoints() const
int getIdForRep(const AbsTrackRep *rep) const
This is used when streaming TrackPoints.
void insertMeasurement(AbsMeasurement *measurement, int id=-1)
Creates a new TrackPoint containing the measurement, and adds it to the track.
const TVectorD & getStateSeed() const
void deleteBackwardInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=nullptr)
double getTimeSeed() const
TrackPoint * getPointWithMeasurement(int id) const
void prune(const Option_t *="CFLWRMIU")
Delete unneeded information from the Track.
void setCovSeed(const TMatrixDSym &c)
bool hasKalmanFitStatus(const AbsTrackRep *rep=nullptr) const
Check if track has a KalmanFitStatus for given AbsTrackRep. Per default, check for cardinal rep.
void fixWeights(AbsTrackRep *rep=nullptr, int startId=0, int endId=-1)
unsigned int getNumPointsWithMeasurement() const
virtual void Clear(Option_t *="")
TrackPoint * getPointWithMeasurementAndFitterInfo(int id, const AbsTrackRep *rep=nullptr) const
void createMeasurements(const TrackCand &trackCand, const MeasurementFactory< genfit::AbsMeasurement > &factory)
const std::vector< genfit::TrackPoint * > & getPointsWithMeasurement() const
void deleteFittedState(const genfit::AbsTrackRep *rep)
void insertPoint(TrackPoint *point, int id=-1)
Insert TrackPoint BEFORE TrackPoint with position id, if id >= 0.
void insertPoints(std::vector< genfit::TrackPoint * > points, int id=-1)
Insert TrackPoints BEFORE TrackPoint with position id, if id >= 0.
void checkConsistency() const
KalmanFitStatus * getKalmanFitStatus(const AbsTrackRep *rep=nullptr) const
If FitStatus is a KalmanFitStatus, return it. Otherwise return nullptr.
std::vector< TrackPoint * > trackPoints_
const TMatrixDSym & getCovSeed() const
double getTOF(AbsTrackRep *rep=nullptr, int startId=0, int endId=-1) const
get time of flight in ns between to trackPoints (if nullptr, for cardinal rep)
TrackPoint * getPointWithFitterInfo(int id, const AbsTrackRep *rep=nullptr) const
void setTimeSeed(double time)
bool udpateSeed(int id=0, AbsTrackRep *rep=nullptr, bool biased=true)
void Print(const Option_t *="") const
void setMcTrackId(int i)
Set the MCT track id, for MC simulations.
AbsTrackRep * getCardinalRep() const
Get cardinal track representation.
void mergeTrack(const Track *other, int id=-1)
Merge two tracks.
void deleteMeasurementInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=nullptr)
const std::vector< genfit::AbsTrackRep * > & getTrackReps() const
Return the track representations as a list of pointers.
void determineCardinalRep()
See with which AbsTrackRep the track was fitted best (converged fit w/ smallest chi2) and set the car...
void deleteFitterInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=nullptr)
bool sort()
Sort TrackPoint and according to their sorting parameters.
std::vector< TrackPoint * > trackPointsWithMeasurement_
unsigned int getCardinalRepId() const
void deleteForwardInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=nullptr)
double getTrackLen(AbsTrackRep *rep=nullptr, int startId=0, int endId=-1) const
get TrackLength between to trackPoints (if nullptr, for cardinal rep)
unsigned int getNumReps() const
unsigned int cardinalRep_
const MeasuredStateOnPlane & getFittedState(int id=0, const AbsTrackRep *rep=nullptr, bool biased=true) const
Shortcut to get FittedStates.
void fillPointsWithMeasurement()
void deleteReferenceInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=nullptr)
void reverseTrack()
Make track ready to be fitted in reverse direction.
void setFitStatus(FitStatus *fitStatus, const AbsTrackRep *rep)
void setStateSeed(const TVectorD &s)
Helper class for TrackPoint sorting, used in Track::sort().
bool operator()(const TrackPoint *lhs, const TrackPoint *rhs) const
Object containing AbsMeasurement and AbsFitterInfo objects.
double getSortingParameter() const
Defines for I/O streams used for error and debug printing.