18 std::vector<::showerreco::ShowerCluster_t> clusters;
19 clusters.reserve(cpan_v.size());
21 for (
auto const& cpan : cpan_v) {
25 (*clusters.rbegin()).start_point = cpan.GetParams().start_point;
26 (*clusters.rbegin()).end_point = cpan.GetParams().end_point;
27 (*clusters.rbegin()).angle_2d = cpan.GetParams().angle_2d;
28 (*clusters.rbegin()).plane_id = cpan.Plane();
29 (*clusters.rbegin()).hit_vector = cpan.GetHitVector();
35 std::vector<::recob::Shower>
42 std::vector<::recob::Shower>
output;
46 output.push_back(
RecoOneShower(geom, clockData, detProp, clusters));
virtual void ProcessInputClusters()
Function to reorganize input cluster information.
std::vector< std::vector< showerreco::ShowerCluster_t > > fInputClusters
Input clusters.
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.
virtual void Reset()
Function to reset algorithm, to be called @ beginning of each event.
Description of geometry of one entire detector.
Contains all timing reference information for the detector.
Class def header for a class ShowerRecoAlgBase.
virtual ::recob::Shower RecoOneShower(geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::vector< showerreco::ShowerCluster_t > &clusters)=0
Function to reconstruct one shower.
Class def header for exception classes in ShowerReco3D package.