APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
FragmentRemovalAlgorithm.h
Go to the documentation of this file.
1 /*
3  *
4  * FragmentRemovalAlgorithm.h header template automatically generated by a class generator
5  * Creation date : jeu. juin 30 2016
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 FRAGMENTREMOVALALGORITHM_H
30 #define FRAGMENTREMOVALALGORITHM_H
31 
32 #include "Pandora/Algorithm.h"
33 #include "Pandora/PandoraInputTypes.h"
35 
36 namespace april_content
37 {
38 
39 class CaloHitMergingTool;
40 
44 class FragmentRemovalAlgorithm : public pandora::Algorithm
45 {
46 public:
50  class Factory : public pandora::AlgorithmFactory
51  {
52  public:
53  pandora::Algorithm *CreateAlgorithm() const;
54  };
55 
56 private:
57  pandora::StatusCode Run();
58  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
59 
65  pandora::StatusCode FindClusterFragments(pandora::ClusterVector &clusterVector) const;
66 
73  pandora::StatusCode RemoveClusterFragments(const pandora::ClusterVector &clusterVector, pandora::CaloHitList &removalCaloHitList) const;
74 
78  pandora::StatusCode GetMergingClusters(pandora::ClusterVector &clusterVector) const;
79 
80 private:
81  unsigned int m_maxNHitsForAutomaticRemoval;
82  float m_maxEnergyForAutomaticRemoval;
83  float m_maxHadronicEnergyForAutomaticRemoval;
84  unsigned int m_maxNHitsNonFragments;
85  float m_maxEnergyNonFragments;
86  float m_maxFragmentDensity;
87  float m_maxProximityDistanceFine;
88  float m_maxProximityDistanceCoarse;
89  unsigned int m_maxNHitsProximity;
90  pandora::StringVector m_additionalClusterMergingListNames;
92 };
93 
94 //------------------------------------------------------------------------------------------------------------------------------------------
95 
96 inline pandora::Algorithm *FragmentRemovalAlgorithm::Factory::CreateAlgorithm() const
97 {
98  return new FragmentRemovalAlgorithm();
99 }
100 
101 }
102 
103 #endif // FRAGMENTREMOVALALGORITHM_H
pandora::StatusCode RemoveClusterFragments(const pandora::ClusterVector &clusterVector, pandora::CaloHitList &removalCaloHitList) const
Remove cluster fragments and grab their calo hits.
Definition: FragmentRemovalAlgorithm.cc:202
Factory class for instantiating algorithm.
Definition: FragmentRemovalAlgorithm.h:50
CaloHitMergingTool class.
Definition: CaloHitMergingTool.h:42
FragmentRemovalAlgorithm class.
Definition: FragmentRemovalAlgorithm.h:44
CaloHitMergingTool * m_pCaloHitMergingTool
The calo hit merging tool.
Definition: FragmentRemovalAlgorithm.h:91
pandora::StatusCode FindClusterFragments(pandora::ClusterVector &clusterVector) const
Find cluster fragments in the event.
Definition: FragmentRemovalAlgorithm.cc:66