8 #include "Pandora/AlgorithmHeaders.h"
21 HitAngleVertexSelectionAlgorithm::HitAngleVertexSelectionAlgorithm()
30 const KDTreeMap kdTreeMap{{TPC_VIEW_U, kdTreeU}, {TPC_VIEW_V, kdTreeV}, {TPC_VIEW_W, kdTreeW}};
32 float bestFastScore(0.f);
33 for (
const Vertex *
const pVertex : vertexVector)
35 const float beamDeweightingScore(this->IsBeamModeOn() ?
std::exp(this->GetBeamDeweightingScore(beamConstants, pVertex)) : 1.f);
37 const float rPhiScore(LArMvaHelper::CalculateFeaturesOfType<RPhiFeatureTool>(m_featureToolVector,
this, pVertex,
42 vertexScoreList.emplace_back(pVertex, beamDeweightingScore * rPhiScore);
49 StatusCode HitAngleVertexSelectionAlgorithm::ReadSettings(
const TiXmlHandle xmlHandle)
51 AlgorithmToolVector algorithmToolVector;
52 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ProcessAlgorithmToolList(*
this, xmlHandle,
"FeatureTools", algorithmToolVector));
54 for (AlgorithmTool *
const pAlgorithmTool : algorithmToolVector)
55 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, LArMvaHelper::AddFeatureToolToVector(pAlgorithmTool, m_featureToolVector));
57 return VertexSelectionBaseAlgorithm::ReadSettings(xmlHandle);
std::map< pandora::HitType, const ShowerClusterList > ShowerClusterListMap
Map of shower cluster lists for passing to tools.
std::map< pandora::HitType, const pandora::ClusterList & > ClusterListMap
Map array of cluster lists for passing to tools.
std::vector< VertexScore > VertexScoreList
Header file for the hit angle vertex selection algorithm class.
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
std::map< pandora::HitType, const SlidingFitDataList > SlidingFitDataListMap
Map of sliding fit data 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.
std::array< float, 2 > VertexVector(const recob::Vertex &vert, const geo::PlaneID &plane, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)