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::unique_ptr< std::vector< edm::FwdPtr<T> > > pOutputFwdPtr (
new std::vector<
edm::FwdPtr<T> > );
46 i = ibegin;
i!= iend; ++
i ) {
49 pOutputFwdPtr->push_back( ptr );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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_