LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Wrapper for ClusterParamsAlgBase objects to accept diverse input. More...
#include "ClusterParamsImportWrapper.h"
Public Types | |
using | ClusterParamsAlg_t = Algo |
type of wrapped class More... | |
Public Member Functions | |
template<typename... Args> | |
ClusterParamsImportWrapper (Args...args) | |
Constructor: just forwards all the stuff to the wrapped class. More... | |
Hit import functions | |
Methods to import hits int the algorithm. | |
template<typename Iter > | |
void | ImportHits (Iter begin, Iter end) |
Calls SetHits() with the hits in the sequence. More... | |
template<typename Iter , typename Convert > | |
void | ImportHits (Iter begin, Iter end, Convert converter) |
Calls SetHits() with the result of converted hits. More... | |
template<typename Cont > | |
void | ImportHits (Cont cont) |
Calls SetHits() with the hits in the sequence. More... | |
template<typename Cont , typename Convert > | |
void | ImportHits (Cont cont, Convert converter) |
Calls SetHits() with the result of converted hits. More... | |
Wrapper for ClusterParamsAlgBase objects to accept diverse input.
Algo | the ClusterParamsAlgBase-derived class to be wrapped |
This simple wrapper class adds a non-virtual ImportHits() method that can import Hits from different formats than std::vector<recob::Hit const*>.
This also allows the algorithms derived from ClusterParamsAlgBase to stay framework-agnostic.
Definition at line 37 of file ClusterParamsImportWrapper.h.
using cluster::ClusterParamsImportWrapper< Algo >::ClusterParamsAlg_t = Algo |
type of wrapped class
Definition at line 39 of file ClusterParamsImportWrapper.h.
|
inline |
Constructor: just forwards all the stuff to the wrapped class.
Definition at line 44 of file ClusterParamsImportWrapper.h.
|
inline |
Calls SetHits() with the hits in the sequence.
Iter | type of iterator to source hits |
begin | iterator to the first hit source |
end | iterator to after-the-last hit source |
The type in the sequence should contain either recob::Hit or some sort of pointer to it.
Definition at line 63 of file ClusterParamsImportWrapper.h.
References hits(), lar::util::make_pointer(), and fhicl::detail::atom::value().
Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput(), cluster::HoughBaseAlg::FastTransform(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), cluster::ClusterCheater::produce(), cluster::DBcluster::produce(), cluster::LineMerger::produce(), cluster::fuzzyCluster::produce(), and cluster::SmallClusterFinder::produce().
|
inline |
Calls SetHits() with the result of converted hits.
Iter | type of iterator to source hits |
Convert | type of operation to convert to recob::Hit const* |
begin | iterator to the first hit source |
end | iterator to after-the-last hit source |
converter | predicate to convert the pointed values to recob::Hit |
The converter should respect either of the forms:
recob::Hit converter(typename Iter::value_type) recob::Hit const* converter(typename Iter::value_type)
The hit produced by the converter will be moved into a vector, and the complete vector will be used to initialize the algorithm.
Definition at line 88 of file ClusterParamsImportWrapper.h.
References hits(), lar::util::make_pointer(), and fhicl::detail::atom::value().
|
inline |
Calls SetHits() with the hits in the sequence.
Cont | type of container to source hits |
cont | container of source hits |
The type in the container should contain either recob::Hit or some sort of pointer to it.
Definition at line 108 of file ClusterParamsImportWrapper.h.
References evd::details::begin(), evd::details::end(), and cluster::ClusterParamsImportWrapper< Algo >::ImportHits().
|
inline |
Calls SetHits() with the result of converted hits.
Cont | type of container to source hits |
Convert | type of operation to convert to recob::Hit const* |
cont | container of source hits |
converter | predicate to convert the pointed values to recob::Hit |
The converter should respect either of the forms:
recob::Hit converter(typename Iter::value_type) recob::Hit const* converter(typename Iter::value_type)
The hit produced by the converter will be moved into a vector, and the complete vector will be used to initialize the algorithm.
Definition at line 127 of file ClusterParamsImportWrapper.h.
References evd::details::begin(), evd::details::end(), and cluster::ClusterParamsImportWrapper< Algo >::ImportHits().