Class to fill partons in a well defined order for fully-hadronic ttbar events. More...
#include "AnalysisDataFormats/TopObjects/interface/TtFullHadEvtPartons.h"
Public Types | |
enum | { LightQ, LightQBar, B, LightP, LightPBar, BBar } |
Public Member Functions | |
TtFullHadEvtPartons (const std::vector< std::string > &partonsToIgnore=std::vector< std::string >()) | |
default constructor More... | |
std::vector< const reco::Candidate * > | vec (const TtGenEvent &genEvt) |
return vector of partons in the order defined in the corresponding enum More... | |
~TtFullHadEvtPartons () | |
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-hadronic ttbar events.
This class is mainly used for the jet-parton matching in TopTools.
Definition at line 19 of file TtFullHadEvtPartons.h.
anonymous enum |
fully-hadronic parton enum used to define the order in the vector for lepton and jet combinatorics
Enumerator | |
---|---|
LightQ | |
LightQBar | |
B | |
LightP | |
LightPBar | |
BBar |
Definition at line 25 of file TtFullHadEvtPartons.h.
TtFullHadEvtPartons::TtFullHadEvtPartons | ( | const std::vector< std::string > & | partonsToIgnore = std::vector<std::string>() | ) |
default constructor
Definition at line 6 of file TtFullHadEvtPartons.cc.
References BBar, Exception, i, TtEventPartons::ignorePartons_, LightP, LightPBar, LightQ, and LightQBar.
|
inline |
|
virtual |
return vector of partons in the order defined in the corresponding enum
Implements TtEventPartons.
Definition at line 25 of file TtFullHadEvtPartons.cc.
References B, TopGenEvent::b(), BBar, TopGenEvent::bBar(), TopGenEvent::daughterQuarkBarOfWMinus(), TopGenEvent::daughterQuarkBarOfWPlus(), TopGenEvent::daughterQuarkOfWMinus(), TopGenEvent::daughterQuarkOfWPlus(), TtEventPartons::dummyCandidatePtr(), i, TtGenEvent::isFullHadronic(), LightP, LightPBar, LightQ, LightQBar, and TtEventPartons::prune().