LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ConeChargeFeatureTool class for the calculation of charge distribution and conicalness. More...
#include "TrackShowerIdFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
ConeChargeFeatureTool () | |
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 | CalculateChargeDistribution (const pandora::CaloHitList &caloHitList, const pandora::CartesianVector &pfoStart, const pandora::CartesianVector &pfoDir, float &chargeCore, float &chargeHalo, float &chargeCon) |
Calculate charge distribution in relation to the Moeliere radius. More... | |
float | CalculateConicalness (const pandora::CaloHitList &caloHitList, const pandora::CartesianVector &pfoStart, const pandora::CartesianVector &pfoDir, const float pfoLength) |
Calculate conicalness as a ratio of charge distribution at the end and start of pfo. More... | |
Private Attributes | |
unsigned int | m_conMinHits |
Configurable parameters to calculate cone charge variables. More... | |
float | m_minCharge |
float | m_conFracRange |
float | m_MoliereRadius |
float | m_MoliereRadiusFrac |
ConeChargeFeatureTool class for the calculation of charge distribution and conicalness.
Definition at line 210 of file TrackShowerIdFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::ConeChargeFeatureTool::ConeChargeFeatureTool | ( | ) |
Default constructor.
Definition at line 402 of file TrackShowerIdFeatureTool.cc.
|
private |
Calculate charge distribution in relation to the Moeliere radius.
caloHitList | the calo hit list of plane w |
pfoStart | start position of the pfo |
pfoDir | direction of pfo from the principle vector of pca |
chargeCore | to receive sum of charge within Moeliete radius * fraction |
chargeHalo | to receive sum of charge outside of Moeliere radius * fraction |
chargeCon | to receive weighted sum of total charge |
Definition at line 477 of file TrackShowerIdFeatureTool.cc.
References E, f, m_MoliereRadius, and m_MoliereRadiusFrac.
Referenced by Run().
|
private |
Calculate conicalness as a ratio of charge distribution at the end and start of pfo.
caloHitList | the calo hit list of plane w |
pfoStart | start position of the pfo |
pfoDir | direction of pfo from the principle vector of pca |
pfoLength | length of the whole pfo return conicalness |
Definition at line 495 of file TrackShowerIdFeatureTool.cc.
References f, m_conFracRange, m_conMinHits, and m_minCharge.
Referenced by Run().
|
private |
Definition at line 532 of file TrackShowerIdFeatureTool.cc.
References m_conFracRange, m_conMinHits, m_minCharge, m_MoliereRadius, and m_MoliereRadiusFrac.
|
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::ConeChargeFeatureTool::Run | ( | LArMvaHelper::MvaFeatureVector & | featureVector, |
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pInputPfo | ||
) |
Definition at line 413 of file TrackShowerIdFeatureTool.cc.
References CalculateChargeDistribution(), CalculateConicalness(), f, lar_content::LArPfoHelper::GetClusters(), lar_content::LArPfoHelper::GetThreeDLengthSquared(), and lar_content::LArPcaHelper::RunPca().
void lar_content::ConeChargeFeatureTool::Run | ( | LArMvaHelper::MvaFeatureMap & | featureMap, |
pandora::StringVector & | featureOrder, | ||
const std::string & | featureToolName, | ||
const pandora::Algorithm *const | pAlgorithm, | ||
const pandora::ParticleFlowObject *const | pInputPfo | ||
) |
|
private |
Definition at line 236 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateConicalness(), and ReadSettings().
|
private |
Configurable parameters to calculate cone charge variables.
conMinHits | minimum hit requirement at start and end of pfo to calculate conicalness |
minCharge | minimum charge requirement at start and end of pfo to calculate conicalness |
conFracRange | conincal fractional range to determine start/end of pfo |
MoliereRadius | 10.1 cm to determine halo/core of pfo |
MoliereRadiusFrac | fraction of Moliere radius, default = 0.2 |
Definition at line 234 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateConicalness(), and ReadSettings().
|
private |
Definition at line 235 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateConicalness(), and ReadSettings().
|
private |
Definition at line 237 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateChargeDistribution(), and ReadSettings().
|
private |
Definition at line 238 of file TrackShowerIdFeatureTool.h.
Referenced by CalculateChargeDistribution(), and ReadSettings().