LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
ChargeFeatureTool class for the calculation of concentration. More...
#include "TrackShowerIdFeatureTool.h"
Classes | |
class | VertexComparator |
VertexComparator class for comparison of two points wrt neutrino vertex position. More... | |
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
Public Member Functions | |
ThreeDChargeFeatureTool () | |
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 | |
void | CalculateChargeVariables (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster, float &totalCharge, float &chargeSigma, float &chargeMean, float &endCharge) |
Calculation of the charge variables. More... | |
void | OrderCaloHitsByDistanceToVertex (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster, pandora::CaloHitList &caloHitList) |
Function to order the calo hit list by distance to neutrino vertex. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_endChargeFraction |
Fraction of hits that will be considered to calculate end charge (default 10%) More... | |
ChargeFeatureTool class for the calculation of concentration.
Definition at line 225 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 30 of file LArMvaHelper.h.
lar_content::ThreeDChargeFeatureTool::ThreeDChargeFeatureTool | ( | ) |
Default constructor.
Definition at line 619 of file TrackShowerIdFeatureTool.cc.
|
private |
Calculation of the charge variables.
pAlgorithm,the | algorithm |
pCluster | the cluster we are characterizing |
totalCharge,to | receive the total charge |
chargeSigma,to | receive the charge sigma |
chargeMean,to | receive the charge mean |
startCharge,to | receive the charge in the initial 10% hits |
endCharge,to | receive the charge in the last 10% hits |
Definition at line 655 of file TrackShowerIdFeatureTool.cc.
References f, m_endChargeFraction, and OrderCaloHitsByDistanceToVertex().
Referenced by Run().
|
private |
Function to order the calo hit list by distance to neutrino vertex.
pAlgorithm,the | algorithm |
pCluster | the cluster we are characterizing |
caloHitList | to receive the ordered calo hit list |
Definition at line 708 of file TrackShowerIdFeatureTool.cc.
References lar_content::LArClusterHelper::GetClusterHitType(), and lar_content::LArGeometryHelper::ProjectPosition().
Referenced by CalculateChargeVariables().
|
private |
Definition at line 733 of file TrackShowerIdFeatureTool.cc.
References m_endChargeFraction.
|
pure virtualinherited |
Run the algorithm tool.
featureVector | the vector of features to append |
args | arguments to pass to the tool |
void lar_content::ThreeDChargeFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pInputPfo | ||
) |
Definition at line 626 of file TrackShowerIdFeatureTool.cc.
References CalculateChargeVariables(), f, and lar_content::LArPfoHelper::GetClusters().
|
private |
Fraction of hits that will be considered to calculate end charge (default 10%)
Definition at line 286 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateChargeVariables(), and ReadSettings().