LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ConnectionRegionFeatureTool to calculate variables related to the connection pathway region. More...
#include "ConnectionPathwayFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
ConnectionRegionFeatureTool () | |
Default constructor. More... | |
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianPointVector &showerStarts3D) |
void | Run (LArMvaHelper::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianPointVector &showerStarts3D) |
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) |
float | Get2DKink (const pandora::Algorithm *const pAlgorithm, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianVector &showerStart3D) const |
Obtain a cautious estimate of the largest 2D deflection of the connection pathway. More... | |
float | GetLargest2DKinkFromView (const pandora::Algorithm *const pAlgorithm, const TwoDSlidingFitResult &spineFit, const pandora::HitType hitType, const pandora::CartesianVector &showerStart3D) const |
Obtain a cautious estimate of the largest 2D deflection of a connection pathway in a given view. More... | |
Private Attributes | |
float | m_defaultFloat |
Default float value. More... | |
unsigned int | m_spineFitWindow |
The spine fit window. More... | |
int | m_nLayersHalfWindow |
The half window of each segment. More... | |
float | m_pathwayLengthLimit |
pathwayLengthLimit max. limit More... | |
float | m_pathwayScatteringAngle2DLimit |
pathwayScatteringAngle2DLimit max. limit More... | |
ConnectionRegionFeatureTool to calculate variables related to the connection pathway region.
Definition at line 72 of file ConnectionPathwayFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::ConnectionRegionFeatureTool::ConnectionRegionFeatureTool | ( | ) |
Default constructor.
Definition at line 135 of file ConnectionPathwayFeatureTool.cc.
References Get2DKink(), m_pathwayLengthLimit, m_pathwayScatteringAngle2DLimit, and Run().
|
private |
Obtain a cautious estimate of the largest 2D deflection of the connection pathway.
pAlgorithm | the algorithm |
protoShowerMatch | the ProtoShower match |
showerStart3D | the 3D shower start position |
Definition at line 187 of file ConnectionPathwayFeatureTool.cc.
References GetLargest2DKinkFromView(), lar_content::LArConnectionPathwayHelper::GetMinMiddleMax(), lar_content::ProtoShowerMatch::GetProtoShowerU(), lar_content::ProtoShowerMatch::GetProtoShowerV(), lar_content::ProtoShowerMatch::GetProtoShowerW(), lar_content::ProtoShower::GetSpineHitList(), lar_content::LArGeometryHelper::GetWirePitch(), m_defaultFloat, and m_spineFitWindow.
Referenced by ConnectionRegionFeatureTool().
|
private |
Obtain a cautious estimate of the largest 2D deflection of a connection pathway in a given view.
pAlgorithm | the algorithm |
spineFit | the shower spine fit |
hitType | the 2D view |
showerStart3D | the 3D shower start position |
Definition at line 227 of file ConnectionPathwayFeatureTool.cc.
References f, lar_content::TwoDSlidingFitResult::GetGlobalFitPosition(), lar_content::TwoDSlidingFitResult::GetL(), lar_content::TwoDSlidingFitResult::GetLayer(), lar_content::TwoDSlidingFitResult::GetLayerFitResultMap(), lar_content::TwoDSlidingFitResult::GetLocalPosition(), m_defaultFloat, m_nLayersHalfWindow, and lar_content::LArGeometryHelper::ProjectPosition().
Referenced by Get2DKink().
|
private |
Definition at line 314 of file ConnectionPathwayFeatureTool.cc.
References m_defaultFloat, m_nLayersHalfWindow, m_pathwayLengthLimit, m_pathwayScatteringAngle2DLimit, and m_spineFitWindow.
|
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::ConnectionRegionFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pShowerPfo, | ||
const pandora::CartesianVector & | nuVertex3D, | ||
const ProtoShowerMatch & | protoShowerMatch, | ||
const pandora::CartesianPointVector & | showerStarts3D | ||
) |
Referenced by ConnectionRegionFeatureTool().
void lar_content::ConnectionRegionFeatureTool::Run | ( | LArMvaHelper::MvaFeatureMap & | featureMap, |
pandora::StringVector & | featureOrder, | ||
const std::string & | featureToolName, | ||
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pShowerPfo, | ||
const pandora::CartesianVector & | nuVertex3D, | ||
const ProtoShowerMatch & | protoShowerMatch, | ||
const pandora::CartesianPointVector & | showerStarts3D | ||
) |
|
private |
Default float value.
Definition at line 116 of file ConnectionPathwayFeatureTool.h.
Referenced by Get2DKink(), GetLargest2DKinkFromView(), and ReadSettings().
|
private |
The half window of each segment.
Definition at line 118 of file ConnectionPathwayFeatureTool.h.
Referenced by GetLargest2DKinkFromView(), and ReadSettings().
|
private |
pathwayLengthLimit max. limit
Definition at line 119 of file ConnectionPathwayFeatureTool.h.
Referenced by ConnectionRegionFeatureTool(), and ReadSettings().
|
private |
pathwayScatteringAngle2DLimit max. limit
Definition at line 120 of file ConnectionPathwayFeatureTool.h.
Referenced by ConnectionRegionFeatureTool(), and ReadSettings().
|
private |
The spine fit window.
Definition at line 117 of file ConnectionPathwayFeatureTool.h.
Referenced by Get2DKink(), and ReadSettings().