APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
ClusterFromTrackMergingAlgorithm5.h
Go to the documentation of this file.
1 /*
3  *
4  * ClusterFromTrackMergingAlgorithm5.h header template automatically generated by a class generator
5  * Creation date : jeu. avr. 9 2015
6  *
7  * This file is part of APRILContent libraries.
8  *
9  * APRILContent is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  * based upon these libraries are permitted. Any copy of these libraries
14  * must include this copyright notice.
15  *
16  * APRILContent is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with APRILContent. If not, see <http://www.gnu.org/licenses/>.
23  *
24  * @author Remi Ete
25  * @copyright CNRS , IPNL
26  */
27 
28 
29 #ifndef CLUSTERFROMTRACKMERGINGALGORITHM5_H
30 #define CLUSTERFROMTRACKMERGINGALGORITHM5_H
31 
32 #include "Pandora/Algorithm.h"
33 #include "Pandora/PandoraInputTypes.h"
35 
38 
39 namespace pandora { class ClusterFitResult; }
40 
41 namespace april_content
42 {
43 
47 class ClusterFromTrackMergingAlgorithm5 : public pandora::Algorithm
48 {
49 public:
53  class Factory : public pandora::AlgorithmFactory
54  {
55  public:
56  pandora::Algorithm *CreateAlgorithm() const;
57  };
58 
59 private:
60  pandora::StatusCode Run();
61  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
62 
63  april_content::APRILCluster* GetMainCluster(const pandora::CaloHitVector& caloHitVector);
64 
65  void GetNearbyClusters(pandora::Cluster* cluster, const std::vector<april_content::APRILCluster*>& clusterVector,
66  std::vector<april_content::APRILCluster*>& clustersInRange);
67 
68  void SearchProperClusters(const pandora::Track* pTrack, APRILCluster* startingCluster,
69  std::vector<april_content::APRILCluster*>& properClusters);
70 
71  pandora::StatusCode CleanClusterForMerging(std::vector<APRILCluster*>& clusterVector);
72  pandora::StatusCode GetEligibleClusters(std::vector<APRILCluster*>& clusterVector) const;
73 
74 private:
75  float m_maxStartingClusterDistance;
76  float m_maxClosestPhotonDistance;
77  bool m_mergeChargedClusters;
78  bool m_useMCForPhotonID;
79  bool m_useMCForChargeID;
80 
81  arma::mat m_clusterCentroidsMatrix;
82  std::vector<APRILCluster*> m_clustersToMerge;
83 };
84 
85 //------------------------------------------------------------------------------------------------------------------------------------------
86 
87 inline pandora::Algorithm *ClusterFromTrackMergingAlgorithm5::Factory::CreateAlgorithm() const
88 {
90 }
91 
92 }
93 
94 #endif
Cluster class.
Definition: Cluster.h:89
ClusterFromTrackMergingAlgorithm5 class.
Definition: ClusterFromTrackMergingAlgorithm5.h:47
Factory class for instantiating algorithm.
Definition: ClusterFromTrackMergingAlgorithm5.h:53