#include <TtFullHadHypKinFit.h>
Public Member Functions | |
TtFullHadHypKinFit (const edm::ParameterSet &) | |
~TtFullHadHypKinFit () | |
Private Member Functions | |
virtual void | buildHypo (edm::Event &, const edm::Handle< std::vector< pat::Jet > > &, std::vector< int > &, const unsigned int iComb) |
build event hypothesis from the reco objects of a full-hadronic event | |
virtual void | buildKey () |
build the event hypothesis key | |
Private Attributes | |
edm::InputTag | bBarTag_ |
edm::InputTag | bTag_ |
edm::InputTag | lightPBarTag_ |
edm::InputTag | lightPTag_ |
edm::InputTag | lightQBarTag_ |
edm::InputTag | lightQTag_ |
edm::InputTag | status_ |
Definition at line 6 of file TtFullHadHypKinFit.h.
TtFullHadHypKinFit::TtFullHadHypKinFit | ( | const edm::ParameterSet & | cfg | ) | [explicit] |
Definition at line 5 of file TtFullHadHypKinFit.cc.
: TtFullHadHypothesis( cfg ), status_ (cfg.getParameter<edm::InputTag>("status" )), lightQTag_ (cfg.getParameter<edm::InputTag>("lightQTag" )), lightQBarTag_(cfg.getParameter<edm::InputTag>("lightQBarTag")), bTag_ (cfg.getParameter<edm::InputTag>("bTag" )), bBarTag_ (cfg.getParameter<edm::InputTag>("bBarTag" )), lightPTag_ (cfg.getParameter<edm::InputTag>("lightPTag" )), lightPBarTag_(cfg.getParameter<edm::InputTag>("lightPBarTag")) { }
TtFullHadHypKinFit::~TtFullHadHypKinFit | ( | ) |
Definition at line 17 of file TtFullHadHypKinFit.cc.
{ }
void TtFullHadHypKinFit::buildHypo | ( | edm::Event & | evt, |
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 full-hadronic event
Implements TtFullHadHypothesis.
Definition at line 20 of file TtFullHadHypKinFit.cc.
References b, TtFullHadHypothesis::b_, TtFullHadHypothesis::bBar_, bBarTag_, bTag_, edm::Event::getByLabel(), TtFullHadHypothesis::lightP_, TtFullHadHypothesis::lightPBar_, lightPBarTag_, lightPTag_, TtFullHadHypothesis::lightQ_, TtFullHadHypothesis::lightQBar_, lightQBarTag_, lightQTag_, TtFullHadHypothesis::setCandidate(), ntuplemaker::status, and status_.
{ edm::Handle<std::vector<int> > status; evt.getByLabel(status_, status); if( (*status)[iComb] != 0 ){ // create empty hypothesis if kinematic fit did not converge return; } edm::Handle<std::vector<pat::Particle> > lightQ; edm::Handle<std::vector<pat::Particle> > lightQBar; edm::Handle<std::vector<pat::Particle> > b; edm::Handle<std::vector<pat::Particle> > bBar; edm::Handle<std::vector<pat::Particle> > lightP; edm::Handle<std::vector<pat::Particle> > lightPBar; evt.getByLabel(lightQTag_ , lightQ ); evt.getByLabel(lightQBarTag_, lightQBar); evt.getByLabel(bTag_ , b ); evt.getByLabel(bBarTag_ , bBar ); evt.getByLabel(lightPTag_ , lightP ); evt.getByLabel(lightPBarTag_, lightPBar); // ----------------------------------------------------- // add jets // ----------------------------------------------------- if( !( lightQ->empty() || lightQBar->empty() || b->empty() || bBar->empty() || lightP->empty() || lightPBar->empty() ) ) { setCandidate(lightQ , iComb, lightQ_ ); setCandidate(lightQBar, iComb, lightQBar_); setCandidate(b , iComb, b_ ); setCandidate(bBar , iComb, bBar_ ); setCandidate(lightP , iComb, lightP_ ); setCandidate(lightPBar, iComb, lightPBar_); } }
virtual void TtFullHadHypKinFit::buildKey | ( | ) | [inline, private, virtual] |
build the event hypothesis key
Implements TtFullHadHypothesis.
Definition at line 16 of file TtFullHadHypKinFit.h.
References TtFullHadHypothesis::key_, and TtEvent::kKinFit.
{ key_= TtFullHadronicEvent::kKinFit; };
edm::InputTag TtFullHadHypKinFit::bBarTag_ [private] |
Definition at line 26 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
edm::InputTag TtFullHadHypKinFit::bTag_ [private] |
Definition at line 25 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
Definition at line 28 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
edm::InputTag TtFullHadHypKinFit::lightPTag_ [private] |
Definition at line 27 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
Definition at line 24 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
edm::InputTag TtFullHadHypKinFit::lightQTag_ [private] |
Definition at line 23 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().
edm::InputTag TtFullHadHypKinFit::status_ [private] |
Definition at line 22 of file TtFullHadHypKinFit.h.
Referenced by buildHypo().