CMS 3D CMS Logo

PFCluster.cc
Go to the documentation of this file.
2 
3 void l1t::PFCluster::calibratePt(float newpt, float preserveEmEt) {
4  float currEmEt = emEt();
5  ptError_ *= newpt / pt();
6  setP4(PolarLorentzVector(newpt, eta(), phi(), mass()));
7  if (preserveEmEt) {
8  float hNew = std::max<float>(pt() - currEmEt, 0);
9  hOverE_ = (currEmEt > 0 ? hNew / currEmEt : -1);
10  }
11 }
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
float ptError_
Definition: PFCluster.h:69
void calibratePt(float newpt, float preserveEmEt=true)
Definition: PFCluster.cc:3
double mass() const final
mass
double phi() const final
momentum azimuthal angle
void setP4(const LorentzVector &p4) final
set 4-momentum
float emEt() const
Definition: PFCluster.h:40
float hOverE_
Definition: PFCluster.h:69
double eta() const final
momentum pseudorapidity