MarlinPandora  03.00.00
 All Classes Functions Variables
ExternalClusteringAlgorithm.h
1 
8 #ifndef EXTERNAL_CLUSTERING_ALGORITHM_H
9 #define EXTERNAL_CLUSTERING_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
13 namespace pandora { class CaloHit; }
14 
15 //------------------------------------------------------------------------------------------------------------------------------------------
16 
20 class ExternalClusteringAlgorithm : public pandora::Algorithm
21 {
22 public:
26  class Factory : public pandora::AlgorithmFactory
27  {
28  public:
29  pandora::Algorithm *CreateAlgorithm() const;
30  };
31 
36 
37 private:
38  pandora::StatusCode Run();
39  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
40 
41  typedef std::map<const void *, const pandora::CaloHit *> ParentAddressToCaloHitMap;
42 
43  std::string m_externalClusterCollectionName;
44  bool m_flagClustersAsPhotons;
45 };
46 
47 //------------------------------------------------------------------------------------------------------------------------------------------
48 
49 inline pandora::Algorithm *ExternalClusteringAlgorithm::Factory::CreateAlgorithm() const
50 {
51  return new ExternalClusteringAlgorithm();
52 }
53 
54 #endif // #ifndef EXTERNAL_CLUSTERING_ALGORITHM_H
ExternalClusteringAlgorithm class.
Definition: ExternalClusteringAlgorithm.h:20
Factory class for instantiating algorithm.
Definition: ExternalClusteringAlgorithm.h:26
ExternalClusteringAlgorithm()
Default constructor.
Definition: ExternalClusteringAlgorithm.cc:20