Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
EnergyKickFeatureTool.h
Go to the documentation of this file.
1
8#ifndef LAR_ENERGY_KICK_FEATURE_TOOL_H
9#define LAR_ENERGY_KICK_FEATURE_TOOL_H 1
10
12
13namespace lar_content
14{
15
20{
21public:
26
36 void Run(LArMvaHelper::MvaFeatureVector &featureVector, const VertexSelectionBaseAlgorithm *const pAlgorithm, const pandora::Vertex *const pVertex,
39
40private:
42
52 const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList) const;
53
65 void IncrementEnergyKickParameters(const pandora::Cluster *const pCluster, const pandora::CartesianVector &clusterDisplacement,
66 const pandora::CartesianVector &clusterDirection, float &totEnergyKick, float &totEnergy, float &totHitKick, unsigned int &totHits) const;
67
68 float m_rOffset;
69 float m_xOffset;
70};
71
72} // namespace lar_content
73
74#endif // #ifndef LAR_ENERGY_KICK_FEATURE_TOOL_H
Header file for the vertex selection base algorithm class.
float m_xOffset
The x offset parameter in the energy score.
float GetEnergyKickForView(const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList) const
Get the energy kick feature for a given view.
void Run(LArMvaHelper::MvaFeatureVector &featureVector, const VertexSelectionBaseAlgorithm *const pAlgorithm, const pandora::Vertex *const pVertex, const VertexSelectionBaseAlgorithm::SlidingFitDataListMap &slidingFitDataListMap, const VertexSelectionBaseAlgorithm::ClusterListMap &, const VertexSelectionBaseAlgorithm::KDTreeMap &, const VertexSelectionBaseAlgorithm::ShowerClusterListMap &, const float, float &)
Run the tool.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
void IncrementEnergyKickParameters(const pandora::Cluster *const pCluster, const pandora::CartesianVector &clusterDisplacement, const pandora::CartesianVector &clusterDirection, float &totEnergyKick, float &totEnergy, float &totHitKick, unsigned int &totHits) const
Increment the energy kick parameters for a given cluster.
float m_rOffset
The r offset parameter in the energy score.
MvaTypes::MvaFeatureVector MvaFeatureVector
MvaFeatureTool class template.
std::map< pandora::HitType, const SlidingFitDataList > SlidingFitDataListMap
Map of sliding fit data lists for passing to tools.
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.
std::map< pandora::HitType, const ShowerClusterList > ShowerClusterListMap
Map of shower cluster lists for passing to tools.
CartesianVector class.
Cluster class.
Definition Cluster.h:31
Vertex class.
Definition Vertex.h:26
StatusCode
The StatusCode enum.