LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
TwoDLinearFitFeatureTool class for the calculation of variables related to 2d 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 | |
TwoDLinearFitFeatureTool () | |
Default constructor. More... | |
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
void | Run (LArMvaHelper::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
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 &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... | |
TwoDLinearFitFeatureTool class for the calculation of variables related to 2d sliding linear fit.
Definition at line 60 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::TwoDLinearFitFeatureTool::TwoDLinearFitFeatureTool | ( | ) |
Default constructor.
Definition at line 90 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 161 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 249 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::TwoDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::Cluster *const | pCluster | ||
) |
Definition at line 98 of file TrackShowerIdFeatureTool.cc.
References CalculateVariablesSlidingLinearFit(), and f.
void lar_content::TwoDLinearFitFeatureTool::Run | ( | LArMvaHelper::MvaFeatureMap & | featureMap, |
pandora::StringVector & | featureOrder, | ||
const std::string & | featureToolName, | ||
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::Cluster *const | pCluster | ||
) |
|
private |
The sliding linear fit window.
Definition at line 89 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 90 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateVariablesSlidingLinearFit(), and ReadSettings().