LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
SvmPfoCharacterisationAlgorithm class. More...
#include "SvmPfoCharacterisationAlgorithm.h"
Public Member Functions | |
SvmPfoCharacterisationAlgorithm () | |
Default constructor. More... | |
Protected Member Functions | |
virtual bool | IsClearTrack (const pandora::ParticleFlowObject *const pPfo) const |
Whether pfo is identified as a clear track. More... | |
virtual bool | IsClearTrack (const pandora::Cluster *const pCluster) const |
Whether cluster is identified as a clear track. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
pandora::StatusCode | Run () |
virtual bool | IsClearTrack3x2D (const pandora::ParticleFlowObject *const pPfo) const |
Whether pfo is identified as a clear track using its three clusters. More... | |
Protected Attributes | |
ClusterCharacterisationFeatureTool::FeatureToolVector | m_featureToolVector |
The feature tool map. More... | |
PfoCharacterisationFeatureTool::FeatureToolVector | m_featureToolVectorThreeD |
The feature tool map for 3D info. More... | |
PfoCharacterisationFeatureTool::FeatureToolVector | m_featureToolVectorNoChargeInfo |
The feature tool map for missing W view. More... | |
SupportVectorMachine | m_supportVectorMachine |
The support vector machine. More... | |
SupportVectorMachine | m_supportVectorMachineNoChargeInfo |
The support vector machine for missing W view. More... | |
bool | m_trainingSetMode |
Whether to train. More... | |
bool | m_enableProbability |
Whether to use probabilities instead of binary classification. More... | |
bool | m_useThreeDInformation |
Whether to use 3D information. More... | |
float | m_minProbabilityCut |
The minimum probability to label a cluster as track-like. More... | |
unsigned int | m_minCaloHitsCut |
The minimum number of calo hits to qualify as a track. More... | |
std::string | m_trainingOutputFile |
The training output file. More... | |
std::string | m_filePathEnvironmentVariable |
The environment variable providing a list of paths to svm files. More... | |
std::string | m_svmFileName |
The svm input file. More... | |
std::string | m_svmName |
The name of the svm to find. More... | |
std::string | m_svmFileNameNoChargeInfo |
The svm input file for PFOs missing the W view, and thus charge info. More... | |
std::string | m_svmNameNoChargeInfo |
The name of the svm to find for PFOs missing the W view, and thus charge info. More... | |
std::string | m_trackPfoListName |
The track pfo list name. More... | |
std::string | m_showerPfoListName |
The shower pfo list name. More... | |
pandora::StringVector | m_inputPfoListNames |
The names of the input pfo lists. More... | |
bool | m_updateClusterIds |
Whether to update daughter cluster particle id labels to match pfo id. More... | |
bool | m_postBranchAddition |
Whether to use configuration for shower clusters post branch addition. More... | |
unsigned int | m_minTrackLikeViews |
The minimum number of track-like views to declare a pfo as track-like. More... | |
SvmPfoCharacterisationAlgorithm class.
Definition at line 20 of file SvmPfoCharacterisationAlgorithm.h.
lar_content::SvmPfoCharacterisationAlgorithm::SvmPfoCharacterisationAlgorithm | ( | ) |
Default constructor.
Definition at line 22 of file SvmPfoCharacterisationAlgorithm.cc.
References lar_content::LArMvaHelper::CalculateFeatures(), lar_content::LArMvaHelper::CalculateProbability(), lar_content::LArMvaHelper::Classify(), IsClearTrack(), m_enableProbability, m_featureToolVector, m_minCaloHitsCut, m_minProbabilityCut, m_supportVectorMachine, m_trainingOutputFile, m_trainingSetMode, and lar_content::LArMvaHelper::ProduceTrainingExample().
|
protectedvirtual |
Whether pfo is identified as a clear track.
pPfo | address of the relevant pfo |
Implements lar_content::PfoCharacterisationBaseAlgorithm.
Definition at line 68 of file SvmPfoCharacterisationAlgorithm.cc.
References lar_content::LArMvaHelper::CalculateFeatures(), lar_content::LArMvaHelper::CalculateProbability(), lar_content::LArMvaHelper::Classify(), evd::details::end(), lar_content::LArPfoHelper::GetClusters(), lar_content::LArMCParticleHelper::GetMainMCParticle(), lar_content::LArPfoHelper::IsThreeD(), m_enableProbability, m_featureToolVectorNoChargeInfo, m_featureToolVectorThreeD, m_minProbabilityCut, m_supportVectorMachine, m_supportVectorMachineNoChargeInfo, m_trainingOutputFile, m_trainingSetMode, and lar_content::LArMvaHelper::ProduceTrainingExample().
Referenced by SvmPfoCharacterisationAlgorithm().
|
protectedvirtual |
Whether cluster is identified as a clear track.
pCluster | address of the relevant cluster |
Implements lar_content::PfoCharacterisationBaseAlgorithm.
|
protectedvirtualinherited |
Whether pfo is identified as a clear track using its three clusters.
pPfo | address of the relevant pfo |
Definition at line 108 of file PfoCharacterisationBaseAlgorithm.cc.
References lar_content::LArClusterHelper::GetClusterHitType(), lar_content::LArPfoHelper::GetTwoDClusterList(), lar_content::PfoCharacterisationBaseAlgorithm::IsClearTrack(), and lar_content::PfoCharacterisationBaseAlgorithm::m_minTrackLikeViews.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::Run().
|
protected |
Definition at line 142 of file SvmPfoCharacterisationAlgorithm.cc.
References lar_content::LArMvaHelper::AddFeatureToolToVector(), lar_content::LArFileHelper::FindFileInPath(), lar_content::SupportVectorMachine::Initialize(), m_enableProbability, m_featureToolVector, m_featureToolVectorNoChargeInfo, m_featureToolVectorThreeD, m_filePathEnvironmentVariable, m_minCaloHitsCut, m_minProbabilityCut, m_supportVectorMachine, m_supportVectorMachineNoChargeInfo, m_svmFileName, m_svmFileNameNoChargeInfo, m_svmName, m_svmNameNoChargeInfo, m_trainingOutputFile, m_trainingSetMode, m_useThreeDInformation, and lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings().
|
protectedinherited |
Definition at line 39 of file PfoCharacterisationBaseAlgorithm.cc.
References lar_content::LArPfoHelper::GetTwoDClusterList(), lar_content::PfoCharacterisationBaseAlgorithm::IsClearTrack(), lar_content::PfoCharacterisationBaseAlgorithm::IsClearTrack3x2D(), lar_content::PfoCharacterisationBaseAlgorithm::m_inputPfoListNames, lar_content::PfoCharacterisationBaseAlgorithm::m_showerPfoListName, lar_content::PfoCharacterisationBaseAlgorithm::m_trackPfoListName, lar_content::PfoCharacterisationBaseAlgorithm::m_updateClusterIds, and lar_content::PfoCharacterisationBaseAlgorithm::m_useThreeDInformation.
|
protected |
Whether to use probabilities instead of binary classification.
Definition at line 41 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protected |
The feature tool map.
Definition at line 33 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protected |
The feature tool map for missing W view.
Definition at line 35 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protected |
The feature tool map for 3D info.
Definition at line 34 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protected |
The environment variable providing a list of paths to svm files.
Definition at line 47 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().
|
protectedinherited |
The names of the input pfo lists.
Definition at line 66 of file PfoCharacterisationBaseAlgorithm.h.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::PfoCharacterisationBaseAlgorithm::Run().
|
protected |
The minimum number of calo hits to qualify as a track.
Definition at line 44 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protected |
The minimum probability to label a cluster as track-like.
Definition at line 43 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protectedinherited |
The minimum number of track-like views to declare a pfo as track-like.
Definition at line 71 of file PfoCharacterisationBaseAlgorithm.h.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::IsClearTrack3x2D(), and lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings().
|
protectedinherited |
Whether to use configuration for shower clusters post branch addition.
Definition at line 69 of file PfoCharacterisationBaseAlgorithm.h.
|
protectedinherited |
The shower pfo list name.
Definition at line 65 of file PfoCharacterisationBaseAlgorithm.h.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::PfoCharacterisationBaseAlgorithm::Run().
|
protected |
The support vector machine.
Definition at line 37 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protected |
The support vector machine for missing W view.
Definition at line 38 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protected |
The svm input file.
Definition at line 48 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().
|
protected |
The svm input file for PFOs missing the W view, and thus charge info.
Definition at line 50 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().
|
protected |
The name of the svm to find.
Definition at line 49 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().
|
protected |
The name of the svm to find for PFOs missing the W view, and thus charge info.
Definition at line 51 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().
|
protectedinherited |
The track pfo list name.
Definition at line 64 of file PfoCharacterisationBaseAlgorithm.h.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::PfoCharacterisationBaseAlgorithm::Run().
|
protected |
The training output file.
Definition at line 46 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protected |
Whether to train.
Definition at line 40 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), ReadSettings(), and SvmPfoCharacterisationAlgorithm().
|
protectedinherited |
Whether to update daughter cluster particle id labels to match pfo id.
Definition at line 68 of file PfoCharacterisationBaseAlgorithm.h.
Referenced by lar_content::PfoCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::PfoCharacterisationBaseAlgorithm::Run().
|
protected |
Whether to use 3D information.
Definition at line 42 of file SvmPfoCharacterisationAlgorithm.h.
Referenced by ReadSettings().