LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ConnectedRemnantsTool class. More...
#include "ConnectedRemnantsTool.h"
Public Types | |
typedef ThreeViewRemnantsAlgorithm::MatchingType::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
ConnectedRemnantsTool () | |
Default constructor. More... | |
bool | Run (ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
void | FindConnectedShowers (const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector, ClusterMergeMap &clusterMergeMap) const |
Identify candidate particles. More... | |
void | GetClusters (const TensorType::ElementList &connectedElements, const pandora::ClusterSet &usedClusters, pandora::ClusterVector &clusterVectorU, pandora::ClusterVector &clusterVectorV, pandora::ClusterVector &clusterVectorW) const |
Separate connected clusters into cluster lists by view. More... | |
void | FillMergeMap (const pandora::Cluster *const pCluster, const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const |
Fill map of clusters to be merged. More... | |
bool | IsConnected (const pandora::ClusterVector &clusterVector) const |
Check whether all clusters in a list are spatially connected. More... | |
Private Attributes | |
float | m_maxClusterSeparation |
ConnectedRemnantsTool class.
Definition at line 19 of file ConnectedRemnantsTool.h.
|
inherited |
Definition at line 63 of file ThreeViewRemnantsAlgorithm.h.
|
inherited |
Definition at line 62 of file ThreeViewRemnantsAlgorithm.h.
lar_content::ConnectedRemnantsTool::ConnectedRemnantsTool | ( | ) |
Default constructor.
Definition at line 20 of file ConnectedRemnantsTool.cc.
|
private |
Fill map of clusters to be merged.
clusterVector | the input vector of clusters |
clusterMergeMap | the output map of cluster merges |
Definition at line 106 of file ConnectedRemnantsTool.cc.
Referenced by FindConnectedShowers().
|
private |
Identify candidate particles.
overlapTensor | the input overlap tensor |
protoParticleVector | the output vector of candidate particles |
clusterMergeMap | the output map of clusters to be merged |
Definition at line 44 of file ConnectedRemnantsTool.cc.
References FillMergeMap(), GetClusters(), lar_content::OverlapTensor< T >::GetConnectedElements(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), IsConnected(), and lar_content::ProtoParticle::m_clusterList.
Referenced by Run().
|
private |
Separate connected clusters into cluster lists by view.
connectedElements | the input list of connected elements |
usedClusters | the list of clusters already analysed |
clusterVectorU | the output vector of clusters for the U view |
clusterVectorV | the output vector of clusters for the V view |
clusterVectorW | the output vector of clusters for the W view |
Definition at line 90 of file ConnectedRemnantsTool.cc.
Referenced by FindConnectedShowers().
|
private |
Check whether all clusters in a list are spatially connected.
clusterVector | the input cluster vector |
Definition at line 125 of file ConnectedRemnantsTool.cc.
References lar_content::LArClusterHelper::GetClosestDistance(), and m_maxClusterSeparation.
Referenced by FindConnectedShowers().
|
private |
Definition at line 144 of file ConnectedRemnantsTool.cc.
References m_maxClusterSeparation.
|
virtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::RemnantTensorTool.
Definition at line 27 of file ConnectedRemnantsTool.cc.
References lar_content::MatchingBaseAlgorithm::CreateThreeDParticles(), FindConnectedShowers(), and lar_content::MatchingBaseAlgorithm::MakeClusterMerges().
|
private |
Definition at line 68 of file ConnectedRemnantsTool.h.
Referenced by IsConnected(), and ReadSettings().