APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
SingleClusterIdAlgorithm.h
Go to the documentation of this file.
1 /*
3  * @author Bo Li(IPNL)
4  *
5  */
6 
7 #ifndef SINGLECLUSTERIDALGORITHM_H
8 #define SINGLECLUSTERIDALGORITHM_H
9 
10 #include "Pandora/Algorithm.h"
11 #include "Pandora/PandoraInternal.h"
12 
13 namespace april_content
14 {
18  class SingleClusterIdAlgorithm : public pandora::Algorithm
19  {
20  public:
24  class Factory : public pandora::AlgorithmFactory
25  {
26  public:
27  pandora::Algorithm *CreateAlgorithm() const;
28  };
29 
30  private:
31  pandora::StatusCode Run();
32  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
33 
41  pandora::StatusCode FillCluster(const pandora::ClusterList* pClusterList);
42  pandora::StatusCode FillPhotonCluster(const pandora::ClusterList* pPhotonList);
43 
44  private:
45  std::string m_clusterListName;
46  std::string m_photonListName;
47 
48  bool m_fillCluster;
49  bool m_fillPhoton;
50 
51  float m_minEnergyRatio;
52  };
53 
54  //------------------------------------------------------------------------------------------------------------------------------------------
55 
56  inline pandora::Algorithm *SingleClusterIdAlgorithm::Factory::CreateAlgorithm() const
57  {
58  return new SingleClusterIdAlgorithm();
59  }
60 }
61 
62 #endif // SINGLECLUSTERIDALGORITHM_H
std::string m_clusterListName
The name under which to save the new photon cluster list.
Definition: SingleClusterIdAlgorithm.h:45
Factory class for instantiating algorithm.
Definition: SingleClusterIdAlgorithm.h:24
pandora::StatusCode FillCluster(const pandora::ClusterList *pClusterList)
Select photons from the input cluster list.
Definition: SingleClusterIdAlgorithm.cc:44
SingleClusterIdAlgorithm class.
Definition: SingleClusterIdAlgorithm.h:18