1 #ifndef __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__
2 #define __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__
32 produces<Collection>();
44 evt.getByToken(
src_,input);
45 output->reserve(input->size());
49 for(
auto itr = input->begin(); itr != input->end(); ++itr ) {
50 output->push_back(*itr);
51 T&
obj = output->back();
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