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