1 #ifndef __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__ 2 #define __PhysicsTools_PatAlgos_ModifiedObjectProducer_h__ 28 modifier_ = std::make_unique<Modifier>(mod_config, consumesCollector());
30 produces<Collection>();
40 auto output = std::make_unique<Collection>();
42 evt.getByToken(
src_,input);
43 output->reserve(input->size());
47 for(
auto itr = input->begin(); itr != input->end(); ++itr ) {
T getParameter(std::string const &) const
std::unique_ptr< Modifier > modifier_
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &evs) final
ModifiedObjectProducer(const edm::ParameterSet &conf)
std::vector< T > Collection
~ModifiedObjectProducer() override
static std::string const input
edm::EDGetTokenT< edm::View< T > > src_
void produce(edm::Event &evt, const edm::EventSetup &evs) final
pat::ObjectModifier< T > Modifier