#include <TopQuarkAnalysis/TopJetCombination/plugins/TtSemiLepHypMVADisc.h>
Public Member Functions | |
TtSemiLepHypMVADisc (const edm::ParameterSet &) | |
~TtSemiLepHypMVADisc () | |
Private Member Functions | |
virtual void | buildHypo (edm::Event &, const edm::Handle< edm::View< reco::RecoCandidate > > &, const edm::Handle< std::vector< pat::MET > > &, const edm::Handle< std::vector< pat::Jet > > &, std::vector< int > &, const unsigned int iComb) |
build event hypothesis from the reco objects of a semi-leptonic event | |
virtual void | buildKey () |
build the event hypothesis key |
Definition at line 7 of file TtSemiLepHypMVADisc.h.
TtSemiLepHypMVADisc::TtSemiLepHypMVADisc | ( | const edm::ParameterSet & | cfg | ) | [explicit] |
TtSemiLepHypMVADisc::~TtSemiLepHypMVADisc | ( | ) |
void TtSemiLepHypMVADisc::buildHypo | ( | edm::Event & | evt, | |
const edm::Handle< edm::View< reco::RecoCandidate > > & | leps, | |||
const edm::Handle< std::vector< pat::MET > > & | mets, | |||
const edm::Handle< std::vector< pat::Jet > > & | jets, | |||
std::vector< int > & | match, | |||
const unsigned int | iComb | |||
) | [private, virtual] |
build event hypothesis from the reco objects of a semi-leptonic event
Implements TtSemiLepHypothesis.
Definition at line 11 of file TtSemiLepHypMVADisc.cc.
References TtSemiLepEvtPartons::HadB, TtSemiLepHypothesis::hadronicB_, TtSemiLepHypothesis::isValid(), pfTauBenchmarkGeneric_cfi::jets, TtSemiLepEvtPartons::LepB, TtSemiLepHypothesis::lepton_, TtSemiLepHypothesis::leptonicB_, TtSemiLepEvtPartons::LightQ, TtSemiLepHypothesis::lightQ_, TtSemiLepEvtPartons::LightQBar, TtSemiLepHypothesis::lightQBar_, TtSemiLepHypothesis::neutrino_, and TtSemiLepHypothesis::setCandidate().
00016 { 00017 // ----------------------------------------------------- 00018 // add jets 00019 // ----------------------------------------------------- 00020 for(unsigned idx=0; idx<match.size(); ++idx){ 00021 if( isValid(match[idx], jets) ){ 00022 switch(idx){ 00023 case TtSemiLepEvtPartons::LightQ: 00024 setCandidate(jets, match[idx], lightQ_); break; 00025 case TtSemiLepEvtPartons::LightQBar: 00026 setCandidate(jets, match[idx], lightQBar_); break; 00027 case TtSemiLepEvtPartons::HadB: 00028 setCandidate(jets, match[idx], hadronicB_); break; 00029 case TtSemiLepEvtPartons::LepB: 00030 setCandidate(jets, match[idx], leptonicB_); break; 00031 } 00032 } 00033 } 00034 00035 // ----------------------------------------------------- 00036 // add lepton 00037 // ----------------------------------------------------- 00038 if( !leps->empty() ) 00039 setCandidate(leps, 0, lepton_); 00040 match.push_back( 0 ); 00041 00042 // ----------------------------------------------------- 00043 // add neutrino 00044 // ----------------------------------------------------- 00045 if( !mets->empty() ) 00046 setCandidate(mets, 0, neutrino_); 00047 }
virtual void TtSemiLepHypMVADisc::buildKey | ( | ) | [inline, private, virtual] |
build the event hypothesis key
Implements TtSemiLepHypothesis.
Definition at line 17 of file TtSemiLepHypMVADisc.h.
References TtSemiLepHypothesis::key_, and TtEvent::kMVADisc.
00017 { key_= TtSemiLeptonicEvent::kMVADisc; };