CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CorrectedMETProducer_namespace Namespace Reference

Classes

class  CorrectedMETFactoryT
 
class  CorrectedMETFactoryT< pat::MET >
 
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 37 of file CorrectedMETProducerT.h.

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

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

38  {
39  double correctedMEtPx = rawMEt.px() + correction.mex;
40  double correctedMEtPy = rawMEt.py() + correction.mey;
41  double correctedMEtPt = sqrt(correctedMEtPx*correctedMEtPx + correctedMEtPy*correctedMEtPy);
42  return reco::Candidate::LorentzVector(correctedMEtPx, correctedMEtPy, 0., correctedMEtPt);
43  }
T sqrt(T t)
Definition: SSEVec.h:48
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
double mey
Definition: CorrMETData.h:18
double mex
Definition: CorrMETData.h:17
template<typename T >
double CorrectedMETProducer_namespace::correctedSumEt ( const T rawMEt,
const CorrMETData correction 
)