6#include <spdlog/spdlog.h>
7#include <algorithms/algorithm.h>
18 algorithms::Algorithm<typename algorithms::Input<std::vector<const T>>,
19 typename algorithms::Output<T>>;
29 "Merge content of collections into one subset collection"} {
34 void process(
const typename CollectionCollector::Input& input,
35 const typename CollectionCollector::Output& output)
const final {
37 const auto [in_collections] = input;
38 auto [out_collection] = output;
40 out_collection->setSubsetCollection();
42 for (
const auto& collection : in_collections) {
43 for (
const auto& hit : *collection) {
44 out_collection->push_back(hit);
48 this->debug(
"Collected {} hits from {} input collections", out_collection->size(),
49 in_collections.size());
Definition CollectionCollector.h:22
CollectionCollector(std::string_view name)
Definition CollectionCollector.h:25
void init() final
Definition CollectionCollector.h:32
void process(const typename CollectionCollector::Input &input, const typename CollectionCollector::Output &output) const final
Definition CollectionCollector.h:34
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< typename algorithms::Input< std::vector< const T > >, typename algorithms::Output< T > > CollectionCollectorAlgorithm
Definition CollectionCollector.h:19