34 std::cout <<
"SvtxVertexEval::~SvtxVertexEval() - Error Count: " <<
_errors << std::endl;
58 return std::set<PHG4Particle*>();
68 return std::set<PHG4Particle*>();
73 std::map<const Vertex*, std::set<PHG4Particle*> >::iterator iter =
81 std::set<PHG4Particle*> all_particles;
106 else if (!max_particle)
112 all_particles.insert(max_particle);
120 return all_particles;
128 return std::set<PHG4VtxPoint*>();
138 return std::set<PHG4VtxPoint*>();
143 std::map<const Vertex*, std::set<PHG4VtxPoint*> >::iterator iter =
151 std::set<PHG4VtxPoint*> points;
168 points.insert(point);
199 std::map<const Vertex*, PHG4VtxPoint*>::iterator iter =
210 unsigned int max_ntracks = 0;
212 for (
auto candidate : points)
215 if (ntracks > max_ntracks)
218 max_point = candidate;
235 return std::set<const Vertex*>();
242 else if (!truthpoint)
245 return std::set<const Vertex*>();
250 std::map<PHG4VtxPoint*, std::set<const Vertex*> >::iterator iter =
258 std::set<const Vertex*> all_vertexes;
266 for (
auto point : points)
270 all_vertexes.insert(vertex);
295 else if (!truthpoint)
303 std::map<PHG4VtxPoint*, const Vertex*>::iterator iter =
312 unsigned int best_count = 0;
315 std::set<const Vertex*>::iterator best_vertex_iter = tracks.begin();
316 for (
auto it = tracks.begin();
it != tracks.end(); ++
it)
320 if (count > best_count)
322 best_vertex_iter =
it;
327 const Vertex* the_best = *best_vertex_iter;
351 else if (!vertex || !truthpoint)
359 std::map<std::pair<const Vertex*, PHG4VtxPoint*>,
unsigned int>::iterator iter =
408 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMap");
412 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMapRefit");
416 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMapActs");
420 std::cout <<
PHWHERE <<
"Did not find_vertexmap on node tree" << std::endl;
425 _truthinfo = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
438 std::cout <<
PHWHERE <<
" did not find _vertexmap " << std::endl;
448 std::cout <<
PHWHERE <<
" did not find _trackmap " << std::endl;
458 std::cout <<
PHWHERE <<
" did not find _truthinfo " << std::endl;