7 #include <GenFit/AbsTrackRep.h>
8 #include <GenFit/MeasuredStateOnPlane.h>
9 #include <GenFit/Track.h>
10 #include <GenFit/Tools.h>
41 double extrapolateToLine(TVector3& endPoint1, TVector3& endPoint2,
const int startPtID = 0);
42 double extrapolateToPlane(TVector3& pO, TVector3& pU, TVector3& pV,
const int startPtID = 0);
43 double extrapolateToPoint(TVector3& point,
bool update =
false,
const int startPtID = 0);
45 void getExtrapPosMomCov(TVector3& pos, TVector3& mom, TMatrixDSym& cov) { _propState->getPosMomCov(pos, mom, cov); }
46 void getExtrapPosMom(TVector3& pos, TVector3& mom) { _propState->getPosMom(pos, mom); }
48 double swimToVertex(
double z, TVector3* pos =
nullptr, TVector3* mom =
nullptr, TMatrixDSym* cov =
nullptr);
55 void print(
unsigned int debugLvl = 0);
62 bool setInitialStateForExtrap(
const int startPtID = 0);
65 genfit::AbsTrackRep* _trkrep;
66 genfit::Track* _track;
67 std::vector<GFMeasurement*> _measurements;
70 std::vector<genfit::MeasuredStateOnPlane> _fitstates;
73 std::unique_ptr<genfit::MeasuredStateOnPlane> _propState;
74 std::unique_ptr<genfit::AbsMeasurement> _virtMeas;
void print(unsigned int debugLvl=0)
double extrapolateToPlane(TVector3 &pO, TVector3 &pU, TVector3 &pV, const int startPtID=0)
void getExtrapPosMomCov(TVector3 &pos, TVector3 &mom, TMatrixDSym &cov)
void addMeasurements(std::vector< GFMeasurement * > &measurements)
void setVerbosity(unsigned int v)
void postFitUpdate(bool updateMeasurements=true)
int getNearestMeasurementID(GFMeasurement *meas)
double swimToVertex(double z, TVector3 *pos=nullptr, TVector3 *mom=nullptr, TMatrixDSym *cov=nullptr)
void addMeasurement(GFMeasurement *measurement)
double extrapolateToLine(TVector3 &endPoint1, TVector3 &endPoint2, const int startPtID=0)
void getExtrapPosMom(TVector3 &pos, TVector3 &mom)
void setTracklet(Tracklet &tracklet, double z_reference=590., bool wildseedcov=false)
double extrapolateToPoint(TVector3 &point, bool update=false, const int startPtID=0)
double updatePropState(const TVectorD &meas, const TMatrixDSym &V)
genfit::Track * getGenFitTrack()
genfit::AbsTrackRep * getGenFitTrkRep()
int getCharge() const
Return the charge (+1 or -1) of this tracklet.