#include <MET.h>
Public Member Functions | |
MET * | clone () const |
returns a clone of the Candidate object | |
std::vector< double > | dmEx () const |
std::vector< double > | dmEy () const |
std::vector< double > | dSignificance () const |
std::vector< double > | dsumEt () const |
double | e_longitudinal () const |
TMatrixD | getSignificanceMatrix (void) const |
MET () | |
MET (double sumet_, std::vector< CorrMETData > corr_, const LorentzVector &p4_, const Point &vtx_) | |
MET (const LorentzVector &p4_, const Point &vtx_) | |
MET (double sumet_, const LorentzVector &p4_, const Point &vtx_) | |
std::vector< CorrMETData > | mEtCorr () const |
double | mEtSig () const |
void | setSignificanceMatrix (const TMatrixD &matrix) |
double | significance () const |
double | sumEt () const |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
std::vector< CorrMETData > | corr |
double | elongit |
double | signif_dxx |
double | signif_dxy |
double | signif_dyx |
double | signif_dyy |
double | sumet |
MET::MET | ( | ) |
Reimplemented in pat::MET.
Definition at line 15 of file MET.cc.
Referenced by clone().
{ sumet = 0.0; elongit = 0.0; signif_dxx=signif_dyy=signif_dyx=signif_dxy=0.; }
MET::MET | ( | const LorentzVector & | p4_, |
const Point & | vtx_ | ||
) |
Definition at line 28 of file MET.cc.
References elongit, signif_dxx, signif_dxy, signif_dyx, signif_dyy, and sumet.
: RecoCandidate( 0, p4_, vtx_ ) { sumet = 0.0; elongit = 0.0; signif_dxx=signif_dyy=signif_dyx=signif_dxy=0.; }
MET::MET | ( | double | sumet_, |
const LorentzVector & | p4_, | ||
const Point & | vtx_ | ||
) |
Definition at line 42 of file MET.cc.
References elongit, signif_dxx, signif_dxy, signif_dyx, signif_dyy, and sumet.
: RecoCandidate( 0, p4_, vtx_ ) { sumet = sumet_; elongit = 0.0; signif_dxx=signif_dyy=signif_dyx=signif_dxy=0.; }
MET::MET | ( | double | sumet_, |
std::vector< CorrMETData > | corr_, | ||
const LorentzVector & | p4_, | ||
const Point & | vtx_ | ||
) |
Definition at line 56 of file MET.cc.
References corr, elongit, i, signif_dxx, signif_dxy, signif_dyx, signif_dyy, and sumet.
: RecoCandidate( 0, p4_, vtx_ ) { sumet = sumet_; elongit = 0.0; signif_dxx=signif_dyy=signif_dyx=signif_dxy=0.; //----------------------------------- // Fill the vector containing the corrections (corr) with vector of // known corrections (corr_) passed in via the constructor. std::vector<CorrMETData>::const_iterator i; for( i = corr_.begin(); i != corr_.end(); i++ ) { corr.push_back( *i ); } }
MET * MET::clone | ( | void | ) | const [virtual] |
std::vector< double > MET::dmEx | ( | ) | const |
std::vector< double > MET::dmEy | ( | ) | const |
std::vector< double > MET::dSignificance | ( | ) | const |
std::vector< double > MET::dsumEt | ( | ) | const |
double reco::MET::e_longitudinal | ( | ) | const [inline] |
Definition at line 55 of file MET.h.
References elongit.
Referenced by TcMETAnalyzer::fillMonitorElement().
{return elongit; }
TMatrixD MET::getSignificanceMatrix | ( | void | ) | const |
Definition at line 149 of file MET.cc.
References query::result, signif_dxx, signif_dxy, signif_dyx, and signif_dyy.
Referenced by significance().
{ TMatrixD result(2,2); result(0,0)=signif_dxx; result(0,1)=signif_dxy; result(1,0)=signif_dyx; result(1,1)=signif_dyy; return result; }
std::vector<CorrMETData> reco::MET::mEtCorr | ( | ) | const [inline] |
Definition at line 63 of file MET.h.
References corr.
Referenced by pat::MET::checkUncor_(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::CaloMET >::operator()(), EcalTDigitizer< ESDigitizerTraits >::run(), and TauMETAlgo::run().
{ return corr; }
double reco::MET::mEtSig | ( | ) | const [inline] |
Definition at line 50 of file MET.h.
References reco::LeafCandidate::et(), mathSSE::sqrt(), and sumet.
Referenced by METTester::analyze(), myJetAna::analyze(), MuCorrMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), and CaloMETAnalyzer::fillMonitorElementTriggered().
bool MET::overlap | ( | const Candidate & | ) | const [private, virtual] |
check overlap with another candidate
Implements reco::RecoCandidate.
Reimplemented in reco::CaloMET, and reco::GenMET.
Definition at line 178 of file MET.cc.
{ return false; }
void MET::setSignificanceMatrix | ( | const TMatrixD & | matrix | ) |
Definition at line 185 of file MET.cc.
References signif_dxx, signif_dxy, signif_dyx, and signif_dyy.
Referenced by PFSpecificAlgo::addInfo(), and cms::METProducer::produce().
{ signif_dxx=inmatrix(0,0); signif_dxy=inmatrix(0,1); signif_dyx=inmatrix(1,0); signif_dyy=inmatrix(1,1); return; }
double MET::significance | ( | ) | const |
Definition at line 83 of file MET.cc.
References getSignificanceMatrix(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), signif_dxx, signif_dxy, signif_dyx, and signif_dyy.
Referenced by reco::CaloMET::metSignificance().
{ if(signif_dxx==0 && signif_dyy==0 && signif_dxy==0 && signif_dyx==0) return -1; TMatrixD metmat = getSignificanceMatrix(); TVectorD metvec(2); metvec(0)=this->px(); metvec(1)=this->py(); double signif = -1; if(std::fabs(metmat.Determinant())>0.000001){ metmat.Invert(); signif = metvec * (metmat * metvec); } return signif; }
double reco::MET::sumEt | ( | ) | const [inline] |
Definition at line 48 of file MET.h.
References sumet.
Referenced by METTester::analyze(), BeamHaloAnalyzer::analyze(), myJetAna::analyze(), GlobalHaloAlgo::Calculate(), PFMETBenchmark::calculateQuantities(), reco::PFMET::ChargedEMEt(), reco::GenMET::ChargedEMEt(), reco::PFMET::ChargedHadEt(), reco::GenMET::ChargedHadEt(), reco::PFMET::chargedHadronEt(), reco::PFMET::electronEt(), CaloMETAnalyzer::fillMonitorElement(), MuCorrMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), PFMETFilter::filter(), reco::GlobalHaloData::GetCorrectedCaloMET(), reco::PFMET::HFEMEt(), reco::PFMET::HFHadronEt(), reco::GenMET::InvisibleEt(), reco::PFMET::muonEt(), reco::PFMET::MuonEt(), reco::GenMET::MuonEt(), reco::PFMET::NeutralEMEt(), reco::GenMET::NeutralEMEt(), reco::GenMET::NeutralHadEt(), reco::PFMET::NeutralHadEt(), reco::PFMET::neutralHadronEt(), reco::PFMET::photonEt(), JetEnergyShift::produce(), METManager::propagateJEC(), EcalTDigitizer< ESDigitizerTraits >::run(), TauMETAlgo::run(), reco::PFMET::Type6Et(), reco::PFMET::Type7Et(), CaloMETAnalyzer::validateMET(), and PFMETAnalyzer::validateMET().
{ return sumet; }
std::vector<CorrMETData> reco::MET::corr [private] |
double reco::MET::elongit [private] |
Definition at line 70 of file MET.h.
Referenced by e_longitudinal(), and MET().
double reco::MET::signif_dxx [private] |
Definition at line 72 of file MET.h.
Referenced by getSignificanceMatrix(), MET(), setSignificanceMatrix(), and significance().
double reco::MET::signif_dxy [private] |
Definition at line 75 of file MET.h.
Referenced by getSignificanceMatrix(), MET(), setSignificanceMatrix(), and significance().
double reco::MET::signif_dyx [private] |
Definition at line 74 of file MET.h.
Referenced by getSignificanceMatrix(), MET(), setSignificanceMatrix(), and significance().
double reco::MET::signif_dyy [private] |
Definition at line 73 of file MET.h.
Referenced by getSignificanceMatrix(), MET(), setSignificanceMatrix(), and significance().