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 );
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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)
Produces a list of FwdPtr's to an input collection.
edm::EDGetTokenT< edm::View< T > > srcToken_