#include <MEzCalculator.h>
Public Member Functions | |
double | Calculate (int type=1) |
member functions More... | |
bool | IsComplex () const |
check for complex root More... | |
MEzCalculator () | |
constructor More... | |
void | Print () |
verbose More... | |
void | SetLepton (const pat::Particle &lepton, bool isMuon=true) |
Set lepton. More... | |
void | SetLepton (const TLorentzVector &lepton) |
void | SetMET (const pat::MET &MET) |
Set MET. More... | |
void | SetMET (const TLorentzVector &MET) |
~MEzCalculator () | |
destructor More... | |
Private Attributes | |
bool | isComplex_ |
bool | isMuon_ |
pat::Particle | lepton_ |
pat::MET | MET_ |
class: MEzCalculator.h
author: Francisco Yumiceva, Fermilab (yumic) eva@ fnal. gov
version
Definition at line 18 of file MEzCalculator.h.
MEzCalculator::MEzCalculator | ( | ) |
MEzCalculator::~MEzCalculator | ( | ) |
double MEzCalculator::Calculate | ( | int | type = 1 | ) |
member functions
Calculate MEz options to choose roots from quadratic equation: type = 0 : 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 (default): 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.
Definition at line 18 of file MEzCalculator.cc.
References funct::A, a, Abs(), funct::C, reco::LeafCandidate::energy(), Exception, isComplex_, isMuon_, lepton_, MET_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
Referenced by TtSemiLRSignalSelObservables::operator()(), and TtSemiLepJetCombWMassDeltaTopMass::produce().
|
inline |
|
inline |
verbose
Definition at line 54 of file MEzCalculator.h.
References gather_cfg::cout, lepton_, MET_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
|
inline |
Set lepton.
Definition at line 32 of file MEzCalculator.h.
References reco::isMuon(), isMuon_, and lepton_.
Referenced by TtSemiLRSignalSelObservables::operator()(), and TtSemiLepJetCombWMassDeltaTopMass::produce().
|
inline |
Definition at line 36 of file MEzCalculator.h.
References lepton_, AlCaHLTBitMon_ParallelJobs::p, and reco::LeafCandidate::setP4().
|
inline |
Set MET.
Definition at line 26 of file MEzCalculator.h.
References HLT_25ns10e33_v2_cff::MET, and MET_.
Referenced by TtSemiLRSignalSelObservables::operator()(), and TtSemiLepJetCombWMassDeltaTopMass::produce().
|
inline |
Definition at line 27 of file MEzCalculator.h.
References MET_, AlCaHLTBitMon_ParallelJobs::p, and reco::LeafCandidate::setP4().
|
private |
Definition at line 61 of file MEzCalculator.h.
Referenced by Calculate(), IsComplex(), and MEzCalculator().
|
private |
Definition at line 64 of file MEzCalculator.h.
Referenced by Calculate(), MEzCalculator(), and SetLepton().
|
private |
Definition at line 62 of file MEzCalculator.h.
Referenced by Calculate(), Print(), and SetLepton().
|
private |
Definition at line 63 of file MEzCalculator.h.
Referenced by Calculate(), Print(), and SetMET().