1 #ifndef CandUtils_Thrust_h 2 #define CandUtils_Thrust_h 43 template <
typename const_iterator>
47 std::vector<const reco::Candidate *>
cands;
62 const unsigned int n_;
63 std::vector<Vector>
p_;
75 void init(
const std::vector<const reco::Candidate *> &);
ThetaPhi initialAxis() const
ThetaPhi finalAxis(ThetaPhi) const
ROOT::Math::Plane3D::Vector Vector
Thrust(const_iterator begin, const_iterator end)
constructor from first and last iterators
void parabola(double &a, double &b, double &c, const Vector &, const Vector &, const Vector &) const
double thrust() const
thrust value (in the range [0.5, 1.0])
math::XYZVector Vector
spatial vector
ThetaPhi(double t, double p)
const Vector & axis() const
thrust axis (with magnitude = 1)
void init(const std::vector< const reco::Candidate *> &)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Vector axis(const ThetaPhi &tp) const