LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ThreeDLinearFitFeatureTool class for the calculation of variables related to 3d sliding linear fit. More...
#include "TrackShowerIdFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
ThreeDLinearFitFeatureTool () | |
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 | CalculateVariablesSlidingLinearFit (const pandora::Cluster *const pCluster, float &straightLineLengthLarge, float &diffWithStraigthLineMean, float &maxFitGapLength, float &rmsSlidingLinearFit) const |
Calculation of several variables related to sliding linear fit. More... | |
Private Attributes | |
unsigned int | m_slidingLinearFitWindow |
The sliding linear fit window. More... | |
unsigned int | m_slidingLinearFitWindowLarge |
The sliding linear fit window - should be large, providing a simple linear fit. More... | |
ThreeDLinearFitFeatureTool class for the calculation of variables related to 3d sliding linear fit.
Definition at line 151 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::ThreeDLinearFitFeatureTool::ThreeDLinearFitFeatureTool | ( | ) |
Default constructor.
Definition at line 547 of file TrackShowerIdFeatureTool.cc.
|
private |
Calculation of several variables related to sliding linear fit.
pCluster | the cluster we are characterizing |
straightLineLengthLarge | to receive to length reported by the straight line fit |
diffWithStraigthLineMean | to receive the difference with straight line mean variable |
diffWithStraightLineSigma | to receive the difference with straight line sigma variable |
dTdLWidth | to receive the dTdL width variable |
maxFitGapLength | to receive the max fit gap length variable |
rmsSlidingLinearFit | to receive the RMS from the linear fit |
Definition at line 634 of file TrackShowerIdFeatureTool.cc.
References lar_content::LArGeometryHelper::CalculateGapDeltaZ(), f, lar_content::LArClusterHelper::GetClusterHitType(), lar_content::LayerFitResult::GetFitT(), lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerPosition(), lar_content::TwoDSlidingFitResult::GetGlobalMinLayerPosition(), lar_content::TwoDSlidingFitResult::GetGlobalPosition(), lar_content::LayerFitResult::GetGradient(), lar_content::LayerFitResult::GetL(), lar_content::TwoDSlidingFitResult::GetLayer(), lar_content::TwoDSlidingFitResult::GetLayerFitResultMap(), lar_content::LayerFitResult::GetRms(), lar_content::LArGeometryHelper::GetWireZPitch(), m_slidingLinearFitWindow, and m_slidingLinearFitWindowLarge.
Referenced by Run().
|
private |
Definition at line 714 of file TrackShowerIdFeatureTool.cc.
References m_slidingLinearFitWindow, and m_slidingLinearFitWindowLarge.
|
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::ThreeDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pInputPfo | ||
) |
Definition at line 555 of file TrackShowerIdFeatureTool.cc.
References CalculateVariablesSlidingLinearFit(), f, lar_content::LArPfoHelper::GetThreeDLengthSquared(), and lar_content::LArPfoHelper::GetTwoDClusterList().
Referenced by lar_content::ThreeDVertexDistanceFeatureTool::Run().
void lar_content::ThreeDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureMap & | featureMap, |
pandora::StringVector & | featureOrder, | ||
const std::string & | featureToolName, | ||
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pInputPfo | ||
) |
|
private |
The sliding linear fit window.
Definition at line 180 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateVariablesSlidingLinearFit(), and ReadSettings().
|
private |
The sliding linear fit window - should be large, providing a simple linear fit.
Definition at line 181 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateVariablesSlidingLinearFit(), and ReadSettings().