1 #ifndef PhysicsTools_UtilAlgos_CollectionAdder_h 2 #define PhysicsTools_UtilAlgos_CollectionAdder_h 22 produces<collection>();
27 std::unique_ptr<collection>
coll(
new collection);
28 typename collection::Filler
filler(*coll);
29 for(
size_t i = 0;
i < srcTokens_.size(); ++
i ) {
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_
def template(fileName, svg, replaceme="REPLACEME")
CollectionAdder(const edm::ParameterSet &cfg)