43 cout <<
"SvtxVertexEval::~SvtxVertexEval() - Error Count: " <<
_errors << endl;
67 return std::set<PHG4Particle*>();
77 return std::set<PHG4Particle*>();
82 std::map<SvtxVertex*, std::set<PHG4Particle*> >::iterator iter =
90 std::set<PHG4Particle*> all_particles;
113 assert(max_particle);
115 else if (!max_particle)
121 all_particles.insert(max_particle);
126 return all_particles;
134 return std::set<PHG4VtxPoint*>();
144 return std::set<PHG4VtxPoint*>();
149 std::map<SvtxVertex*, std::set<PHG4VtxPoint*> >::iterator iter =
157 std::set<PHG4VtxPoint*> points;
160 for (std::set<PHG4Particle*>::iterator iter = particles.begin();
161 iter != particles.end();
177 points.insert(point);
205 std::map<SvtxVertex*, PHG4VtxPoint*>::iterator iter =
216 unsigned int max_ntracks = 0;
218 for (std::set<PHG4VtxPoint*>::iterator iter = points.begin();
219 iter != points.end();
224 if (ntracks > max_ntracks)
226 max_ntracks = ntracks;
227 max_point = candidate;
241 return std::set<SvtxVertex*>();
248 else if (!truthpoint)
251 return std::set<SvtxVertex*>();
256 std::map<PHG4VtxPoint*, std::set<SvtxVertex*> >::iterator iter =
264 std::set<SvtxVertex*> all_vertexes;
274 for (std::set<PHG4VtxPoint*>::iterator jter = points.begin();
275 jter != points.end();
281 all_vertexes.insert(vertex);
303 else if (!truthpoint)
311 std::map<PHG4VtxPoint*, SvtxVertex*>::iterator iter =
320 unsigned int best_count = 0;
322 for (std::set<SvtxVertex*>::iterator iter = tracks.begin();
323 iter != tracks.end();
328 if (count > best_count)
330 best_vertex = vertex;
354 else if (!vertex || !truthpoint)
362 std::map<std::pair<SvtxVertex*, PHG4VtxPoint*>,
unsigned int>::iterator iter =
370 unsigned int ntracks = 0;
408 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMap");
412 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMapRefit");
416 _vertexmap = findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMapActs");
419 std::cout <<
PHWHERE <<
"Did not find_vertexmap on node tree" << endl;
423 _truthinfo = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
434 std::cout <<
PHWHERE <<
" did not find _vertexmap " << std::endl;
442 std::cout <<
PHWHERE <<
" did not find _trackmap " << std::endl;
450 std::cout <<
PHWHERE <<
" did not find _truthinfo " << std::endl;