58 std::vector<reco::CandidatePtr> pfJetConstituents = tau.
jetRef()->getJetConstituents();
59 for (std::vector<reco::CandidatePtr>::const_iterator pfJetConstituent = pfJetConstituents.begin();
60 pfJetConstituent != pfJetConstituents.end();
62 double dR =
deltaR((*pfJetConstituent)->p4(), tau.
p4());
64 tauAltP4 += (*pfJetConstituent)->p4();
76 "RecoTauEnergyRecoveryPlugin2");
void operator()(PFTau &) const override
RecoTauEnergyRecoveryPlugin2(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
const JetBaseRef & jetRef() const
void setalternatLorentzVect(const math::XYZTLorentzVector &)
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