1 #ifndef CommonTools_UtilAlgos_ProductFromFwdPtrProducer_h
2 #define CommonTools_UtilAlgos_ProductFromFwdPtrProducer_h
27 template <
class T,
class H = ProductFromFwdPtrFactory<T> >
33 produces< std::vector<T> > ();
43 std::unique_ptr< std::vector<T> > pOutput (
new std::vector<T> );
45 for (
typename std::vector<
edm::FwdPtr<T> >::const_iterator ibegin = hSrc->begin(),
47 i = ibegin;
i!= iend; ++
i ) {
50 pOutput->push_back( t );
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)
~ProductFromFwdPtrProducer()
virtual void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
ProductFromFwdPtrProducer(edm::ParameterSet const ¶ms)
const edm::EDGetTokenT< std::vector< edm::FwdPtr< T > > > srcToken_
Produces a list of objects "by value" that correspond to the FwdPtr's from an input collection...