3 #include <HelixHough/NewtonMinimizerGradHessian.h>
4 #include <HelixHough/VertexFitFunc.h>
14 using namespace FitNewton;
15 using namespace Eigen;
32 vector<Matrix<float,5,5> > covariances;
33 return findVertex(tracks, covariances, vertex, sigma, fix_xy);
36 bool VertexFitter::findVertex(vector<SimpleTrack3D>& tracks,
vector<Matrix<float,5,5> >& covariances, vector<float>& vertex,
float sigma,
bool fix_xy)
52 VectorXd start_point = VectorXd::Zero(vertex.size());
53 for(
unsigned int i=0;i<vertex.size();++i)
55 start_point(i) = vertex[i];
65 VectorXd min_point = VectorXd::Zero(vertex.size());
68 _minimizer.
minimize(start_point, min_point, 1.0
e-12, 48, 1.0
e-18);
71 for(
unsigned i=0; i<vertex.size(); i++)
73 vertex[i] = min_point(i);