1 #ifndef __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__
2 #define __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__
32 produces<Collection>();
42 auto output = std::make_unique<Collection>();
44 evt.getByToken(
src_,input);
45 output->reserve(input->size());
49 for(
auto itr = input->begin(); itr != input->end(); ++itr ) {
T getParameter(std::string const &) const
std::unique_ptr< Modifier > modifier_
ModifiedObjectProducer(const edm::ParameterSet &conf)
std::vector< T > Collection
virtual void produce(edm::Event &evt, const edm::EventSetup &evs) overridefinal
static std::string const input
edm::EDGetTokenT< edm::View< T > > src_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &evs) overridefinal
~ModifiedObjectProducer()
pat::ObjectModifier< T > Modifier