1 #ifndef CollectionCombiner_H 2 #define CollectionCombiner_H 28 template <
typename Collection>
43 template <
typename Collection>
46 produces<Collection>();
47 for (
unsigned int i=0;
i<
labels.size();++
i)
50 template <
typename Collection>
53 template <
typename Collection>
56 unsigned int i=0,i_max=
labels.size();
58 auto merged = std::make_unique<Collection>();
61 merged->insert(merged->end(), handle->begin(), handle->end());
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< edm::EDGetTokenT< Collection > > collectionTokens
~CollectionCombiner() override
CollectionCombiner(const edm::ParameterSet &)
std::vector< edm::InputTag > labels
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override