LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
ConnectedRemnantsTool class. More...
#include "ConnectedRemnantsTool.h"
Public Types | |
typedef ThreeDRemnantsAlgorithm::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
ConnectedRemnantsTool () | |
Default constructor. More... | |
bool | Run (ThreeDRemnantsAlgorithm *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 ThreeDRemnantsAlgorithm.h.
Definition at line 62 of file ThreeDRemnantsAlgorithm.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 105 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 43 of file ConnectedRemnantsTool.cc.
References FillMergeMap(), GetClusters(), lar_content::OverlapTensor< T >::GetConnectedElements(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), IsConnected(), lar_content::ProtoParticle::m_clusterListU, lar_content::ProtoParticle::m_clusterListV, and lar_content::ProtoParticle::m_clusterListW.
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 89 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 124 of file ConnectedRemnantsTool.cc.
References lar_content::LArClusterHelper::GetClosestDistance(), and m_maxClusterSeparation.
Referenced by FindConnectedShowers().
|
private |
Definition at line 143 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::ThreeDBaseAlgorithm< T >::CreateThreeDParticles(), FindConnectedShowers(), and lar_content::ThreeDBaseAlgorithm< T >::MakeClusterMerges().
|
private |
Definition at line 68 of file ConnectedRemnantsTool.h.
Referenced by IsConnected(), and ReadSettings().