Class to fill partons in a well defined order for semi-leptonic ttbar events. More...
#include "AnalysisDataFormats/TopObjects/interface/TtSemiLepEvtPartons.h"
Public Types | |
enum | { LightQ, LightQBar, HadB, LepB, Lepton } |
Public Member Functions | |
TtSemiLepEvtPartons (const std::vector< std::string > &partonsToIgnore=std::vector< std::string >()) | |
default constructor More... | |
std::vector< const reco::Candidate * > | vec (const TtGenEvent &genEvt) override |
return vector of partons in the order defined in the corresponding enum More... | |
~TtSemiLepEvtPartons () override | |
default destructor More... | |
Public Member Functions inherited from TtEventPartons | |
void | expand (std::vector< int > &vec) |
insert dummy index -3 for all partons that were chosen to be ignored More... | |
TtEventPartons () | |
default constructor More... | |
virtual | ~TtEventPartons () |
default destructor More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TtEventPartons | |
reco::Candidate * | dummyCandidatePtr () const |
return pointer to an empty reco::Candidate More... | |
void | prune (std::vector< const reco::Candidate * > &vec) |
erase partons from vector if they where chosen to be ignored More... | |
Protected Attributes inherited from TtEventPartons | |
std::vector< bool > | ignorePartons_ |
flag partons that were chosen not to be used More... | |
Class to fill partons in a well defined order for semi-leptonic ttbar events.
This class is mainly used for the jet-parton matching in TopTools.
Definition at line 21 of file TtSemiLepEvtPartons.h.
anonymous enum |
TtSemiLepEvtPartons::TtSemiLepEvtPartons | ( | const std::vector< std::string > & | partonsToIgnore = std::vector<std::string>() | ) |
default constructor
Definition at line 6 of file TtSemiLepEvtPartons.cc.
References Exception, HadB, mps_fire::i, TtEventPartons::ignorePartons_, LepB, LightQ, LightQBar, TtFullHadJetPartonMatch_cfi::partonsToIgnore, and str.
|
inlineoverride |
|
overridevirtual |
return vector of partons in the order defined in the corresponding enum
Implements TtEventPartons.
Definition at line 26 of file TtSemiLepEvtPartons.cc.
References TtEventPartons::dummyCandidatePtr(), TtGenEvtProducer_cfi::genEvt, HadB, mps_fire::i, LepB, LightQ, LightQBar, and TtEventPartons::prune().