LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
InitialRegionFeatureTool to calculate variables related to the initial shower region. More...
#include "ConnectionPathwayFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
InitialRegionFeatureTool () | |
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) |
void | GetViewInitialRegionVariables (const pandora::Algorithm *const pAlgorithm, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::HitType hitType, float &initialGapSize, float &largestGapSize) const |
Calculate the initial region variables for the input view. More... | |
Private Attributes | |
float | m_defaultFloat |
Default float value. More... | |
unsigned int | m_nHitsToConsider |
The number of hits which defines the initial region. More... | |
float | m_maxInitialGapSizeLimit |
maxInitialGapSizeLimit max. limit More... | |
float | m_minLargestGapSizeLimit |
minLargestGapSizeLimit max. limit More... | |
InitialRegionFeatureTool to calculate variables related to the initial shower region.
Definition at line 29 of file ConnectionPathwayFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::InitialRegionFeatureTool::InitialRegionFeatureTool | ( | ) |
Default constructor.
Definition at line 25 of file ConnectionPathwayFeatureTool.cc.
References lar_content::LArConnectionPathwayHelper::GetMinMiddleMax(), GetViewInitialRegionVariables(), m_defaultFloat, m_maxInitialGapSizeLimit, m_minLargestGapSizeLimit, and Run().
|
private |
Calculate the initial region variables for the input view.
pAlgorithm | the algorithm |
nuVertex3D | the 3D neutrino vertex |
protoShowerMatch | the ProtoShower match |
hitType | the 2D view |
initialGapSize | the output initial gap size |
largestGapSize | the output largest gap size |
Definition at line 84 of file ConnectionPathwayFeatureTool.cc.
References lar_content::ProtoShower::GetConnectionPathway(), lar_content::ProtoShowerMatch::GetProtoShowerU(), lar_content::ProtoShowerMatch::GetProtoShowerV(), lar_content::ProtoShowerMatch::GetProtoShowerW(), lar_content::ProtoShower::GetSpineHitList(), lar_content::ConnectionPathway::GetStartDirection(), m_defaultFloat, m_nHitsToConsider, and lar_content::LArGeometryHelper::ProjectPosition().
Referenced by InitialRegionFeatureTool().
|
private |
Definition at line 117 of file ConnectionPathwayFeatureTool.cc.
References m_defaultFloat, m_maxInitialGapSizeLimit, m_minLargestGapSizeLimit, and m_nHitsToConsider.
void lar_content::InitialRegionFeatureTool::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 InitialRegionFeatureTool().
void lar_content::InitialRegionFeatureTool::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 | ||
) |
|
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.
|
private |
Default float value.
Definition at line 61 of file ConnectionPathwayFeatureTool.h.
Referenced by GetViewInitialRegionVariables(), InitialRegionFeatureTool(), and ReadSettings().
|
private |
maxInitialGapSizeLimit max. limit
Definition at line 63 of file ConnectionPathwayFeatureTool.h.
Referenced by InitialRegionFeatureTool(), and ReadSettings().
|
private |
minLargestGapSizeLimit max. limit
Definition at line 64 of file ConnectionPathwayFeatureTool.h.
Referenced by InitialRegionFeatureTool(), and ReadSettings().
|
private |
The number of hits which defines the initial region.
Definition at line 62 of file ConnectionPathwayFeatureTool.h.
Referenced by GetViewInitialRegionVariables(), and ReadSettings().