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>);
39 for (
typename std::vector<
edm::FwdPtr<T> >::const_iterator ibegin = hSrc->begin(), iend = hSrc->end(),
i = ibegin;
44 pOutput->push_back(t);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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...