28 int st = hadronStatus_.size();
29 int etamax = hadronEtaMax_.size();
30 int etamin = hadronEtaMin_.size();
31 int pmin = hadronPMin_.size();
32 int ptmax = hadronPtMax_.size();
33 int ptmin = hadronPtMin_.size();
35 if(
id!=st ||
id!=etamax ||
id!=etamin ||
id!=ptmax ||
id!=ptmin ||
id!=pmin)
49 HepMC::GenEvent::particle_const_iterator
begin = evt->particles_begin();
50 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
52 bool foundHadron =
false;
53 bool foundDecay =
false;
56 HepMC::GenEvent::particle_const_iterator it =
begin;
57 while( (!foundHadron || !foundDecay) && it != end )
78 return (foundHadron && foundDecay);
T getParameter(std::string const &) const
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_