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) 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 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 |
semi-leptonic parton enum used to define the order in the vector for lepton and jet combinatorics
Enumerator | |
---|---|
LightQ | |
LightQBar | |
HadB | |
LepB | |
Lepton |
Definition at line 25 of file TtSemiLepEvtPartons.h.
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, and str.
|
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(), HadB, TtGenEvent::hadronicDecayB(), TtGenEvent::hadronicDecayQuark(), TtGenEvent::hadronicDecayQuarkBar(), mps_fire::i, TtGenEvent::isSemiLeptonic(), LepB, TtGenEvent::leptonicDecayB(), LightQ, LightQBar, and TtEventPartons::prune().