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 (util::GeometryUtilities const &gser, 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 (util::GeometryUtilities const &gser, Cont cont) |
Calls SetHits() with the hits in the sequence. More... | |
template<typename Cont , typename Convert > | |
void | ImportHits (util::GeometryUtilities const &gser, 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 44 of file ClusterParamsImportWrapper.h.
using cluster::ClusterParamsImportWrapper< Algo >::ClusterParamsAlg_t = Algo |
type of wrapped class
Definition at line 46 of file ClusterParamsImportWrapper.h.
|
inline |
Constructor: just forwards all the stuff to the wrapped class.
Definition at line 50 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 70 of file ClusterParamsImportWrapper.h.
|
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 97 of file ClusterParamsImportWrapper.h.
|
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 116 of file ClusterParamsImportWrapper.h.
|
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 138 of file ClusterParamsImportWrapper.h.