1 #ifndef _HI_PartonHadronDecayGenEvtSelector_h__
2 #define _HI_PartonHadronDecayGenEvtSelector_h__
13 bool filter(HepMC::GenEvent *);
15 return (par->status() == status &&
abs(par->pdg_id()) == pdg && par->momentum().perp() > ptMin && fabs(par->momentum().eta()) < etaMax);
18 return (par->status() == status &&
19 abs(par->pdg_id()) == pdg &&
20 par->momentum().eta() < etaMax && par->momentum().eta() > etaMin &&
21 par->momentum().rho() > pMin &&
22 par->momentum().perp() < ptMax && par->momentum().perp() >
ptMin);
std::vector< double > partonEtaMax_
std::vector< double > hadronPtMax_
bool filter(HepMC::GenEvent *)
std::vector< int > partonStatus_
std::vector< double > hadronEtaMax_
PartonHadronDecayGenEvtSelector(const edm::ParameterSet &pset)
std::vector< int > partonId_
std::vector< double > hadronEtaMin_
virtual ~PartonHadronDecayGenEvtSelector()
bool selectParticle(HepMC::GenParticle *par, int status, int pdg, double etaMax, double etaMin, double pMin, double ptMax, double ptMin)
Abs< T >::type abs(const T &t)
std::vector< int > hadronId_
std::vector< double > hadronPtMin_
std::vector< double > hadronPMin_
bool selectParticle(HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax)
std::vector< double > partonPtMin_
std::vector< int > hadronStatus_