32 float bestFastScore(0.f);
33 for (
const Vertex *
const pVertex : vertexVector)
37 const float rPhiScore(LArMvaHelper::CalculateFeaturesOfType<RPhiFeatureTool>(
m_featureToolVector,
this, pVertex,
42 vertexScoreList.emplace_back(pVertex, beamDeweightingScore * rPhiScore);
54 for (
AlgorithmTool *
const pAlgorithmTool : algorithmToolVector)
Header file for the hit angle vertex selection algorithm class.
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
void GetVertexScoreList(const pandora::VertexVector &vertexVector, const BeamConstants &beamConstants, HitKDTree2D &kdTreeU, HitKDTree2D &kdTreeV, HitKDTree2D &kdTreeW, VertexScoreList &vertexScoreList) const
Get the vertex score list for a provided list of candidate vertices.
VertexFeatureTool::FeatureToolVector m_featureToolVector
The feature tool map.
HitAngleVertexSelectionAlgorithm()
Default constructor.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
static pandora::StatusCode AddFeatureToolToVector(pandora::AlgorithmTool *const pFeatureTool, MvaFeatureToolVector< Ts... > &featureToolVector)
Add a feature tool to a vector of feature tools.
std::map< pandora::HitType, const SlidingFitDataList > SlidingFitDataListMap
Map of sliding fit data lists for passing to tools.
std::vector< VertexScore > VertexScoreList
std::map< pandora::HitType, const pandora::ClusterList & > ClusterListMap
Map array of cluster lists for passing to tools.
std::map< pandora::HitType, const std::reference_wrapper< HitKDTree2D > > KDTreeMap
Map array of hit kd trees for passing to tools.
float GetBeamDeweightingScore(const BeamConstants &beamConstants, const pandora::Vertex *const pVertex) const
Get the beam deweighting score for a vertex.
std::map< pandora::HitType, const ShowerClusterList > ShowerClusterListMap
Map of shower cluster lists for passing to tools.
bool IsBeamModeOn() const
Whether algorithm is running in beam mode, assuming neutrinos travel in positive z-direction.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
static StatusCode ProcessAlgorithmToolList(const Algorithm &algorithm, const TiXmlHandle &xmlHandle, const std::string &listName, AlgorithmToolVector &algorithmToolVector)
Process a list of algorithms tools in an xml file.
std::vector< AlgorithmTool * > AlgorithmToolVector
StatusCode
The StatusCode enum.
std::vector< const Vertex * > VertexVector