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.0f);
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
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
std::array< float, 2 > VertexVector(const recob::Vertex &vert, const geo::PlaneID &plane, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
BEGIN_PROLOG could also be cout