1 #ifndef CandAlgos_CloneProducer_h
2 #define CandAlgos_CloneProducer_h
39 src_( par.
template getParameter<edm::InputTag>(
"src" ) ) {
40 produces<reco::CandidateCollection>();
52 for(
size_t i = 0;
i < masterCollection->size(); ++
i ) {
54 coll->push_back( masterClone->clone() );
virtual void produce(edm::Event &, const edm::EventSetup &)
process an event
CloneProducer(const edm::ParameterSet &)
constructor from parameter set
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~CloneProducer()
destructor
edm::InputTag src_
labels of the collection to be converted
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const