3 #include "art/Framework/Services/Registry/ServiceHandle.h"
14 namespace showerreco {
19 art::ServiceHandle<geo::Geometry const> geom;
20 fMatchMgr = new ::cmtool::CMatchManager(geom->Nplanes());
34 const std::vector<std::vector<util::PxHit>>& clusters,
35 std::vector<::recob::Shower>& showers)
52 Process(geom, clockData, detProp, res_ass, showers);
61 const std::vector<std::vector<util::PxHit>>& clusters,
63 std::vector<::recob::Shower>& showers)
69 Process(geom, clockData, detProp, ass, showers);
77 std::vector<::recob::Shower>& showers)
80 for (
auto const& pair : ass) {
81 std::vector<::cluster::ClusterParamsAlg> cpans;
83 cpans.reserve(pair.size());
85 for (
auto const& index : pair)
std::vector< std::vector< unsigned int > > ClusterAss_t
Class def header for a class CMatchBookKeeper.
::showerreco::ShowerRecoAlgBase * fShowerAlgo
Shower reconstruction algorithm.
virtual void AppendInputClusters(const std::vector< cluster::ClusterParamsAlg > &cpan_v)
Setter for a matched combination of clusters.
std::vector< recob::Shower > Reconstruct(geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp)
Execute reconstruction.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
virtual void Reset()
Function to reset algorithm, to be called @ beginning of each event.
void Process(geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const ClusterAss_t &ass, std::vector<::recob::Shower > &showers)
Class def header for exception classes in CMTException.
bool fMatch
Boolean flag to whether or not to run matching.
Description of geometry of one entire detector.
::cmtool::CMatchManager * fMatchMgr
Cluster matching code.
Class def header for a class CMatchManager.
Contains all timing reference information for the detector.
Class def header for a class ShowerRecoAlgBase.
art framework interface to geometry description
ClusterAss_t Reconstruct(geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::vector< std::vector< util::PxHit >> &clusters, std::vector<::recob::Shower > &showers)
ShowerRecoManager()
Default constructor.
Class def header for a class ShowerRecoManager.