29 #ifndef CLUSTERFROMTRACKMERGINGALGORITHM5_H
30 #define CLUSTERFROMTRACKMERGINGALGORITHM5_H
32 #include "Pandora/Algorithm.h"
33 #include "Pandora/PandoraInputTypes.h"
39 namespace pandora {
class ClusterFitResult; }
41 namespace april_content
53 class Factory :
public pandora::AlgorithmFactory
56 pandora::Algorithm *CreateAlgorithm()
const;
60 pandora::StatusCode Run();
61 pandora::StatusCode ReadSettings(
const pandora::TiXmlHandle xmlHandle);
65 void GetNearbyClusters(pandora::Cluster* cluster,
const std::vector<april_content::APRILCluster*>& clusterVector,
66 std::vector<april_content::APRILCluster*>& clustersInRange);
68 void SearchProperClusters(
const pandora::Track* pTrack,
APRILCluster* startingCluster,
69 std::vector<april_content::APRILCluster*>& properClusters);
71 pandora::StatusCode CleanClusterForMerging(std::vector<APRILCluster*>& clusterVector);
72 pandora::StatusCode GetEligibleClusters(std::vector<APRILCluster*>& clusterVector)
const;
75 float m_maxStartingClusterDistance;
76 float m_maxClosestPhotonDistance;
77 bool m_mergeChargedClusters;
78 bool m_useMCForPhotonID;
79 bool m_useMCForChargeID;
81 arma::mat m_clusterCentroidsMatrix;
82 std::vector<APRILCluster*> m_clustersToMerge;
87 inline pandora::Algorithm *ClusterFromTrackMergingAlgorithm5::Factory::CreateAlgorithm()
const
Cluster class.
Definition: Cluster.h:89
ClusterFromTrackMergingAlgorithm5 class.
Definition: ClusterFromTrackMergingAlgorithm5.h:47
Factory class for instantiating algorithm.
Definition: ClusterFromTrackMergingAlgorithm5.h:53