10 #ifndef CLUSTERPARAMSARTWRAPPER_H 11 #define CLUSTERPARAMSARTWRAPPER_H 21 class GeometryUtilities;
49 template <
typename... Args>
68 template <
typename Iter>
71 std::vector<recob::Hit const*>
hits;
72 std::transform(begin, end, std::back_inserter(hits), [](
auto value) {
75 ClusterParamsAlg_t::SetHitsFromPointers(gser, hits);
94 template <
typename Iter,
typename Convert>
97 std::vector<recob::Hit const*>
hits;
98 std::transform(begin, end, std::back_inserter(hits), [converter](
auto value) {
101 ClusterParamsAlg_t::SetHits(hits);
112 template <
typename Cont>
133 template <
typename Cont,
typename Convert>
145 #endif // CLUSTERPARAMSARTWRAPPER_H Namespace for general, non-LArSoft-specific utilities.
Reconstruction base classes.
details::make_pointer_class< T, details::has_dereference_class< T >::value >::pointer_type make_pointer(T &v)
Returns a pointer to the value of argument, or the argument itself.
void ImportHits(util::GeometryUtilities const &gser, Cont cont)
Calls SetHits() with the hits in the sequence.
Algo ClusterParamsAlg_t
type of wrapped class
Cluster finding and building.
void ImportHits(util::GeometryUtilities const &gser, Iter begin, Iter end)
Calls SetHits() with the hits in the sequence.
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Wrapper for ClusterParamsAlgBase objects to accept diverse input.
void ImportHits(util::GeometryUtilities const &gser, Cont cont, Convert converter)
Calls SetHits() with the result of converted hits.
void ImportHits(Iter begin, Iter end, Convert converter)
Calls SetHits() with the result of converted hits.
ClusterParamsImportWrapper(Args...args)
Constructor: just forwards all the stuff to the wrapped class.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.