35 namespace reco {
namespace tau {
53 dRcone_(cfg.getParameter<double>(
"dRcone"))
66 std::vector<reco::CandidatePtr> pfJetConstituents = tau.
jetRef()->getJetConstituents();
67 for ( std::vector<reco::CandidatePtr>::const_iterator pfJetConstituent = pfJetConstituents.begin();
68 pfJetConstituent != pfJetConstituents.end(); ++pfJetConstituent ) {
69 double dR =
deltaR((*pfJetConstituent)->p4(), tau.
p4());
70 if ( dR <
dRcone_ ) tauAltP4 += (*pfJetConstituent)->p4();
81 "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