25 int st = hadronStatus_.size();
26 int etamax = hadronEtaMax_.size();
27 int etamin = hadronEtaMin_.size();
28 int pmin = hadronPMin_.size();
29 int ptmax = hadronPtMax_.size();
30 int ptmin = hadronPtMin_.size();
32 if (
id != st ||
id != etamax ||
id != etamin ||
id != ptmax ||
id != ptmin ||
id != pmin) {
34 <<
"Hadron selection parameters: " <<
id << st << etamax << etamin << pmin << ptmax << ptmin << endl;
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_
T getParameter(std::string const &) const
std::vector< double > hadronPtMin_
bool filter(HepMC::GenEvent *) override
std::vector< double > hadronPMin_