CMS 3D CMS Logo

Classes | Functions

CorrectedMETProducer_namespace Namespace Reference

Classes

class  CorrectedMETFactoryT
class  CorrectedMETFactoryT< reco::CaloMET >
class  CorrectedMETFactoryT< reco::PFMET >

Functions

template<typename T >
reco::Candidate::LorentzVector correctedP4 (const T &rawMEt, const CorrMETData &correction)
template<typename T >
double correctedSumEt (const T &rawMEt, const CorrMETData &correction)

Function Documentation

template<typename T >
reco::Candidate::LorentzVector CorrectedMETProducer_namespace::correctedP4 ( const T rawMEt,
const CorrMETData correction 
)

Definition at line 38 of file CorrectedMETProducerT.h.

References CorrMETData::mex, CorrMETData::mey, and mathSSE::sqrt().

Referenced by CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::CaloMET >::operator()(), and CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::PFMET >::operator()().

  {
    double correctedMEtPx = rawMEt.px() + correction.mex;
    double correctedMEtPy = rawMEt.py() + correction.mey;
    double correctedMEtPt = sqrt(correctedMEtPx*correctedMEtPx + correctedMEtPy*correctedMEtPy);
    return reco::Candidate::LorentzVector(correctedMEtPx, correctedMEtPy, 0., correctedMEtPt);
  }
template<typename T >
double CorrectedMETProducer_namespace::correctedSumEt ( const T rawMEt,
const CorrMETData correction 
)