5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/AxesDefinition.hh"
7#include "Rivet/Projections/FinalState.hh"
8#include "Rivet/Event.hh"
45 using AxesDefinition::operator=;
59 using Projection::operator =;
66 const vector<Particle> ps
67 = apply<FinalState>(e,
"FS").particles();
81 double thrust()
const {
return _thrusts[0]; }
87 double oblateness()
const {
return _thrusts[1] - _thrusts[2]; }
116 void calc(
const vector<Particle>& fsparticles);
119 void calc(
const vector<FourMomentum>& fsmomenta);
122 void calc(
const vector<Vector3>& threeMomenta);
130 vector<double> _thrusts;
133 vector<Vector3> _thrustAxes;
139 void _calcThrust(
const vector<Vector3>& fsmomenta);
Base class for projections which define a spatial basis.
Definition AxesDefinition.hh:19
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Get the e+ e- thrust basis and the thrust, thrust major and thrust minor scalars.
Definition Thrust.hh:42
const Vector3 & thrustAxis() const
Definition Thrust.hh:92
double oblateness() const
The oblateness, .
Definition Thrust.hh:87
const Vector3 & thrustMinorAxis() const
The thrust minor axis (axis perpendicular to thrust and thrust major).
Definition Thrust.hh:96
RIVET_DEFAULT_PROJ_CLONE(Thrust)
Clone on the heap.
const Vector3 & axis1() const
AxesDefinition axis accessors.
Definition Thrust.hh:100
void calc(const vector< Vector3 > &threeMomenta)
Manually calculate the thrust, without engaging the caching system.
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the thrust, without engaging the caching system.
double thrustMajor() const
The thrust major scalar, , (thrust along thrust major axis).
Definition Thrust.hh:83
double thrust() const
Definition Thrust.hh:81
void project(const Event &e)
Perform the projection on the Event.
Definition Thrust.hh:65
CmpState compare(const Projection &p) const
Compare projections.
Definition Thrust.hh:72
double thrustMinor() const
The thrust minor scalar, , (thrust along thrust minor axis).
Definition Thrust.hh:85
void calc(const vector< Particle > &fsparticles)
Manually calculate the thrust, without engaging the caching system.
Thrust()
Constructor.
Definition Thrust.hh:48
const Vector3 & axis2() const
The 2nd most significant ("major") axis.
Definition Thrust.hh:101
void calc(const FinalState &fs)
Manually calculate the thrust, without engaging the caching system.
const Vector3 & thrustMajorAxis() const
The thrust major axis (axis of max thrust perpendicular to thrust axis).
Definition Thrust.hh:94
const Vector3 & axis3() const
The least significant ("minor") axis.
Definition Thrust.hh:102
Three-dimensional specialisation of Vector.
Definition Vector3.hh:40
Definition MC_CENT_PPB_Projections.hh:10