46 : v_RecoCompositeCandidateToken_( consumes< std::vector<
reco::CompositeCandidate> >( iConfig.getParameter<edm::InputTag>(
"ZCandidateCollection" ) ) )
48 produces<std::vector<reco::CompositeCandidate> >(
"theTagLeg" );
49 produces<std::vector<reco::CompositeCandidate> >(
"theProbeLeg");
65 std::auto_ptr<std::vector<reco::CompositeCandidate> > theTagLeg(
new std::vector<reco::CompositeCandidate>) ;
66 std::auto_ptr<std::vector<reco::CompositeCandidate> > theProbeLeg(
new std::vector<reco::CompositeCandidate>) ;
73 for (std::vector<reco::CompositeCandidate>::const_iterator Zit = theZHandle->begin() ;
74 Zit != theZHandle->end() ;
85 theTagLeg->push_back(candT) ;
89 theProbeLeg->push_back(candP) ;
94 iEvent.
put(theTagLeg ,
"theTagLeg" ) ;
95 iEvent.
put(theProbeLeg,
"theProbeLeg" ) ;
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
CollectionFromZLegProducer(const edm::ParameterSet &iConfig)
virtual ~CollectionFromZLegProducer()
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
std::string OutputCollection_
edm::EDGetTokenT< std::vector< reco::CompositeCandidate > > v_RecoCompositeCandidateToken_