6 const bool subtractPileupAs4Vec) {
7 const double pt = jet.Pt();
9 const double pileupPt = pileup.Pt();
10 const double ptFactor = (pt - pileupPt) / pt;
13 else if (subtractPileupAs4Vec) {
15 const double e = subtracted.E();
20 const double px = subtracted.Px();
21 const double py = subtracted.Py();
22 const double pz = subtracted.Pz();
23 if (e * e < px * px + py * py + pz * pz)
26 return jet * ptFactor;
31 return jet * ptFactor;
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
math::XYZTLorentzVector adjustForPileup(const math::XYZTLorentzVector &jet, const math::XYZTLorentzVector &pileup, bool subtractPileupAs4Vec)