Thrust.hh
// -*- C++ -*-
#ifndef RIVET_Thrust_HH
#define RIVET_Thrust_HH
#include "Rivet/Projection.hh"
#include "Rivet/Projections/AxesDefinition.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class Thrust : public AxesDefinition {
public:
Thrust() {}
Thrust(const FinalState& fsp) {
setName("Thrust");
addProjection(fsp, "FS");
}
virtual const Projection* clone() const {
return new Thrust(*this);
}
protected:
void project(const Event& e) {
const vector<Particle> ps
= applyProjection<FinalState>(e, "FS").particles();
calc(ps);
}
int compare(const Projection& p) const {
return mkNamedPCmp(p, "FS");
}
public:
double thrust() const { return _thrusts[0]; }
double thrustMajor() const { return _thrusts[1]; }
double thrustMinor() const { return _thrusts[2]; }
double oblateness() const { return _thrusts[1] - _thrusts[2]; }
const Vector3& thrustAxis() const { return _thrustAxes[0]; }
const Vector3& thrustMajorAxis() const { return _thrustAxes[1]; }
const Vector3& thrustMinorAxis() const { return _thrustAxes[2]; }
const Vector3& axis1() const { return thrustAxis(); }
const Vector3& axis2() const { return thrustMajorAxis(); }
const Vector3& axis3() const { return thrustMinorAxis(); }
public:
void calc(const FinalState& fs);
void calc(const vector<Particle>& fsparticles);
void calc(const vector<FourMomentum>& fsmomenta);
void calc(const vector<Vector3>& threeMomenta);
private:
vector<double> _thrusts;
vector<Vector3> _thrustAxes;
private:
void _calcThrust(const vector<Vector3>& fsmomenta);
};
}
#endif
Rivet::Thrust::axis3
const Vector3 & axis3() const
The least significant ("minor") axis.
Definition: Thrust.hh:100
Rivet::Thrust::thrustMajor
double thrustMajor() const
The thrust major scalar, , (thrust along thrust major axis).
Definition: Thrust.hh:81
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::Thrust::thrustMajorAxis
const Vector3 & thrustMajorAxis() const
The thrust major axis (axis of max thrust perpendicular to thrust axis).
Definition: Thrust.hh:92
Rivet::Thrust::axis1
const Vector3 & axis1() const
AxesDefinition axis accessors.
Definition: Thrust.hh:98
Rivet::Thrust::thrustMinorAxis
const Vector3 & thrustMinorAxis() const
The thrust minor axis (axis perpendicular to thrust and thrust major).
Definition: Thrust.hh:94
Rivet::AxesDefinition
Base class for projections which define a spatial basis.
Definition: AxesDefinition.hh:20
Rivet::Thrust::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: Thrust.hh:56
Rivet::Thrust::Thrust
Thrust()
Constructor.
Definition: Thrust.hh:48
Rivet::Thrust::thrustMinor
double thrustMinor() const
The thrust minor scalar, , (thrust along thrust minor axis).
Definition: Thrust.hh:83
Rivet::Thrust::oblateness
double oblateness() const
The oblateness, .
Definition: Thrust.hh:85
Rivet::Thrust::thrust
double thrust() const
Definition: Thrust.hh:79
Rivet::Event
Definition: Event.hh:22
Rivet::Thrust::calc
void calc(const FinalState &fs)
Manually calculate the thrust, without engaging the caching system.
Definition: Thrust.cc:10
Rivet::Thrust::project
void project(const Event &e)
Perform the projection on the Event.
Definition: Thrust.hh:63
Rivet::Thrust::compare
int compare(const Projection &p) const
Compare projections.
Definition: Thrust.hh:70
Rivet::Thrust
Get the e+ e- thrust basis and the thrust, thrust major and thrust minor scalars. ...
Definition: Thrust.hh:44
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Rivet::Thrust::axis2
const Vector3 & axis2() const
The 2nd most significant ("major") axis.
Definition: Thrust.hh:99
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::Vector3
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
Rivet::Thrust::thrustAxis
const Vector3 & thrustAxis() const
Definition: Thrust.hh:90