9 #include "Pandora/AlgorithmHeaders.h" 21 const Vertex *pBestVertex(
nullptr);
22 float bestVertexDr(std::numeric_limits<float>::max());
23 this->GetBestVertex(vertexVector, pBestVertex, bestVertexDr);
25 vertexScoreList.emplace_back(pBestVertex, 1.0
f);
30 StatusCode CheatingVertexSelectionAlgorithm::ReadSettings(
const TiXmlHandle xmlHandle)
33 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, TrainedVertexSelectionAlgorithm::ReadSettings(xmlHandle));
35 if (m_mcParticleListName.empty())
37 std::cout <<
"CheatingVertexSelectionAlgorithm: MCParticleListName required for cheated vertex selection" << std::endl;
38 return STATUS_CODE_INVALID_PARAMETER;
41 return STATUS_CODE_SUCCESS;
Header file for the cheating vertex selection algorithm class.
std::vector< VertexScore > VertexScoreList
std::vector< art::Ptr< recob::Vertex > > VertexVector
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex