2 #include "Math/GenVector/VectorUtil.h"
24 for (math::PtEtaPhiELorentzVectorCollection::const_iterator mRH = hits.begin();mRH!=hits.end();++mRH)
26 double delta = ROOT::Math::VectorUtil::DeltaR(direction,(*mRH));
32 double etIsol = eRMax - eRMin;
43 for (math::PtEtaPhiELorentzVectorCollection::const_iterator mRH = hits.begin();mRH!=hits.end();++mRH)
45 double delta = ROOT::Math::VectorUtil::DeltaR(direction,(*mRH));
62 std::vector<double> rmsVector;
65 for(math::PtEtaPhiELorentzVectorCollection::const_iterator
c = hits.begin();
c!=hits.end();++
c)
67 eta_rms+=
c->pt()*
std::pow(
c->eta()-direction.eta(),2);
68 phi_rms+=
c->pt()*
std::pow(ROOT::Math::VectorUtil::DeltaPhi(*
c,direction),2);
69 dr_rms+=
c->pt()*
std::pow(ROOT::Math::VectorUtil::DeltaR(*
c,direction),2);
81 rmsVector.push_back(eta_rms/sumpt);
82 rmsVector.push_back(phi_rms/sumpt);
83 rmsVector.push_back(dr_rms/sumpt);
double isolatedEt(const math::PtEtaPhiELorentzVectorCollection &, const math::XYZVector &, double innerCone, double outerCone) const
std::vector< PtEtaPhiELorentzVector > PtEtaPhiELorentzVectorCollection
XYZVectorD XYZVector
spatial vector with cartesian internal representation
int nClustersAnnulus(const math::PtEtaPhiELorentzVectorCollection &, const math::XYZVector &, double innerCone, double outerCone) const
std::vector< double > clusterShape(const math::PtEtaPhiELorentzVectorCollection &, const math::XYZVector &, double innerCone, double outerCone) const
Power< A, B >::type pow(const A &a, const B &b)