![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
LinearFitFeatureTool class for the calculation of variables related to sliding linear fit. More...
#include "TrackShowerIdFeatureTool.h"
Public Types | |
| typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
Public Member Functions | |
| ThreeDLinearFitFeatureTool () | |
| Default constructor. More... | |
| void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pInputPfo) |
| virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
| Run the algorithm tool. More... | |
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... | |
LinearFitFeatureTool class for the calculation of variables related to sliding linear fit.
Definition at line 123 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 30 of file LArMvaHelper.h.
| lar_content::ThreeDLinearFitFeatureTool::ThreeDLinearFitFeatureTool | ( | ) |
Default constructor.
Definition at line 253 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 310 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, m_slidingLinearFitWindowLarge, max, and min.
Referenced by Run().
|
private |
Definition at line 388 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 |
| void lar_content::ThreeDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
| const pandora::Algorithm *const | pAlgorithm, | ||
| const pandora::ParticleFlowObject *const | pInputPfo | ||
| ) |
Definition at line 261 of file TrackShowerIdFeatureTool.cc.
References CalculateVariablesSlidingLinearFit(), f, lar_content::LArPfoHelper::GetThreeDLengthSquared(), and lar_content::LArPfoHelper::GetTwoDClusterList().
|
private |
The sliding linear fit window.
Definition at line 150 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 151 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateVariablesSlidingLinearFit(), and ReadSettings().