CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalHaloData.cc
Go to the documentation of this file.
4 
5 
6 /*
7  [class]: GlobalHaloData
8  [authors]: R. Remington, The University of Florida
9  [description]: See GlobalHaloData.h
10  [date]: October 15, 2009
11 */
12 
13 using namespace reco;
14 
16 {
17  METOverSumEt_ = 0.;
18  dMEx_ = 0.;
19  dMEy_ = 0.;
20  dSumEt_ = 0.;
21 }
22 
23 
25 {
26  double mex = RawMET.px() + dMEx_;
27  double mey = RawMET.py() + dMEy_;
28  double mez = RawMET.pz() ;
29  double sumet = RawMET.sumEt() + dSumEt_ ;
30  const math::XYZTLorentzVector p4( mex, mey, mez, std::sqrt(mex*mex + mey*mey + mez*mez));
31  const math::XYZPoint vtx (0., 0., 0.);
32 
33  reco::CaloMET CorrectedMET( RawMET.getSpecific(), sumet, p4, vtx );
34  return CorrectedMET;
35 }
36 
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:30
SpecificCaloMETData getSpecific() const
Definition: CaloMET.h:79
double sumEt() const
Definition: MET.h:48
T sqrt(T t)
Definition: SSEVec.h:46
double p4[4]
Definition: TauolaWrapper.h:92
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
virtual double px() const
x coordinate of momentum vector
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
virtual double pz() const
z coordinate of momentum vector
virtual double py() const
y coordinate of momentum vector