test
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:29
SpecificCaloMETData getSpecific() const
Definition: CaloMET.h:79
double sumEt() const
Definition: MET.h:56
T sqrt(T t)
Definition: SSEVec.h:18
double p4[4]
Definition: TauolaWrapper.h:92
virtual double py() const final
y coordinate of momentum vector
virtual double pz() const final
z coordinate of momentum vector
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
virtual double px() const final
x coordinate of momentum vector