60 std::vector<reco::CandidatePtr> pfJetConstituents = tau.
jetRef()->getJetConstituents();
61 for (std::vector<reco::CandidatePtr>::const_iterator pfJetConstituent = pfJetConstituents.begin();
62 pfJetConstituent != pfJetConstituents.end();
64 double dR =
deltaR((*pfJetConstituent)->p4(), tau.
p4());
66 tauAltP4 += (*pfJetConstituent)->p4();
78 "RecoTauEnergyRecoveryPlugin2");
RecoTauEnergyRecoveryPlugin2(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
const JetBaseRef & jetRef() const
void setalternatLorentzVect(const math::XYZTLorentzVector &)
const LorentzVector & p4() const final
four-momentum Lorentz vector
void operator()(PFTau &) const override
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
~RecoTauEnergyRecoveryPlugin2() override
math::XYZTLorentzVector LorentzVector
Lorentz vector.
#define DEFINE_EDM_PLUGIN(factory, type, name)
void beginEvent() override