LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ClearTrackFragmentsTool class. More...
#include "ClearTrackFragmentsTool.h"
Public Types | |
typedef ThreeViewTrackFragmentsAlgorithm::MatchingType::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
ClearTrackFragmentsTool () | |
Default constructor. More... | |
bool | Run (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
Private Member Functions | |
bool | FindTrackFragments (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const TensorType &overlapTensor) const |
Find suitable matching track fragments in the overlap tensor to use for 3D particle creation, return value indicates whether particles are made. More... | |
bool | GetAndCheckElementList (const TensorType &overlapTensor, const pandora::Cluster *const pCluster, TensorType::ElementList &elementList) const |
Get the list of elements connected to a given cluster and check its suitability (no ambiguities) More... | |
bool | CheckOverlapResult (const TensorType::OverlapResult &overlapResult) const |
Check whether the overlap result passes matched sampling point and number of matched hit checks. More... | |
void | SelectClearElements (const TensorType::ElementList &elementList, IteratorList &iteratorList) const |
Select a list of clear track-like elements from a set of connected tensor elements. More... | |
void | ProcessTensorElement (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const TensorType &overlapTensor, const TensorType::OverlapResult &overlapResult, const pandora::Cluster *&pFragmentCluster) const |
Process a tensor element, reclustering the fragments as required. More... | |
void | Recluster (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const pandora::Cluster *const pCluster, const pandora::CaloHitList &daughterHits, const pandora::CaloHitList &separateHits, pandora::ClusterSet &deletedClusters, pandora::ClusterSet &badClusters, const pandora::Cluster *&pFragmentCluster) const |
Rearrange the hits in a cluster from the fragment list, using the Pandora fragmentation mechanism. More... | |
void | RebuildClusters (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const pandora::ClusterList &modifiedClusters, pandora::ClusterList &newClusters) const |
Rebuild clusters after fragmentation. More... | |
void | GetAffectedKeyClusters (const TensorType &overlapTensor, const pandora::ClusterList &clustersToRemoveFromTensor, pandora::ClusterList &affectedKeyClusters) const |
Get a list of the tensor key clusters for which tensor elements have been impacted by fragmentation operations. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_minMatchedSamplingPointFraction |
The minimum fraction of matched sampling points. More... | |
unsigned int | m_minMatchedHits |
The minimum number of matched calo hits. More... | |
ClearTrackFragmentsTool class.
Definition at line 19 of file ClearTrackFragmentsTool.h.
|
inherited |
Definition at line 167 of file ThreeViewTrackFragmentsAlgorithm.h.
|
inherited |
Definition at line 166 of file ThreeViewTrackFragmentsAlgorithm.h.
lar_content::ClearTrackFragmentsTool::ClearTrackFragmentsTool | ( | ) |
Default constructor.
Definition at line 20 of file ClearTrackFragmentsTool.cc.
|
private |
Check whether the overlap result passes matched sampling point and number of matched hit checks.
overlapResult | the overlap result |
Definition at line 138 of file ClearTrackFragmentsTool.cc.
References lar_content::FragmentOverlapResult::GetFragmentCaloHitList(), lar_content::TrackOverlapResult::GetMatchedFraction(), m_minMatchedHits, and m_minMatchedSamplingPointFraction.
Referenced by FindTrackFragments().
|
private |
Find suitable matching track fragments in the overlap tensor to use for 3D particle creation, return value indicates whether particles are made.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Definition at line 38 of file ClearTrackFragmentsTool.cc.
References CheckOverlapResult(), lar_content::MatchingBaseAlgorithm::CreateThreeDParticles(), GetAffectedKeyClusters(), GetAndCheckElementList(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), lar_content::ProtoParticle::m_clusterList, ProcessTensorElement(), SelectClearElements(), and lar_content::NViewTrackMatchingAlgorithm< T >::UpdateUponDeletion().
Referenced by Run().
|
private |
Get a list of the tensor key clusters for which tensor elements have been impacted by fragmentation operations.
overlapTensor | the overlap tensor |
clustersToRemoveFromTensor | the list of clusters removed from the tensor by fragmentation operations |
affectedKeyClusters | to receive the list of tensor key clusters that have been affected by fragmentation operations |
Definition at line 367 of file ClearTrackFragmentsTool.cc.
References lar_content::OverlapTensor< T >::begin(), lar_content::OverlapTensor< T >::end(), lar_content::FragmentOverlapResult::GetFragmentClusterList(), lar_content::FragmentOverlapResult::GetFragmentHitType(), and lar_content::LArClusterHelper::SortByNHits().
Referenced by FindTrackFragments(), and ProcessTensorElement().
|
private |
Get the list of elements connected to a given cluster and check its suitability (no ambiguities)
overlapTensor | the overlap tensor |
pCluster | address of the key cluster |
elementList | to receive the element list |
Definition at line 111 of file ClearTrackFragmentsTool.cc.
References lar_content::OverlapTensor< T >::GetConnectedElements().
Referenced by FindTrackFragments().
|
private |
Process a tensor element, reclustering the fragments as required.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
overlapResult | the overlap result |
pFragmentCluster | to receive the address of the new fragment cluster |
Definition at line 206 of file ClearTrackFragmentsTool.cc.
References GetAffectedKeyClusters(), lar_content::NViewMatchingAlgorithm< T >::GetClusterListName(), lar_content::FragmentOverlapResult::GetFragmentCaloHitList(), lar_content::FragmentOverlapResult::GetFragmentClusterList(), lar_content::FragmentOverlapResult::GetFragmentHitType(), RebuildClusters(), Recluster(), lar_content::NViewTrackMatchingAlgorithm< T >::SelectInputClusters(), lar_content::LArClusterHelper::SortByNHits(), lar_content::ThreeViewTrackFragmentsAlgorithm::UpdateForNewCluster(), and lar_content::NViewTrackMatchingAlgorithm< T >::UpdateUponDeletion().
Referenced by FindTrackFragments().
|
private |
Definition at line 408 of file ClearTrackFragmentsTool.cc.
References m_minMatchedHits, and m_minMatchedSamplingPointFraction.
|
private |
Rebuild clusters after fragmentation.
pAlgorithm | address of the calling algorithm |
modifiedClusters | the list of clusters to rebuild |
newClusters | the list of new clusters |
Definition at line 350 of file ClearTrackFragmentsTool.cc.
References lar_content::ThreeViewTrackFragmentsAlgorithm::RebuildClusters().
Referenced by ProcessTensorElement().
|
private |
Rearrange the hits in a cluster from the fragment list, using the Pandora fragmentation mechanism.
pAlgorithm | address of the calling algorithm |
pCluster | address of the input cluster |
daughterHits | the full list of hits to place in the new fragment cluster |
separateHits | the full list of hits that are not to be placed in the new fragment cluster |
deletedClusters | to receive the set of deleted clusters |
badClusters | the set of clusters that should not be dereferenced |
pFragmentCluster | to receive the address of the new fragment cluster |
Definition at line 301 of file ClearTrackFragmentsTool.cc.
Referenced by ProcessTensorElement().
|
virtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::FragmentTensorTool.
Definition at line 28 of file ClearTrackFragmentsTool.cc.
References FindTrackFragments().
|
private |
Select a list of clear track-like elements from a set of connected tensor elements.
elementList | the full list of connected tensor elements |
iteratorList | to receive a list of iterators to long track-like elements |
Definition at line 152 of file ClearTrackFragmentsTool.cc.
References f.
Referenced by FindTrackFragments().
|
private |
The minimum number of matched calo hits.
Definition at line 118 of file ClearTrackFragmentsTool.h.
Referenced by CheckOverlapResult(), and ReadSettings().
|
private |
The minimum fraction of matched sampling points.
Definition at line 117 of file ClearTrackFragmentsTool.h.
Referenced by CheckOverlapResult(), and ReadSettings().