LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ConnectedRemnantsTool.h
Go to the documentation of this file.
1 
8 #ifndef CONNECTED_REMNANTS_TOOL_H
9 #define CONNECTED_REMNANTS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
20 {
21 public:
26 
27  bool Run(ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28 
29 private:
30  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
31 
39  void FindConnectedShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector, ClusterMergeMap &clusterMergeMap) const;
40 
50  void GetClusters(const TensorType::ElementList &connectedElements, const pandora::ClusterSet &usedClusters,
51  pandora::ClusterVector &clusterVectorU, pandora::ClusterVector &clusterVectorV, pandora::ClusterVector &clusterVectorW) const;
52 
59  void FillMergeMap(const pandora::Cluster *const pCluster, const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const;
60 
66  bool IsConnected(const pandora::ClusterVector &clusterVector) const;
67 
69 };
70 
71 } // namespace lar_content
72 
73 #endif // #ifndef CONNECTED_REMNANTS_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
void FindConnectedShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector, ClusterMergeMap &clusterMergeMap) const
Identify candidate particles.
ConnectedRemnantsTool class.
void FillMergeMap(const pandora::Cluster *const pCluster, const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const
Fill map of clusters to be merged.
std::vector< Element > ElementList
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.
bool IsConnected(const pandora::ClusterVector &clusterVector) const
Check whether all clusters in a list are spatially connected.
bool Run(ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
ConnectedRemnantsTool()
Default constructor.
std::unordered_map< const pandora::Cluster *, pandora::ClusterList > ClusterMergeMap
std::vector< art::Ptr< recob::Cluster > > ClusterVector
Header file for the three view remnants algorithm class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)