1 #ifndef CommonTools_UtilAlgos_ProductFromFwdPtrProducer_h 2 #define CommonTools_UtilAlgos_ProductFromFwdPtrProducer_h 23 template <
class T,
class H = ProductFromFwdPtrFactory<T> >
28 produces<std::vector<T> >();
37 std::unique_ptr<std::vector<T> > pOutput(
new std::vector<T>);
44 pOutput->push_back(
t);
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
ProductFromFwdPtrProducer(edm::ParameterSet const ¶ms)
const edm::EDGetTokenT< std::vector< edm::FwdPtr< T > > > srcToken_
~ProductFromFwdPtrProducer() override
Produces a list of objects "by value" that correspond to the FwdPtr's from an input collection...