1 #ifndef CommonTools_UtilAlgos_FwdPtrProducer_h
2 #define CommonTools_UtilAlgos_FwdPtrProducer_h
26 template <
class T,
class H = FwdPtrFromProductFactory<T> >
32 produces< std::vector< edm::FwdPtr<T> > > ();
42 std::auto_ptr< std::vector< edm::FwdPtr<T> > > pOutputFwdPtr (
new std::vector<
edm::FwdPtr<T> > );
46 i = ibegin;
i!= iend; ++
i ) {
49 pOutputFwdPtr->push_back( ptr );
53 iEvent.
put( pOutputFwdPtr );
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
FwdPtrProducer(edm::ParameterSet const ¶ms)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Produces a list of FwdPtr's to an input collection.