Line Code
1 2 3 4 5 6 7 8 9 10 11
#include "DataFormats/L1TParticleFlow/interface/PFCluster.h"

void l1t::PFCluster::calibratePt(float newpt, float preserveEmEt) {
  float currEmEt = emEt();
  ptError_ *= newpt / pt();
  setP4(PolarLorentzVector(newpt, eta(), phi(), mass()));
  if (preserveEmEt) {
    float hNew = pt() - currEmEt;
    hOverE_ = (currEmEt > 0 ? hNew / currEmEt : -1);
  }
}