LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
showerreco::ShowerRecoAlgBase Class Referenceabstract

#include "ShowerRecoAlgBase.h"

Inheritance diagram for showerreco::ShowerRecoAlgBase:
showerreco::ShowerRecoAlg

Public Member Functions

virtual ~ShowerRecoAlgBase ()=default
 
virtual void Reset ()
 Function to reset algorithm, to be called @ beginning of each event. More...
 
virtual void AppendInputClusters (const std::vector< cluster::ClusterParamsAlg > &cpan_v)
 Setter for a matched combination of clusters. More...
 
std::vector< recob::ShowerReconstruct (geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp)
 Execute reconstruction. More...
 

Protected Member Functions

virtual void ProcessInputClusters ()
 Function to reorganize input cluster information. More...
 
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. More...
 

Protected Attributes

std::vector< std::vector< showerreco::ShowerCluster_t > > fInputClusters
 Input clusters. More...
 

Detailed Description

User defined class ShowerRecoAlgBase ... these comments are used to generate doxygen documentation!

Definition at line 50 of file ShowerRecoAlgBase.h.

Constructor & Destructor Documentation

virtual showerreco::ShowerRecoAlgBase::~ShowerRecoAlgBase ( )
virtualdefault

Member Function Documentation

void showerreco::ShowerRecoAlgBase::AppendInputClusters ( const std::vector< cluster::ClusterParamsAlg > &  cpan_v)
virtual

Setter for a matched combination of clusters.

Definition at line 14 of file ShowerRecoAlgBase.cxx.

References fInputClusters.

Referenced by showerreco::ShowerRecoManager::Process().

16  {
17  std::vector<::showerreco::ShowerCluster_t> clusters;
18  clusters.reserve(cpan_v.size());
19 
20  for (auto const& cpan : cpan_v) {
21 
22  clusters.push_back(::showerreco::ShowerCluster_t());
23 
24  (*clusters.rbegin()).start_point = cpan.GetParams().start_point;
25  (*clusters.rbegin()).end_point = cpan.GetParams().end_point;
26  (*clusters.rbegin()).angle_2d = cpan.GetParams().angle_2d;
27  (*clusters.rbegin()).plane_id = cpan.Plane();
28  (*clusters.rbegin()).hit_vector = cpan.GetHitVector();
29  }
30 
31  fInputClusters.push_back(clusters);
32  }
std::vector< std::vector< showerreco::ShowerCluster_t > > fInputClusters
Input clusters.
virtual void showerreco::ShowerRecoAlgBase::ProcessInputClusters ( )
inlineprotectedvirtual

Function to reorganize input cluster information.

Definition at line 67 of file ShowerRecoAlgBase.h.

Referenced by Reconstruct().

67 {}
std::vector<::recob::Shower > showerreco::ShowerRecoAlgBase::Reconstruct ( geo::GeometryCore const &  geom,
detinfo::DetectorClocksData const &  clockData,
detinfo::DetectorPropertiesData const &  detProp 
)

Execute reconstruction.

Definition at line 34 of file ShowerRecoAlgBase.cxx.

References fInputClusters, ProcessInputClusters(), and RecoOneShower().

Referenced by showerreco::ShowerRecoManager::Process().

38  {
40 
41  std::vector<::recob::Shower> output;
42  output.reserve(fInputClusters.size());
43 
44  for (auto const& clusters : fInputClusters)
45  output.push_back(RecoOneShower(geom, clockData, detProp, clusters));
46 
47  return output;
48  }
virtual void ProcessInputClusters()
Function to reorganize input cluster information.
std::vector< std::vector< showerreco::ShowerCluster_t > > fInputClusters
Input clusters.
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.
virtual ::recob::Shower showerreco::ShowerRecoAlgBase::RecoOneShower ( geo::GeometryCore const &  geom,
detinfo::DetectorClocksData const &  clockData,
detinfo::DetectorPropertiesData const &  detProp,
const std::vector< showerreco::ShowerCluster_t > &  clusters 
)
protectedpure virtual

Function to reconstruct one shower.

Referenced by Reconstruct().

void showerreco::ShowerRecoAlgBase::Reset ( )
virtual

Function to reset algorithm, to be called @ beginning of each event.

Definition at line 9 of file ShowerRecoAlgBase.cxx.

References fInputClusters.

Referenced by showerreco::ShowerRecoManager::Reset().

10  {
11  fInputClusters.clear();
12  }
std::vector< std::vector< showerreco::ShowerCluster_t > > fInputClusters
Input clusters.

Member Data Documentation

std::vector<std::vector<showerreco::ShowerCluster_t> > showerreco::ShowerRecoAlgBase::fInputClusters
protected

Input clusters.

Definition at line 78 of file ShowerRecoAlgBase.h.

Referenced by AppendInputClusters(), Reconstruct(), and Reset().


The documentation for this class was generated from the following files: