Class to fill partons in a well defined order for fully-leptonic ttbar events. More...
#include "AnalysisDataFormats/TopObjects/interface/TtFullLepEvtPartons.h"
Public Types | |
enum | { B, BBar, Lepton, LeptonBar } |
Public Member Functions | |
TtFullLepEvtPartons (const std::vector< std::string > &partonsToIgnore=std::vector< std::string >()) | |
default constructor More... | |
std::vector< const reco::Candidate * > | vec (const TtGenEvent &genEvt) const override |
return vector of partons in the order defined in the corresponding enum More... | |
Public Member Functions inherited from TtEventPartons | |
void | expand (std::vector< int > &vec) const |
insert dummy index -3 for all partons that were chosen to be ignored More... | |
TtEventPartons ()=default | |
default constructor More... | |
virtual | ~TtEventPartons ()=default |
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) const |
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 fully-leptonic ttbar events.
This class is mainly used for the jet-parton matching in TopTools.
Definition at line 21 of file TtFullLepEvtPartons.h.
anonymous enum |
fully-leptonic parton enum used to define the order in the vector for lepton and jet combinatorics
Enumerator | |
---|---|
B | |
BBar | |
Lepton | |
LeptonBar |
Definition at line 25 of file TtFullLepEvtPartons.h.
TtFullLepEvtPartons::TtFullLepEvtPartons | ( | const std::vector< std::string > & | partonsToIgnore = std::vector<std::string>() | ) |
default constructor
Definition at line 6 of file TtFullLepEvtPartons.cc.
References B, BBar, Exception, mps_fire::i, TtEventPartons::ignorePartons_, TtFullHadJetPartonMatch_cfi::partonsToIgnore, and str.
|
overridevirtual |
return vector of partons in the order defined in the corresponding enum
Implements TtEventPartons.
Definition at line 22 of file TtFullLepEvtPartons.cc.
References B, BBar, TtEventPartons::dummyCandidatePtr(), TtGenEvtProducer_cfi::genEvt, mps_fire::i, and TtEventPartons::prune().