23 virtual void endJob()
override;
34 produces<edm::PtrVector<reco::Candidate> >();
51 std::set<reco::CandidatePtr> vetoedPtrs;
52 for(
size_t i = 0;
i< vetos->size(); ++
i) {
53 for(
size_t j=0,
n=(*vetos)[
i].numberOfSourceCandidatePtrs();
j<
n;
j++ ) {
54 vetoedPtrs.insert((*vetos)[
i].sourceCandidatePtr(
j));
57 for(
size_t i = 0;
i< cands->size(); ++
i) {
59 if(vetoedPtrs.find(c)==vetoedPtrs.end())
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::View< reco::Candidate > > vetoSrcToken_
CandPtrProjector(const edm::ParameterSet &iConfig)
edm::EDGetTokenT< edm::View< reco::Candidate > > candSrcToken_
virtual void endJob() override
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override