18 int st = partonStatus_.size();
19 int pt = partonPt_.size();
21 if (
partonId_.size() != partonStatus_.size() ||
partonId_.size() != partonPt_.size()) {
25 id = particleId_.size();
26 st = particleStatus_.size();
27 pt = particlePt_.size();
29 if (particleId_.size() != particleStatus_.size() || particleId_.size() != particlePt_.size()) {
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_
T getParameter(std::string const &) const
std::vector< int > partonStatus_