1 #ifndef CandUtils_Thrust_h 2 #define CandUtils_Thrust_h 43 template<
typename const_iterator>
48 std::vector<const reco::Candidate*> cands;
49 for(const_iterator
i = begin;
i !=
end; ++
i) {
63 const unsigned int n_;
64 std::vector<Vector>
p_;
70 double thrust(
const Vector & theAxis)
const;
78 const Vector &,
const Vector &,
const Vector &)
const;
79 void init(
const std::vector<const reco::Candidate*>&);
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
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 * > &)