46 : srcTheZ_(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" ) ;
#define DEFINE_FWK_MODULE(type)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
CollectionFromZLegProducer(const edm::ParameterSet &iConfig)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~CollectionFromZLegProducer()
std::string OutputCollection_
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)