TwoDSlidingFitConsolidationAlgorithm class. More...
#include <TwoDSlidingFitConsolidationAlgorithm.h>
Public Member Functions | |
TwoDSlidingFitConsolidationAlgorithm () | |
Default constructor. More... | |
Protected Types | |
typedef std::unordered_map < const pandora::Cluster *, pandora::CaloHitList > | ClusterToHitMap |
Protected Member Functions | |
pandora::StatusCode | Run () |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
virtual void | GetReclusteredHits (const TwoDSlidingFitResultList &slidingFitResultList, const pandora::ClusterVector &showerClusters, ClusterToHitMap &caloHitsToAdd, ClusterToHitMap &caloHitsToRemove) const =0 |
Get the list of hits to be added or removed from clusters. More... | |
Private Member Functions | |
void | SortInputClusters (const pandora::ClusterList *const pClusterList, pandora::ClusterVector &trackClusters, pandora::ClusterVector &showerClusters) const |
Sort input cluster list into track-like clusters and shower-like clusters. More... | |
void | BuildSlidingLinearFits (const pandora::ClusterVector &trackClusters, TwoDSlidingFitResultList &slidingFitResultList) const |
Apply sliding linear fits to track clusters. More... | |
pandora::StatusCode | RemoveHitsFromClusters (const ClusterToHitMap &clustersToRebuild, pandora::ClusterSet &unavailableClusters) const |
Remove hits from clusters. More... | |
pandora::StatusCode | AddHitsToClusters (const ClusterToHitMap &clustersToRebuild, pandora::ClusterSet &unavailableClusters) const |
Add hits to clusters. More... | |
pandora::StatusCode | RebuildClusters (const ClusterToHitMap &clustersAtStart, const pandora::ClusterSet &unavailableClusters) const |
Re-build clusters. More... | |
Private Attributes | |
std::string | m_reclusteringAlgorithmName |
Name of daughter algorithm to use for cluster re-building. More... | |
float | m_minTrackLength |
Minimum length of track clusters to consolidate. More... | |
float | m_maxClusterLength |
Maximum length of shower clusters to use in re-building. More... | |
unsigned int | m_halfWindowLayers |
Size of layer window for sliding fit results. More... | |
TwoDSlidingFitConsolidationAlgorithm class.
Definition at line 23 of file TwoDSlidingFitConsolidationAlgorithm.h.
|
protected |
Definition at line 35 of file TwoDSlidingFitConsolidationAlgorithm.h.
lar_content::TwoDSlidingFitConsolidationAlgorithm::TwoDSlidingFitConsolidationAlgorithm | ( | ) |
Default constructor.
Definition at line 21 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Add hits to clusters.
clustersToRebuild | the list of hits to be added to clusters |
unavailableClusters | the list of modified clusters |
Definition at line 146 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Apply sliding linear fits to track clusters.
trackClusters | the input vector of track-like clusters |
slidingFitResultList | the output list of sliding linear fits |
Definition at line 80 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
protectedpure virtual |
Get the list of hits to be added or removed from clusters.
slidingFitResultList | the list of sliding linear fits to track clusters |
showerClusters | the vector of shower clusters |
caloHitsToAdd | the output map of hits to be added to clusters |
caloHitsToRemove | the output map of hits to be removed from clusters |
Implemented in lar_content::TrackConsolidationAlgorithm.
|
protected |
Definition at line 221 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Re-build clusters.
clustersAtStart | the initial mapping of clusters to hits |
unavailableClusters | the list of unavailable clusters |
Definition at line 181 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Remove hits from clusters.
clustersToRebuild | the list of hits to be removed from clusters |
unavailableClusters | the list of deleted clusters |
Definition at line 101 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
protected |
Definition at line 30 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Sort input cluster list into track-like clusters and shower-like clusters.
pClusterList | the input cluster list |
trackClusters | the output vector of track-like clusters |
showerClusters | the output vector of shower-like clusters |
Definition at line 58 of file TwoDSlidingFitConsolidationAlgorithm.cc.
|
private |
Size of layer window for sliding fit results.
Definition at line 94 of file TwoDSlidingFitConsolidationAlgorithm.h.
|
private |
Maximum length of shower clusters to use in re-building.
Definition at line 93 of file TwoDSlidingFitConsolidationAlgorithm.h.
|
private |
Minimum length of track clusters to consolidate.
Definition at line 92 of file TwoDSlidingFitConsolidationAlgorithm.h.
|
private |
Name of daughter algorithm to use for cluster re-building.
Definition at line 91 of file TwoDSlidingFitConsolidationAlgorithm.h.