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* =
"");
160 void setStateSeed(
const TVector3& pos,
const TVector3& mom);
184 void insertPoints(std::vector<genfit::TrackPoint*> points,
int id = -1);
280 void prune(
const Option_t* =
"CFLWRMIU");
282 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.
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
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
void deleteFitterInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=NULL)
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.
bool udpateSeed(int id=0, AbsTrackRep *rep=NULL, bool biased=true)
void reverseMomSeed()
Flip direction of momentum seed.
double getTOF(AbsTrackRep *rep=NULL, int startId=0, int endId=-1) const
get time of flight in ns between to trackPoints (if NULL, for cardinal rep)
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 deleteForwardInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=NULL)
TrackPoint * getPointWithMeasurement(int id) const
void prune(const Option_t *="CFLWRMIU")
Delete unneeded information from the Track.
KalmanFitStatus * getKalmanFitStatus(const AbsTrackRep *rep=NULL) const
If FitStatus is a KalmanFitStatus, return it. Otherwise return NULL.
void setCovSeed(const TMatrixDSym &c)
unsigned int getNumPointsWithMeasurement() const
const MeasuredStateOnPlane & getFittedState(int id=0, const AbsTrackRep *rep=NULL, bool biased=true) const
Shortcut to get FittedStates.
virtual void Clear(Option_t *="")
const std::vector< genfit::TrackPoint * > & getPointsWithMeasurement() const
void deleteBackwardInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=NULL)
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 fixWeights(AbsTrackRep *rep=NULL, int startId=0, int endId=-1)
std::vector< TrackPoint * > trackPoints_
const TMatrixDSym & getCovSeed() const
FitStatus * getFitStatus(const AbsTrackRep *rep=NULL) const
Get FitStatus for a AbsTrackRep. Per default, return FitStatus for cardinalRep.
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 deleteReferenceInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=NULL)
void deleteMeasurementInfo(int startId=0, int endId=-1, const AbsTrackRep *rep=NULL)
bool hasKalmanFitStatus(const AbsTrackRep *rep=NULL) const
Check if track has a KalmanFitStatus for given AbsTrackRep. Per default, check for cardinal rep.
bool checkConsistency() const
void mergeTrack(const Track *other, int id=-1)
Merge two tracks.
bool hasFitStatus(const AbsTrackRep *rep=NULL) const
Check if track has a FitStatus for given AbsTrackRep. Per default, check for cardinal rep.
TrackPoint * getPointWithMeasurementAndFitterInfo(int id, const AbsTrackRep *rep) const
void determineCardinalRep()
See with which AbsTrackRep the track was fitted best (converged fit w/ smallest chi2) and set the car...
bool sort()
Sort TrackPoint and according to their sorting parameters.
std::vector< TrackPoint * > trackPointsWithMeasurement_
unsigned int getCardinalRepId() const
void switchPDGSigns(AbsTrackRep *rep=NULL)
Switch the pdg signs of specified rep (of all reps if rep == NULL).
unsigned int getNumReps() const
unsigned int cardinalRep_
void fillPointsWithMeasurement()
void reverseTrack()
Make track ready to be fitted in reverse direction.
double getTrackLen(AbsTrackRep *rep=NULL, int startId=0, int endId=-1) const
get TrackLength between to trackPoints (if NULL, for cardinal rep)
void setFitStatus(FitStatus *fitStatus, const AbsTrackRep *rep)
void setStateSeed(const TVectorD &s)