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) override |
return vector of partons in the order defined in the corresponding enum More... | |
~TtFullLepEvtPartons () 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 fully-leptonic ttbar events.
This class is mainly used for the jet-parton matching in TopTools.
Definition at line 19 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_, and harvestTrackValidationPlots::str.
|
inlineoverride |
default destructor
Definition at line 32 of file TtFullLepEvtPartons.h.
References TtGenEvtProducer_cfi::genEvt.
|
overridevirtual |
return vector of partons in the order defined in the corresponding enum
Implements TtEventPartons.
Definition at line 21 of file TtFullLepEvtPartons.cc.
References B, TopGenEvent::b(), BBar, TopGenEvent::bBar(), TtEventPartons::dummyCandidatePtr(), mps_fire::i, TtGenEvent::isFullLeptonic(), and TtEventPartons::prune().