9 for(
unsigned int i = 0;
i < 4;
i++)
12 for(std::vector<std::string>::const_iterator str = partonsToIgnore.begin(); str != partonsToIgnore.end(); ++str) {
18 <<
"The following string in partonsToIgnore is not supported: " << (*str) <<
"\n";
22 std::vector<const reco::Candidate*>
25 std::vector<const reco::Candidate*>
vec;
38 for(
unsigned i=0;
i<4;
i++)
std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt)
return vector of partons in the order defined in the corresponding enum
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)
erase partons from vector if they where chosen to be ignored
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