9 for(
unsigned int i = 0;
i < 6;
i++)
12 for(std::vector<std::string>::const_iterator str = partonsToIgnore.begin(); str != partonsToIgnore.end(); ++str) {
20 <<
"The following string in partonsToIgnore is not supported: " << (*str) <<
"\n";
24 std::vector<const reco::Candidate*>
27 std::vector<const reco::Candidate*>
vec;
42 for(
unsigned i=0;
i<6;
i++)
const reco::GenParticle * b() const
return b quark if available; 0 else
TtFullHadEvtPartons(const std::vector< std::string > &partonsToIgnore=std::vector< std::string >())
default constructor
void prune(std::vector< const reco::Candidate * > &vec)
erase partons from vector if they where chosen to be ignored
const reco::GenParticle * daughterQuarkOfWPlus(bool invertQuarkCharge=false, bool invertBosonCharge=false) const
return quark daughter quark of W boson
const reco::GenParticle * bBar() const
return anti-b quark if available; 0 else
bool isFullHadronic(bool excludeTauLeptons=false) const
check if the event can be classified as full hadronic
Class derived from the TopGenEvent for ttbar events.
std::vector< bool > ignorePartons_
flag partons that were chosen not to be used
const reco::GenParticle * daughterQuarkBarOfWMinus() const
return anti-quark daughter of anti-W boson
const reco::GenParticle * daughterQuarkBarOfWPlus() const
return anti-quark daughter of W boson
reco::Candidate * dummyCandidatePtr() const
return pointer to an empty reco::Candidate
std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt)
return vector of partons in the order defined in the corresponding enum
const reco::GenParticle * daughterQuarkOfWMinus() const
return quark daughter of anti-W boson