CMS 3D CMS Logo

GlobalHaloData.cc
Go to the documentation of this file.
4 
5 /*
6  [class]: GlobalHaloData
7  [authors]: R. Remington, The University of Florida
8  [description]: See GlobalHaloData.h
9  [date]: October 15, 2009
10 */
11 
12 using namespace reco;
13 
15  METOverSumEt_ = 0.;
16  dMEx_ = 0.;
17  dMEy_ = 0.;
18  dSumEt_ = 0.;
19 }
20 
22  double mex = RawMET.px() + dMEx_;
23  double mey = RawMET.py() + dMEy_;
24  double mez = RawMET.pz();
25  double sumet = RawMET.sumEt() + dSumEt_;
26  const math::XYZTLorentzVector p4(mex, mey, mez, std::sqrt(mex * mex + mey * mey + mez * mez));
27  const math::XYZPoint vtx(0., 0., 0.);
28 
29  reco::CaloMET CorrectedMET(RawMET.getSpecific(), sumet, p4, vtx);
30  return CorrectedMET;
31 }
reco::GlobalHaloData::GetCorrectedCaloMET
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
Definition: GlobalHaloData.cc:21
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
GlobalHaloData.h
reco::GlobalHaloData::dSumEt_
float dSumEt_
Definition: GlobalHaloData.h:84
reco::CaloMET
Definition: CaloMET.h:21
reco::GlobalHaloData::dMEy_
float dMEy_
Definition: GlobalHaloData.h:83
reco::GlobalHaloData::GlobalHaloData
GlobalHaloData()
Definition: GlobalHaloData.cc:14
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
reco::GlobalHaloData::METOverSumEt_
float METOverSumEt_
Definition: GlobalHaloData.h:81
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
LorentzVector.h
p4
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
Point3D.h
reco::GlobalHaloData::dMEx_
float dMEx_
Definition: GlobalHaloData.h:82
nanoDQM_cfi.RawMET
RawMET
Definition: nanoDQM_cfi.py:512