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 }
double px() const final
x coordinate of momentum vector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
SpecificCaloMETData getSpecific() const
Definition: CaloMET.h:77
double sumEt() const
Definition: MET.h:52
double pz() const final
z coordinate of momentum vector
T sqrt(T t)
Definition: SSEVec.h:19
double p4[4]
Definition: TauolaWrapper.h:92
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double py() const final
y coordinate of momentum vector
fixed size matrix