17 using namespace FitNewton;
18 using namespace Eigen;
35 vector<Matrix<float,5,5> > covariances;
36 return findVertex(tracks, covariances, vertex, sigma, fix_xy);
41 bool VertexFinder::findVertex(vector<SimpleTrack3D>& tracks,
vector<Matrix<float,5,5> >& covariances, vector<float>& vertex,
float sigma,
bool fix_xy)
56 VectorXd start_point = VectorXd::Zero(vertex.size());
57 for(
unsigned int i=0;i<vertex.size();++i)
59 start_point(i) = vertex[i];
69 VectorXd min_point = VectorXd::Zero(vertex.size());
72 _minimizer.
minimize(start_point, min_point, 1.0
e-12, 48, 1.0
e-18);
75 for(
unsigned i=0; i<vertex.size(); i++)
77 vertex[i] = min_point(i);