LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ShowerRecoManager.h
Go to the documentation of this file.
1 
14 #ifndef LARLITE_SHOWERRECOMANAGER_H
15 #define LARLITE_SHOWERRECOMANAGER_H
16 
17 #include <iostream>
19 #include "ShowerRecoException.h"
20 #include "ShowerRecoAlgBase.h"
21 
22 namespace showerreco {
23 
24  typedef std::vector<std::vector<unsigned int> > ClusterAss_t;
25 
26  typedef std::vector< ::util::PxHit> PxHitSet_t;
27 
34 
35  public:
36 
39 
42 
43  void Algo (ShowerRecoAlgBase* alg) { fShowerAlgo = alg; }
44 
45  const ShowerRecoAlgBase* Algo() const { return fShowerAlgo; }
46 
47  void Reset();
48 
49  ClusterAss_t Reconstruct (const std::vector<std::vector<util::PxHit> >& clusters,
50  std::vector< ::recob::Shower>& showers);
51 
52  void Reconstruct (const std::vector<std::vector<util::PxHit> >& clusters,
53  const ClusterAss_t& ass,
54  std::vector< ::recob::Shower>& showers);
55 
57 
58  private:
59 
61  bool fMatch;
62 
65 
68 
69  void Process(const ClusterAss_t& ass,
70  std::vector< ::recob::Shower>& showers);
71 
72  };
73 }
74 
75 #endif
76  // end of doxygen group
77 
void Algo(ShowerRecoAlgBase *alg)
std::vector< std::vector< unsigned int > > ClusterAss_t
::showerreco::ShowerRecoAlgBase * fShowerAlgo
Shower reconstruction algorithm.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
bool fMatch
Boolean flag to whether or not to run matching.
ClusterAss_t Reconstruct(const std::vector< std::vector< util::PxHit > > &clusters, std::vector< ::recob::Shower > &showers)
::cmtool::CMatchManager * fMatchMgr
Cluster matching code.
::cmtool::CMatchManager & MatchManager()
Class def header for a class CMatchManager.
Class def header for a class ShowerRecoAlgBase.
std::vector< ::util::PxHit > PxHitSet_t
const ShowerRecoAlgBase * Algo() const
~ShowerRecoManager()
Default destructor.
void Process(const ClusterAss_t &ass, std::vector< ::recob::Shower > &showers)
Class def header for exception classes in ShowerReco3D package.
ShowerRecoManager()
Default constructor.