LArSoft  v10_04_05
Liquid Argon Software toolkit - https://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 <vector>
18 
21 
22 namespace cmtool {
23  class CMatchManager;
24 }
25 
26 namespace detinfo {
27  class DetectorClocksData;
28  class DetectorPropertiesData;
29 }
30 
31 namespace recob {
32  class Shower;
33 }
34 
35 namespace showerreco {
36 
38 
39  typedef std::vector<std::vector<unsigned int>> ClusterAss_t;
40  typedef std::vector<::util::PxHit> PxHitSet_t;
41 
48  public:
49  explicit ShowerRecoManager(unsigned int num_planes);
50 
51  void Algo(ShowerRecoAlgBase* alg) { fShowerAlgo = alg; }
52 
53  const ShowerRecoAlgBase* Algo() const { return fShowerAlgo; }
54 
55  void Reset();
56 
57  ClusterAss_t Reconstruct(geo::GeometryCore const& geom,
58  geo::WireReadoutGeom const& wireReadoutGeom,
59  detinfo::DetectorClocksData const& clockData,
60  detinfo::DetectorPropertiesData const& detProp,
61  const std::vector<std::vector<util::PxHit>>& clusters,
62  std::vector<::recob::Shower>& showers);
63 
64  void Reconstruct(geo::GeometryCore const& geom,
65  geo::WireReadoutGeom const& wireReadoutGeom,
66  detinfo::DetectorClocksData const& clockData,
67  detinfo::DetectorPropertiesData const& detProp,
68  const std::vector<std::vector<util::PxHit>>& clusters,
69  const ClusterAss_t& ass,
70  std::vector<::recob::Shower>& showers);
71 
72  ::cmtool::CMatchManager& MatchManager() { return *fMatchMgr; }
73 
74  private:
76  bool fMatch;
77 
80 
83 
84  void Process(geo::GeometryCore const& geom,
85  geo::WireReadoutGeom const& wireReadoutGeom,
86  detinfo::DetectorClocksData const& clockData,
87  detinfo::DetectorPropertiesData const& detProp,
88  const ClusterAss_t& ass,
89  std::vector<::recob::Shower>& showers);
90  };
91 }
92 
93 #endif
94  // end of doxygen group
void Algo(ShowerRecoAlgBase *alg)
std::vector< std::vector< unsigned int > > ClusterAss_t
Reconstruction base classes.
::showerreco::ShowerRecoAlgBase * fShowerAlgo
Shower reconstruction algorithm.
std::vector<::util::PxHit > PxHitSet_t
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
ntupleExperimental Reset()
Interface for a class providing readout channel mapping to geometry.
bool fMatch
Boolean flag to whether or not to run matching.
General LArSoft Utilities.
Description of the physical geometry of one entire detector.
Definition: GeometryCore.h:91
::cmtool::CMatchManager * fMatchMgr
Cluster matching code.
::cmtool::CMatchManager & MatchManager()
Contains all timing reference information for the detector.
const ShowerRecoAlgBase * Algo() const