![]() |
LArSoft
v09_93_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ThreeDOpeningAngleFeatureTool class for the calculation of distance to neutrino vertex. More...
#include "TrackShowerIdFeatureTool.h"
Public Types | |
| typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
| typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
| ThreeDOpeningAngleFeatureTool () | |
| Default constructor. More... | |
| void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pInputPfo) |
| void | Run (LArMvaHelper::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pInputPfo) |
| virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
| Run the algorithm tool. More... | |
| virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...) |
Private Member Functions | |
| pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| void | Divide3DCaloHitList (const pandora::Algorithm *const pAlgorithm, const pandora::CaloHitList &threeDCaloHitList, pandora::CartesianPointVector &pointVectorStart, pandora::CartesianPointVector &pointVectorEnd) |
| Obtain positions at the vertex and non-vertex end of a list of three dimensional calo hits. More... | |
| float | OpeningAngle (const pandora::CartesianVector &principal, const pandora::CartesianVector &secondary, const pandora::CartesianVector &eigenValues) const |
| Use the results of principal component analysis to calculate an opening angle. More... | |
Private Attributes | |
| float | m_hitFraction |
| Fraction of hits in start and end of pfo. More... | |
| float | m_defaultValue |
| Default value to return, in case calculation not feasible. More... | |
ThreeDOpeningAngleFeatureTool class for the calculation of distance to neutrino vertex.
Definition at line 271 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
| lar_content::ThreeDOpeningAngleFeatureTool::ThreeDOpeningAngleFeatureTool | ( | ) |
Default constructor.
Definition at line 811 of file TrackShowerIdFeatureTool.cc.
|
private |
Obtain positions at the vertex and non-vertex end of a list of three dimensional calo hits.
| threeDCaloHitList | the list of three dimensional calo hits |
| pointVectorStart | to receive the positions at the start/vertex region |
| pointVectorEnd | to receive the positions at the end region (opposite end to vertex) |
Definition at line 886 of file TrackShowerIdFeatureTool.cc.
References f, and m_hitFraction.
Referenced by Run().
|
private |
Use the results of principal component analysis to calculate an opening angle.
| principal | the principal axis |
| secondary | the secondary axis |
| eigenValues | the eigenvalues |
Definition at line 932 of file TrackShowerIdFeatureTool.cc.
References f.
Referenced by Run().
|
private |
Definition at line 972 of file TrackShowerIdFeatureTool.cc.
References m_defaultValue, and m_hitFraction.
|
pure virtualinherited |
Run the algorithm tool.
| featureVector | the vector of features to append |
| args | arguments to pass to the tool |
|
inlinevirtualinherited |
Definition at line 51 of file LArMvaHelper.h.
| void lar_content::ThreeDOpeningAngleFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
| const pandora::Algorithm *const | pAlgorithm, | ||
| const pandora::ParticleFlowObject *const | pInputPfo | ||
| ) |
Definition at line 819 of file TrackShowerIdFeatureTool.cc.
References Divide3DCaloHitList(), f, lar_content::LArPfoHelper::GetCaloHits(), m_defaultValue, OpeningAngle(), and lar_content::LArPcaHelper::RunPca().
Referenced by lar_content::ThreeDPCAFeatureTool::Run().
| void lar_content::ThreeDOpeningAngleFeatureTool::Run | ( | LArMvaHelper::MvaFeatureMap & | featureMap, |
| pandora::StringVector & | featureOrder, | ||
| const std::string & | featureToolName, | ||
| const pandora::Algorithm *const | pAlgorithm, | ||
| const pandora::ParticleFlowObject *const | pInputPfo | ||
| ) |
|
private |
Default value to return, in case calculation not feasible.
Definition at line 309 of file TrackShowerIdFeatureTool.h.
Referenced by ReadSettings(), and Run().
|
private |
Fraction of hits in start and end of pfo.
Definition at line 308 of file TrackShowerIdFeatureTool.h.
Referenced by Divide3DCaloHitList(), and ReadSettings().