DataFormats
L1TParticleFlow
src
PFCluster.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1TParticleFlow/interface/PFCluster.h
"
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
}
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition:
LeafCandidate.h:146
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:25
l1t::PFCluster::emEt
float emEt() const
Definition:
PFCluster.h:40
l1t::PFCluster::hOverE_
float hOverE_
Definition:
PFCluster.h:69
reco::LeafCandidate::mass
double mass() const final
mass
Definition:
LeafCandidate.h:131
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition:
LeafCandidate.h:152
PFCluster.h
l1t::PFCluster::ptError_
float ptError_
Definition:
PFCluster.h:69
reco::LeafCandidate::setP4
void setP4(const LorentzVector &p4) final
set 4-momentum
Definition:
LeafCandidate.h:158
l1t::PFCluster::calibratePt
void calibratePt(float newpt, float preserveEmEt=true)
Definition:
PFCluster.cc:3
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
Generated for CMSSW Reference Manual by
1.8.16