CMS 3D CMS Logo

Classes | Functions
CorrectedMETProducer_namespace Namespace Reference

Classes

class  CorrectedMETFactoryT
 

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

◆ correctedP4()

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

Definition at line 40 of file CorrectedMETProducerT.h.

40  {
41  double correctedMEtPx = rawMEt.px() + correction.mex;
42  double correctedMEtPy = rawMEt.py() + correction.mey;
43  double correctedMEtPt = sqrt(correctedMEtPx * correctedMEtPx + correctedMEtPy * correctedMEtPy);
44  return reco::Candidate::LorentzVector(correctedMEtPx, correctedMEtPy, 0., correctedMEtPt);
45  }

References pfMETCorrectionType0_cfi::correction, and mathSSE::sqrt().

Referenced by JetIDSelectionFunctor::craft08Cuts(), and JetIDSelectionFunctor::operator()().

◆ correctedSumEt()

template<typename T >
double CorrectedMETProducer_namespace::correctedSumEt ( const T rawMEt,
const CorrMETData correction 
)

Definition at line 48 of file CorrectedMETProducerT.h.

48  {
49  return rawMEt.sumEt() + correction.sumet;
50  }

References pfMETCorrectionType0_cfi::correction.

mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
pfMETCorrectionType0_cfi.correction
correction
Definition: pfMETCorrectionType0_cfi.py:39
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36