1 #ifndef CandUtils_Thrust_h
2 #define CandUtils_Thrust_h
45 template<
typename const_iterator>
50 std::vector<const reco::Candidate*> cands;
51 for(const_iterator
i = begin;
i !=
end; ++
i) {
65 const unsigned int n_;
66 std::vector<Vector>
p_;
81 void init(
const std::vector<const reco::Candidate*>&);
ROOT::Math::Plane3D::Vector Vector
Thrust(const_iterator begin, const_iterator end)
constructor from first and last iterators
const Vector & axis() const
thrust axis (with magnitude = 1)
ThetaPhi initialAxis() const
Geom::Theta< T > theta() const
math::XYZVector Vector
spatial vector
ThetaPhi(double t, double p)
double thrust() const
thrust value (in the range [0.5, 1.0])
Vector axis(const ThetaPhi &tp) const
ThetaPhi finalAxis(ThetaPhi) const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
void parabola(double &a, double &b, double &c, const Vector &, const Vector &, const Vector &) const
void init(const std::vector< const reco::Candidate * > &)