8 for (
unsigned int i = 0;
i < 2;
i++)
11 for (std::vector<std::string>::const_iterator
str = partonsToIgnore.begin();
str != partonsToIgnore.end(); ++
str) {
14 else if ((*
str) ==
"BBar")
18 <<
"The following string in partonsToIgnore is not supported: " << (*str) <<
"\n";
23 std::vector<const reco::Candidate*>
vec;
33 for (
unsigned i = 0;
i < 2;
i++)
const reco::GenParticle * b() const
return b quark if available; 0 else
std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt) const override
return vector of partons in the order defined in the corresponding enum
const reco::GenParticle * bBar() const
return anti-b quark if available; 0 else
void prune(std::vector< const reco::Candidate * > &vec) const
erase partons from vector if they where chosen to be ignored
bool isFullLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as full leptonic
Class derived from the TopGenEvent for ttbar events.
std::vector< bool > ignorePartons_
flag partons that were chosen not to be used
TtFullLepEvtPartons(const std::vector< std::string > &partonsToIgnore=std::vector< std::string >())
default constructor
reco::Candidate * dummyCandidatePtr() const
return pointer to an empty reco::Candidate