42 HepMC::GenEvent::particle_const_iterator begin = evt->particles_begin();
43 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
45 bool foundHadron =
false;
46 bool foundDecay =
false;
49 HepMC::GenEvent::particle_const_iterator
it = begin;
50 while ((!foundHadron || !foundDecay) &&
it !=
end) {
71 return (foundHadron && foundDecay);
std::vector< int > hadronId_
bool selectParticle(HepMC::GenParticle *par, int status, int pdg, double etaMax, double etaMin, double pMin, double ptMax, double ptMin)
std::vector< double > hadronEtaMax_
std::vector< int > hadronStatus_
HadronDecayGenEvtSelector(const edm::ParameterSet &pset)
std::vector< double > hadronEtaMin_
std::vector< double > hadronPtMax_
std::vector< double > hadronPtMin_
bool filter(HepMC::GenEvent *) override
std::vector< double > hadronPMin_