LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
CutClusterCharacterisationAlgorithm class. More...
#include "CutClusterCharacterisationAlgorithm.h"
Public Member Functions | |
CutClusterCharacterisationAlgorithm () | |
Default constructor. More... | |
Static Public Member Functions | |
static float | GetVertexDistance (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
Get the distance between the interaction vertex (if present in the current vertex list) and a provided cluster. More... | |
static float | GetShowerFitWidth (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster, const unsigned int showerFitWindow) |
Get a measure of the width of a cluster, using a sliding shower fit result. More... | |
Protected Member Functions | |
pandora::StatusCode | Run () |
Protected Attributes | |
pandora::StringVector | m_inputClusterListNames |
The names of the input cluster lists. More... | |
bool | m_zeroMode |
Whether to zero all existing cluster particle id, overrides all other parameters. More... | |
bool | m_overwriteExistingId |
Whether to consider any clusters that already have an assigned particle id. More... | |
bool | m_useUnavailableClusters |
Whether to consider clusters that are already constituents of a pfo. More... | |
Private Member Functions | |
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) |
Private Attributes | |
unsigned int | m_slidingFitWindow |
The layer window for the sliding linear fits. More... | |
unsigned int | m_slidingShowerFitWindow |
The layer window for the sliding shower fits. More... | |
unsigned int | m_minCaloHitsCut |
The minimum number of calo hits to qualify as a track. More... | |
float | m_maxShowerLengthCut |
The maximum cluster length to qualify as a shower. More... | |
float | m_pathLengthRatioCut |
The maximum ratio of path length to straight line length to qualify as a track. More... | |
float | m_rTWidthRatioCut |
The maximum ratio of transverse fit position width to straight line length to qualify as a track. More... | |
float | m_vertexDistanceRatioCut |
The maximum ratio of vertex separation to straight line length to qualify as a track. More... | |
float | m_showerWidthRatioCut |
The maximum ratio of shower fit width to straight line length to qualify as a track. More... | |
CutClusterCharacterisationAlgorithm class.
Definition at line 19 of file CutClusterCharacterisationAlgorithm.h.
lar_content::CutClusterCharacterisationAlgorithm::CutClusterCharacterisationAlgorithm | ( | ) |
Default constructor.
Definition at line 24 of file CutClusterCharacterisationAlgorithm.cc.
|
static |
Get a measure of the width of a cluster, using a sliding shower fit result.
pAlgorithm | the address of the calling algorithm |
pCluster | address of the cluster |
showerFitWindow | the layer window used for the sliding shower fit |
Definition at line 55 of file CutClusterCharacterisationAlgorithm.cc.
References f, lar_content::TwoDSlidingFitResult::GetLayerFitResultMap(), lar_content::TwoDSlidingShowerFitResult::GetNegativeEdgeFitResult(), lar_content::TwoDSlidingShowerFitResult::GetPositiveEdgeFitResult(), lar_content::TwoDSlidingShowerFitResult::GetShowerFitResult(), and lar_content::LArGeometryHelper::GetWireZPitch().
Referenced by lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), IsClearTrack(), and lar_content::TwoDShowerFitFeatureTool::Run().
|
static |
Get the distance between the interaction vertex (if present in the current vertex list) and a provided cluster.
pAlgorithm | the address of the calling algorithm |
pCluster | address of the cluster |
Definition at line 38 of file CutClusterCharacterisationAlgorithm.cc.
References lar_content::LArClusterHelper::GetClosestDistance(), lar_content::LArClusterHelper::GetClusterHitType(), and lar_content::LArGeometryHelper::ProjectPosition().
Referenced by lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), IsClearTrack(), and lar_content::TwoDVertexDistanceFeatureTool::Run().
|
privatevirtual |
Whether cluster is identified as a clear track.
pCluster | address of the relevant cluster |
Implements lar_content::ClusterCharacterisationBaseAlgorithm.
Definition at line 89 of file CutClusterCharacterisationAlgorithm.cc.
References f, lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerPosition(), lar_content::TwoDSlidingFitResult::GetGlobalMinLayerPosition(), lar_content::TwoDSlidingFitResult::GetGlobalPosition(), lar_content::TwoDSlidingFitResult::GetLayerFitResultMap(), GetShowerFitWidth(), GetVertexDistance(), lar_content::LArGeometryHelper::GetWireZPitch(), m_maxShowerLengthCut, m_minCaloHitsCut, m_pathLengthRatioCut, m_rTWidthRatioCut, m_showerWidthRatioCut, m_slidingFitWindow, m_slidingShowerFitWindow, and m_vertexDistanceRatioCut.
|
private |
Definition at line 148 of file CutClusterCharacterisationAlgorithm.cc.
References m_maxShowerLengthCut, m_minCaloHitsCut, m_pathLengthRatioCut, m_rTWidthRatioCut, m_showerWidthRatioCut, m_slidingFitWindow, m_slidingShowerFitWindow, m_vertexDistanceRatioCut, and lar_content::ClusterCharacterisationBaseAlgorithm::ReadSettings().
|
protectedinherited |
Definition at line 36 of file ClusterCharacterisationBaseAlgorithm.cc.
References lar_content::ClusterCharacterisationBaseAlgorithm::IsClearTrack(), lar_content::ClusterCharacterisationBaseAlgorithm::m_inputClusterListNames, lar_content::ClusterCharacterisationBaseAlgorithm::m_overwriteExistingId, lar_content::ClusterCharacterisationBaseAlgorithm::m_useUnavailableClusters, and lar_content::ClusterCharacterisationBaseAlgorithm::m_zeroMode.
|
protectedinherited |
The names of the input cluster lists.
Definition at line 45 of file ClusterCharacterisationBaseAlgorithm.h.
Referenced by lar_content::ClusterCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::ClusterCharacterisationBaseAlgorithm::Run().
|
private |
The maximum cluster length to qualify as a shower.
Definition at line 55 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
private |
The minimum number of calo hits to qualify as a track.
Definition at line 54 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protectedinherited |
Whether to consider any clusters that already have an assigned particle id.
Definition at line 49 of file ClusterCharacterisationBaseAlgorithm.h.
Referenced by lar_content::ClusterCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::ClusterCharacterisationBaseAlgorithm::Run().
|
private |
The maximum ratio of path length to straight line length to qualify as a track.
Definition at line 56 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
private |
The maximum ratio of transverse fit position width to straight line length to qualify as a track.
Definition at line 57 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
private |
The maximum ratio of shower fit width to straight line length to qualify as a track.
Definition at line 59 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
private |
The layer window for the sliding linear fits.
Definition at line 52 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
private |
The layer window for the sliding shower fits.
Definition at line 53 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protectedinherited |
Whether to consider clusters that are already constituents of a pfo.
Definition at line 50 of file ClusterCharacterisationBaseAlgorithm.h.
Referenced by lar_content::ClusterCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::ClusterCharacterisationBaseAlgorithm::Run().
|
private |
The maximum ratio of vertex separation to straight line length to qualify as a track.
Definition at line 58 of file CutClusterCharacterisationAlgorithm.h.
Referenced by IsClearTrack(), and ReadSettings().
|
protectedinherited |
Whether to zero all existing cluster particle id, overrides all other parameters.
Definition at line 47 of file ClusterCharacterisationBaseAlgorithm.h.
Referenced by lar_content::ClusterCharacterisationBaseAlgorithm::ReadSettings(), and lar_content::ClusterCharacterisationBaseAlgorithm::Run().