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  segmentisEBcalomatched = false;
21  segmentisEEcalomatched = false;
22  segmentisHBcalomatched = false;
23  segmentisHEcalomatched = false;
24  halopatternfoundEB = false;
25  halopatternfoundEE = false;
26  halopatternfoundHB = false;
27  halopatternfoundHE = false;
28 }
29 
31  double mex = RawMET.px() + dMEx_;
32  double mey = RawMET.py() + dMEy_;
33  double mez = RawMET.pz();
34  double sumet = RawMET.sumEt() + dSumEt_;
35  const math::XYZTLorentzVector p4(mex, mey, mez, std::sqrt(mex * mex + mey * mey + mez * mez));
36  const math::XYZPoint vtx(0., 0., 0.);
37 
38  reco::CaloMET CorrectedMET(RawMET.getSpecific(), sumet, p4, vtx);
39  return CorrectedMET;
40 }
double pz() const final
z coordinate of momentum vector
double sumEt() const
Definition: MET.h:56
SpecificCaloMETData getSpecific() const
Definition: CaloMET.h:77
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
double px() const final
x coordinate of momentum vector
T sqrt(T t)
Definition: SSEVec.h:23
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
double py() const final
y coordinate of momentum vector
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
fixed size matrix