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 *> &);
const edm::EventSetup & c
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 * > &)