CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/DataFormats/METReco/src/GlobalHaloData.cc

Go to the documentation of this file.
00001 #include "DataFormats/METReco/interface/GlobalHaloData.h"
00002 #include "DataFormats/Math/interface/Point3D.h"
00003 #include "DataFormats/Math/interface/LorentzVector.h"
00004 
00005 
00006 /*
00007   [class]:  GlobalHaloData
00008   [authors]: R. Remington, The University of Florida
00009   [description]: See GlobalHaloData.h
00010   [date]: October 15, 2009
00011 */
00012 
00013 using namespace reco;
00014 
00015 GlobalHaloData::GlobalHaloData()
00016 {
00017   METOverSumEt_ = 0.;
00018   dMEx_ = 0.;
00019   dMEy_ = 0.;
00020   dSumEt_ = 0.;
00021 }
00022 
00023 
00024 reco::CaloMET GlobalHaloData::GetCorrectedCaloMET(const reco::CaloMET& RawMET) const
00025 {
00026   double mex = RawMET.px() + dMEx_;
00027   double mey = RawMET.py() + dMEy_;
00028   double mez = RawMET.pz() ;
00029   double sumet  = RawMET.sumEt() + dSumEt_ ; 
00030   const math::XYZTLorentzVector p4( mex, mey, mez, std::sqrt(mex*mex + mey*mey + mez*mez));
00031   const math::XYZPoint vtx (0., 0., 0.);
00032   
00033   reco::CaloMET CorrectedMET( RawMET.getSpecific(), sumet, p4, vtx );
00034   return CorrectedMET;
00035 }
00036