13 #include <GenFit/GFRaveVertexFactory.h>
15 #include <TMatrixDSymfwd.h>
16 #include <TMatrixTSym.h>
19 #include <log4cpp/CategoryStream.hh>
31 : _vertex_finder(nullptr)
42 std::vector<genfit::GFRaveVertex*> rave_vertices;
47 _vertex_finder->setMethod(
"avr-minweight:0.5-primcut:5-seccut:10");
49 TMatrixDSym beam_spot_cov(3);
50 beam_spot_cov(0, 0) = 0.2 * 0.2;
51 beam_spot_cov(1, 1) = 0.2 * 0.2;
52 beam_spot_cov(2, 2) = 100.0 * 100.0;
56 std::vector<genfit::Track*> gftracks;
57 gftracks.reserve(gtracks.size());
58 for (
auto it = gtracks.begin();
it != gtracks.end(); ++
it)
60 gftracks.push_back((*it)->getGenFitTrack());
63 LOG_DEBUG(
"tracking.PHTpcVertexFinder.findVertices") <<
"feeding " << gftracks.size() <<
" GenFit tracks into vertex finder";
65 if (gftracks.size() < 2)
67 LOG_DEBUG(
"tracking.PHTpcVertexFinder.findVertices") <<
"less than two tracks, skipping vertexing";
77 LOG_DEBUG(
"tracking.PHTpcVertexFinder.findVertices") <<
"Rave threw an exception, vertex finding failed";
78 rave_vertices.clear();