MopUpRemnantsTool.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArThreeDReco/LArShowerFragments/MopUpRemnantsTool.h
3  *
4  * @brief Header file for the mop-up remnants tool class.
5  *
6  * $Log: $
7  */
8 #ifndef MOP_UP_REMNANTS_TOOL_H
9 #define MOP_UP_REMNANTS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
16 /**
17  * @brief MopUpRemnantsTool class
18  */
20 {
21 public:
22  /**
23  * @brief Default constructor
24  */
26 
27  bool Run(ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28 
29 private:
30  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
31 
32  /**
33  * @brief Identify candidate particles
34  *
35  * @param overlapTensor the input overlap tensor
36  * @param protoParticleVector the output vector of candidate particles
37  * @param clusterMergeMap the output map of clusters to be merged
38  */
39  void FindBestShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const;
40 
41  /**
42  * @brief Copy used clusters into cluster list
43  *
44  * @param elementList the input list of elements
45  * @param usedClusters to receive the list of used clusters
46  */
47  void GetUsedClusters(const TensorType::ElementList &elementList, pandora::ClusterSet &usedClusters) const;
48 
49  /**
50  * @brief Select the best triplet of clusters
51  *
52  * @param elementList the input list of elements
53  * @param usedClusters the list of cluster analysed so far
54  * @param bestIter iterator to the best element in the list
55  */
56  void SelectBestElement(const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters,
58 };
59 
60 } // namespace lar_content
61 
62 #endif // #ifndef MOP_UP_REMNANTS_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
void GetUsedClusters(const TensorType::ElementList &elementList, pandora::ClusterSet &usedClusters) const
Copy used clusters into cluster list.
void FindBestShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const
Identify candidate particles.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::vector< Element > ElementList
void SelectBestElement(const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, TensorType::ElementList::const_iterator &bestIter) const
Select the best triplet of clusters.
MopUpRemnantsTool class.
MopUpRemnantsTool()
Default constructor.
TheTensor::const_iterator const_iterator
Header file for the three view remnants algorithm class.
bool Run(ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.