8 for (
unsigned int i = 0;
i < 4;
i++)
11 for (std::vector<std::string>::const_iterator
str = partonsToIgnore.begin();
str != partonsToIgnore.end(); ++
str) {
12 if ((*
str) ==
"LightQ")
14 else if ((*
str) ==
"LightQBar")
16 else if ((*
str) ==
"HadB")
18 else if ((*
str) ==
"LepB")
22 <<
"The following string in partonsToIgnore is not supported: " << (*str) <<
"\n";
27 std::vector<const reco::Candidate*>
vec;
39 for (
unsigned i = 0;
i < 4;
i++)
const reco::GenParticle * hadronicDecayB(bool excludeTauLeptons=false) const
get b of hadronic decay branch
bool isSemiLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as semi-laptonic
const reco::GenParticle * hadronicDecayQuarkBar() const
get light anti-quark of hadronic decay branch
TtSemiLepEvtPartons(const std::vector< std::string > &partonsToIgnore=std::vector< std::string >())
default constructor
void prune(std::vector< const reco::Candidate * > &vec) const
erase partons from vector if they where chosen to be ignored
std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt) const override
return vector of partons in the order defined in the corresponding enum
Class derived from the TopGenEvent for ttbar events.
std::vector< bool > ignorePartons_
flag partons that were chosen not to be used
const reco::GenParticle * hadronicDecayQuark(bool invertFlavor=false) const
get light quark of hadronic decay branch
const reco::GenParticle * leptonicDecayB(bool excludeTauLeptons=false) const
get b of leptonic decay branch
reco::Candidate * dummyCandidatePtr() const
return pointer to an empty reco::Candidate