#include <PartonHadronDecayGenEvtSelector.h>
|
bool | filter (HepMC::GenEvent *) |
|
| PartonHadronDecayGenEvtSelector (const edm::ParameterSet &pset) |
|
bool | selectParticle (HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax) |
|
bool | selectParticle (HepMC::GenParticle *par, int status, int pdg, double etaMax, double etaMin, double pMin, double ptMax, double ptMin) |
|
virtual | ~PartonHadronDecayGenEvtSelector () |
|
| BaseHiGenEvtSelector (const edm::ParameterSet &) |
|
bool | selectParticle (HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax) |
|
virtual | ~BaseHiGenEvtSelector () |
|
PartonHadronDecayGenEvtSelector::PartonHadronDecayGenEvtSelector |
( |
const edm::ParameterSet & |
pset | ) |
|
Definition at line 6 of file PartonHadronDecayGenEvtSelector.cc.
References decayEtaMax_, decayEtaMin_, decayId_, decayNtrig_, decayPMin_, decayPtMax_, decayPtMin_, decayStatus_, edm::hlt::Exception, edm::ParameterSet::getParameter(), hadronEtaMax_, hadronEtaMin_, hadronId_, hadronPMin_, hadronPtMax_, hadronPtMin_, hadronStatus_, edm::errors::LogicError, partonEtaMax_, partonId_, partonPtMin_, partonStatus_, and ptmin.
32 int st = hadronStatus_.size();
33 int etamax = hadronEtaMax_.size();
34 int etamin = hadronEtaMin_.size();
35 int pmin = hadronPMin_.size();
36 int ptmax = hadronPtMax_.size();
37 int ptmin = hadronPtMin_.size();
39 if(
id!=st ||
id!=etamax ||
id!=etamin ||
id!=ptmax ||
id!=ptmin ||
id!=pmin)
45 id = partonId_.size();
46 st = partonStatus_.size();
47 etamax = partonEtaMax_.size();
48 ptmin = partonPtMin_.size();
50 if(
id!=st ||
id!=etamax ||
id!=ptmin )
std::vector< double > partonEtaMax_
T getParameter(std::string const &) const
std::vector< double > hadronPtMax_
std::vector< int > partonStatus_
std::vector< double > hadronEtaMax_
std::vector< int > partonId_
std::vector< double > hadronEtaMin_
std::vector< int > hadronId_
BaseHiGenEvtSelector(const edm::ParameterSet &)
std::vector< double > hadronPtMin_
std::vector< double > hadronPMin_
std::vector< double > partonPtMin_
std::vector< int > hadronStatus_
virtual PartonHadronDecayGenEvtSelector::~PartonHadronDecayGenEvtSelector |
( |
| ) |
|
|
inlinevirtual |
bool PartonHadronDecayGenEvtSelector::filter |
( |
HepMC::GenEvent * |
evt | ) |
|
|
virtual |
Reimplemented from BaseHiGenEvtSelector.
Definition at line 59 of file PartonHadronDecayGenEvtSelector.cc.
References begin, decayEtaMax_, decayEtaMin_, decayId_, decayNtrig_, decayPMin_, decayPtMax_, decayPtMin_, decayStatus_, end, hadronEtaMax_, hadronEtaMin_, hadronId_, hadronPMin_, hadronPtMax_, hadronPtMin_, hadronStatus_, i, partonEtaMax_, partonId_, partonPtMin_, partonStatus_, and selectParticle().
63 HepMC::GenEvent::particle_const_iterator
begin = evt->particles_begin();
64 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
66 bool foundHadron =
false;
67 bool foundDecay =
false;
68 bool foundParton =
false;
70 HepMC::GenEvent::particle_const_iterator it =
begin;
71 while( !foundParton && it != end )
83 HepMC::GenEvent::particle_const_iterator it2 =
begin;
87 while( (!foundHadron || !foundDecay) && it2 !=
end )
110 return (foundHadron && foundDecay && foundParton);
std::vector< double > partonEtaMax_
std::vector< double > hadronPtMax_
std::vector< int > partonStatus_
std::vector< double > hadronEtaMax_
std::vector< int > partonId_
std::vector< double > hadronEtaMin_
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_
bool PartonHadronDecayGenEvtSelector::selectParticle |
( |
HepMC::GenParticle * |
par, |
|
|
int |
status, |
|
|
int |
pdg, |
|
|
double |
ptMin, |
|
|
double |
etaMax |
|
) |
| |
|
inline |
bool PartonHadronDecayGenEvtSelector::selectParticle |
( |
HepMC::GenParticle * |
par, |
|
|
int |
status, |
|
|
int |
pdg, |
|
|
double |
etaMax, |
|
|
double |
etaMin, |
|
|
double |
pMin, |
|
|
double |
ptMax, |
|
|
double |
ptMin |
|
) |
| |
|
inline |
double PartonHadronDecayGenEvtSelector::decayEtaMax_ |
|
private |
double PartonHadronDecayGenEvtSelector::decayEtaMin_ |
|
private |
int PartonHadronDecayGenEvtSelector::decayId_ |
|
private |
int PartonHadronDecayGenEvtSelector::decayNtrig_ |
|
private |
double PartonHadronDecayGenEvtSelector::decayPMin_ |
|
private |
double PartonHadronDecayGenEvtSelector::decayPtMax_ |
|
private |
double PartonHadronDecayGenEvtSelector::decayPtMin_ |
|
private |
int PartonHadronDecayGenEvtSelector::decayStatus_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::hadronEtaMax_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::hadronEtaMin_ |
|
private |
std::vector<int> PartonHadronDecayGenEvtSelector::hadronId_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::hadronPMin_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::hadronPtMax_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::hadronPtMin_ |
|
private |
std::vector<int> PartonHadronDecayGenEvtSelector::hadronStatus_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::partonEtaMax_ |
|
private |
std::vector<int> PartonHadronDecayGenEvtSelector::partonId_ |
|
private |
std::vector<double> PartonHadronDecayGenEvtSelector::partonPtMin_ |
|
private |
std::vector<int> PartonHadronDecayGenEvtSelector::partonStatus_ |
|
private |