#include <METzCalculator.h>
Public Member Functions | |
double | Calculate (int type=0) |
member functions More... | |
bool | IsComplex () const |
check for complex root More... | |
METzCalculator () | |
constructor More... | |
void | Print () |
void | SetMET (const pat::MET &MET) |
Set MET. More... | |
void | SetMET (const TLorentzVector &MET) |
void | SetMuon (const pat::Particle &lepton) |
Set Muon. More... | |
void | SetMuon (const TLorentzVector &lepton) |
virtual | ~METzCalculator () |
destructor More... | |
Private Attributes | |
bool | isComplex_ |
pat::Particle | lepton_ |
pat::MET | MET_ |
class: METzCalculator.h
author: Francisco Yumiceva, Fermilab (yumic) eva@ fnal. gov
version
Definition at line 21 of file METzCalculator.h.
METzCalculator::METzCalculator | ( | ) |
|
virtual |
double METzCalculator::Calculate | ( | int | type = 0 | ) |
member functions
Calculate MEz options to choose roots from quadratic equation: type = 0 (defalut): if real roots, pick the one nearest to the lepton Pz except when the Pz so chosen is greater than 300 GeV in which case pick the most central root. type = 1: if real roots, choose the one closest to the lepton Pz if complex roots, use only the real part. type = 2: if real roots, choose the most central solution. if complex roots, use only the real part. type = 3: if real roots, pick the largest value of the cosine*
Definition at line 12 of file METzCalculator.cc.
References MaterialEffects_cfi::A, a, Abs(), TtFullHadDaughter::B, gen::C, reco::LeafCandidate::energy(), isComplex_, lepton_, MET_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
Referenced by BoostedTopProducer::produce(), and SetMuon().
|
inline |
|
inline |
Definition at line 55 of file METzCalculator.h.
References gather_cfg::cout, lepton_, MET_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
|
inline |
Set MET.
Definition at line 29 of file METzCalculator.h.
References HLTTauDQMOffline_cfi::MET, and MET_.
Referenced by BoostedTopProducer::produce().
|
inline |
Definition at line 30 of file METzCalculator.h.
References MET_, AlCaHLTBitMon_ParallelJobs::p, and reco::LeafCandidate::setP4().
|
inline |
Set Muon.
Definition at line 35 of file METzCalculator.h.
References lepton_.
Referenced by BoostedTopProducer::produce().
|
inline |
Definition at line 36 of file METzCalculator.h.
References Calculate(), lepton_, AlCaHLTBitMon_ParallelJobs::p, and reco::LeafCandidate::setP4().
|
private |
Definition at line 61 of file METzCalculator.h.
Referenced by Calculate(), IsComplex(), and METzCalculator().
|
private |
Definition at line 62 of file METzCalculator.h.
Referenced by Calculate(), Print(), and SetMuon().
|
private |
Definition at line 63 of file METzCalculator.h.
Referenced by Calculate(), Print(), and SetMET().