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");
const PFJetRef & jetRef() const
RecoTauEnergyRecoveryPlugin2(const edm::ParameterSet &)
virtual void beginEvent()
double deltaR(double eta1, double phi1, double eta2, double phi2)
void operator()(PFTau &) const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual ~RecoTauEnergyRecoveryPlugin2()
void setalternatLorentzVect(math::XYZTLorentzVector)
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual const LorentzVector & p4() const
four-momentum Lorentz vector