LArSoft  v09_90_00
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 
20 
21 namespace cmtool {
22  class CMatchManager;
23 }
24 
25 namespace geo {
26  class GeometryCore;
27 }
28 
29 namespace detinfo {
30  class DetectorClocksData;
31  class DetectorPropertiesData;
32 }
33 
34 namespace recob {
35  class Shower;
36 }
37 
38 namespace showerreco {
39 
41 
42  typedef std::vector<std::vector<unsigned int>> ClusterAss_t;
43  typedef std::vector<::util::PxHit> PxHitSet_t;
44 
51  public:
54 
55  void Algo(ShowerRecoAlgBase* alg) { fShowerAlgo = alg; }
56 
57  const ShowerRecoAlgBase* Algo() const { return fShowerAlgo; }
58 
59  void Reset();
60 
61  ClusterAss_t Reconstruct(geo::GeometryCore const& geom,
62  detinfo::DetectorClocksData const& clockData,
63  detinfo::DetectorPropertiesData const& detProp,
64  const std::vector<std::vector<util::PxHit>>& clusters,
65  std::vector<::recob::Shower>& showers);
66 
67  void Reconstruct(geo::GeometryCore const& geom,
68  detinfo::DetectorClocksData const& clockData,
69  detinfo::DetectorPropertiesData const& detProp,
70  const std::vector<std::vector<util::PxHit>>& clusters,
71  const ClusterAss_t& ass,
72  std::vector<::recob::Shower>& showers);
73 
74  ::cmtool::CMatchManager& MatchManager() { return *fMatchMgr; }
75 
76  private:
78  bool fMatch;
79 
82 
85 
86  void Process(geo::GeometryCore const& geom,
87  detinfo::DetectorClocksData const& clockData,
88  detinfo::DetectorPropertiesData const& detProp,
89  const ClusterAss_t& ass,
90  std::vector<::recob::Shower>& showers);
91  };
92 }
93 
94 #endif
95  // 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()
bool fMatch
Boolean flag to whether or not to run matching.
General LArSoft Utilities.
Description of geometry of one entire detector.
Definition: GeometryCore.h:119
::cmtool::CMatchManager * fMatchMgr
Cluster matching code.
::cmtool::CMatchManager & MatchManager()
Contains all timing reference information for the detector.
const ShowerRecoAlgBase * Algo() const
Namespace collecting geometry-related classes utilities.