1 #ifndef PhysicsTools_UtilAlgos_CollectionAdder_h
2 #define PhysicsTools_UtilAlgos_CollectionAdder_h
23 produces<collection>();
27 std::vector<edm::EDGetTokenT<collection>>
srcTokens_;
29 std::unique_ptr<collection> coll(
new collection);
30 typename collection::Filler filler(*coll);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::Event &evt, const edm::EventSetup &) override
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
std::vector< edm::EDGetTokenT< collection > > srcTokens_
CollectionAdder(const edm::ParameterSet &cfg)