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 | |
TwoDLinearFitFeatureTool () | |
Default constructor. More... | |
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
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 &diffWithStraightLineSigma, float &dTdLWidth, 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 55 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 30 of file LArMvaHelper.h.
lar_content::TwoDLinearFitFeatureTool::TwoDLinearFitFeatureTool | ( | ) |
Default constructor.
Definition at line 76 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 112 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 197 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::TwoDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::Cluster *const | pCluster | ||
) |
Definition at line 84 of file TrackShowerIdFeatureTool.cc.
References CalculateVariablesSlidingLinearFit(), and f.
|
private |
The sliding linear fit window.
Definition at line 82 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 83 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateVariablesSlidingLinearFit(), and ReadSettings().