LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
EnergyKickFeatureTool class. More...
#include "EnergyKickFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
Public Member Functions | |
EnergyKickFeatureTool () | |
Default constructor. More... | |
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. More... | |
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
Run the algorithm tool. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
float | GetEnergyKickForView (const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList) const |
Get the energy kick feature for a given view. More... | |
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. More... | |
Private Attributes | |
float | m_rOffset |
The r offset parameter in the energy score. More... | |
float | m_xOffset |
The x offset parameter in the energy score. More... | |
EnergyKickFeatureTool class.
Definition at line 19 of file EnergyKickFeatureTool.h.
|
inherited |
Definition at line 30 of file LArMvaHelper.h.
lar_content::EnergyKickFeatureTool::EnergyKickFeatureTool | ( | ) |
Default constructor.
Definition at line 20 of file EnergyKickFeatureTool.cc.
|
private |
Get the energy kick feature for a given view.
vertexPosition2D | the projection of the vertex position in this view |
slidingFitDataList | the list of sliding fit data objects in this view |
Definition at line 51 of file EnergyKickFeatureTool.cc.
References f, and IncrementEnergyKickParameters().
Referenced by Run().
|
private |
Increment the energy kick parameters for a given cluster.
pCluster | address of the cluster |
clusterDisplacement | the cluster displacement |
clusterDirection | the cluster direction |
totEnergyKick | the total energy kick |
totEnergy | the total energy |
totHitKick | the total hit kick |
totHits | the total number of hits |
Definition at line 87 of file EnergyKickFeatureTool.cc.
References m_rOffset, and m_xOffset.
Referenced by GetEnergyKickForView().
|
private |
Definition at line 102 of file EnergyKickFeatureTool.cc.
References m_rOffset, and m_xOffset.
void lar_content::EnergyKickFeatureTool::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.
pAlgorithm | address of the calling algorithm |
pVertex | address of the vertex |
slidingFitDataListMap | map of the sliding fit data lists |
Definition at line 28 of file EnergyKickFeatureTool.cc.
References f, GetEnergyKickForView(), and lar_content::LArGeometryHelper::ProjectPosition().
|
pure virtualinherited |
Run the algorithm tool.
featureVector | the vector of features to append |
args | arguments to pass to the tool |
|
private |
The r offset parameter in the energy score.
Definition at line 67 of file EnergyKickFeatureTool.h.
Referenced by IncrementEnergyKickParameters(), and ReadSettings().
|
private |
The x offset parameter in the energy score.
Definition at line 68 of file EnergyKickFeatureTool.h.
Referenced by IncrementEnergyKickParameters(), and ReadSettings().