45 : v_RecoCompositeCandidateToken_( consumes< std::vector<
reco::CompositeCandidate> >( iConfig.getParameter<edm::
InputTag>(
"ZCandidateCollection" ) ) )
47 produces<std::vector<reco::CompositeCandidate> >(
"theTagLeg" );
48 produces<std::vector<reco::CompositeCandidate> >(
"theProbeLeg");
64 std::auto_ptr<std::vector<reco::CompositeCandidate> > theTagLeg(
new std::vector<reco::CompositeCandidate>) ;
65 std::auto_ptr<std::vector<reco::CompositeCandidate> > theProbeLeg(
new std::vector<reco::CompositeCandidate>) ;
72 for (std::vector<reco::CompositeCandidate>::const_iterator Zit = theZHandle->begin() ;
73 Zit != theZHandle->end() ;
84 theTagLeg->push_back(candT) ;
88 theProbeLeg->push_back(candP) ;
93 iEvent.
put(theTagLeg ,
"theTagLeg" ) ;
94 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_