35 namespace reco {
namespace tau {
53 dRcone_(cfg.getParameter<double>(
"dRcone"))
66 std::vector<reco::PFCandidatePtr> pfJetConstituents = tau.
jetRef()->getPFConstituents();
67 for ( std::vector<reco::PFCandidatePtr>::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");
void operator()(PFTau &) const override
const PFJetRef & jetRef() const
RecoTauEnergyRecoveryPlugin2(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
void setalternatLorentzVect(const math::XYZTLorentzVector &)
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual ~RecoTauEnergyRecoveryPlugin2()
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
virtual void beginEvent() override