TrackConsolidationAlgorithm.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArTwoDReco/LArClusterSplitting/TrackConsolidationAlgorithm.h
3  *
4  * @brief Header file for the track consolidation algorithm class.
5  *
6  * $Log: $
7  */
8 #ifndef LAR_TRACK_CONSOLIDATION_ALGORITHM_H
9 #define LAR_TRACK_CONSOLIDATION_ALGORITHM_H 1
10 
12 
14 
15 namespace lar_content
16 {
17 
18 /**
19  * @brief TrackConsolidationAlgorithm class
20  */
22 {
23 public:
24  /**
25  * @brief Default constructor
26  */
28 
29 private:
30  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
31 
32  /**
33  * @brief Get the list of hits to be added to track clusters and removed from shower clusters
34  *
35  * @param slidingFitResultList the list of sliding linear fits to track clusters
36  * @param showerClusters the vector of shower clusters
37  * @param caloHitsToAdd the output map of hits to be added to clusters
38  * @param caloHitsToRemove the output map of hits to be removed from clusters
39  */
40  void GetReclusteredHits(const TwoDSlidingFitResultList &slidingFitResultList, const pandora::ClusterVector &showerClusters,
41  ClusterToHitMap &caloHitsToAdd, ClusterToHitMap &caloHitsToRemove) const;
42 
43  /**
44  * @brief Get the list of hits to be added to a track cluster and removed from a shower cluster
45  *
46  * @param slidingFitResult sliding linear fit to track cluster
47  * @param pTargetCluster shower cluster
48  * @param caloHitsToAdd the output map of hits to be added to clusters
49  * @param caloHitsToRemove the output map of hits to be removed from clusters
50  */
51  void GetReclusteredHits(const TwoDSlidingFitResult &slidingFitResult, const pandora::Cluster *const pTargetCluster,
52  ClusterToHitMap &caloHitsToAdd, ClusterToHitMap &caloHitsToRemove) const;
53 
55  float m_minAssociatedSpan; ///<
57 };
58 
59 } // namespace lar_content
60 
61 #endif // #ifndef LAR_TRACK_CONSOLIDATION_ALGORITHM_H
std::unordered_map< const pandora::Cluster *, pandora::CaloHitList > ClusterToHitMap
Header file for the 2D sliding fit consolidation algorithm class.
Header file for the cluster helper class.
void GetReclusteredHits(const TwoDSlidingFitResultList &slidingFitResultList, const pandora::ClusterVector &showerClusters, ClusterToHitMap &caloHitsToAdd, ClusterToHitMap &caloHitsToRemove) const
Get the list of hits to be added to track clusters and removed from shower clusters.
std::vector< TwoDSlidingFitResult > TwoDSlidingFitResultList
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::vector< art::Ptr< recob::Cluster > > ClusterVector