Common base class for TtFullLepEvtPartons, TtFullHadEvtPartons and TtSemiLepEvtPartons. More...
#include "AnalysisDataFormats/TopObjects/interface/TtEventPartons.h"
Public Member Functions | |
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 std::vector< const reco::Candidate * > | vec (const TtGenEvent &genEvt) const =0 |
virtual | ~TtEventPartons ()=default |
default destructor More... | |
Protected Member Functions | |
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 | |
std::vector< bool > | ignorePartons_ |
flag partons that were chosen not to be used More... | |
Common base class for TtFullLepEvtPartons, TtFullHadEvtPartons and TtSemiLepEvtPartons.
Definition at line 19 of file TtEventPartons.h.
|
default |
default constructor
|
virtualdefault |
default destructor
|
inlineprotected |
return pointer to an empty reco::Candidate
Definition at line 35 of file TtEventPartons.h.
References GenParticle::GenParticle.
Referenced by TtFullHadEvtPartons::vec(), TtSemiLepEvtPartons::vec(), and TtFullLepEvtPartons::vec().
void TtEventPartons::expand | ( | std::vector< int > & | vec | ) | const |
insert dummy index -3 for all partons that were chosen to be ignored
Definition at line 3 of file TtEventPartons.cc.
References mps_fire::i, and ignorePartons_.
|
protected |
erase partons from vector if they where chosen to be ignored
Definition at line 13 of file TtEventPartons.cc.
References mps_fire::i, and ignorePartons_.
Referenced by dirstructure.Directory::prune(), TtFullLepEvtPartons::vec(), TtSemiLepEvtPartons::vec(), and TtFullHadEvtPartons::vec().
|
pure virtual |
return vector of partons in the order defined in the corresponding enum (method implemented in the derived classes)
Implemented in TtFullHadEvtPartons, TtFullLepEvtPartons, and TtSemiLepEvtPartons.
|
protected |
flag partons that were chosen not to be used
Definition at line 43 of file TtEventPartons.h.
Referenced by expand(), prune(), TtFullHadEvtPartons::TtFullHadEvtPartons(), TtFullLepEvtPartons::TtFullLepEvtPartons(), and TtSemiLepEvtPartons::TtSemiLepEvtPartons().