35 HepMC::GenEvent::particle_const_iterator
begin = evt->particles_begin();
36 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
38 bool foundParticle =
false;
39 bool foundParton =
false;
41 HepMC::GenEvent::particle_const_iterator
it =
begin;
42 while ((!foundParton || !foundParticle) &&
it !=
end) {
54 return (foundParton && foundParticle);
std::vector< int > partonId_
std::vector< double > partonPt_
std::vector< int > particleStatus_
bool selectParticle(HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax)
std::vector< int > particleId_
bool filter(HepMC::GenEvent *) override
EcalGenEvtSelector(const edm::ParameterSet &pset)
std::vector< double > particlePt_
std::vector< int > partonStatus_