2 #ifndef RIVET_Sphericity_HH 3 #define RIVET_Sphericity_HH 5 #include "Rivet/Projection.hh" 6 #include "Rivet/Projections/AxesDefinition.hh" 7 #include "Rivet/Projections/FinalState.hh" 8 #include "Rivet/Event.hh" 9 #include "Rivet/Jet.fhh" 85 double sphericity()
const {
return 3.0 / 2.0 * (lambda2() + lambda3()); }
88 double transSphericity()
const {
return 2.0 * lambda2() / ( lambda1() + lambda2() ); }
92 double aplanarity()
const {
return 3 / 2.0 * lambda3(); }
117 double lambda1()
const {
return _lambdas[0]; }
118 double lambda2()
const {
return _lambdas[1]; }
119 double lambda3()
const {
return _lambdas[2]; }
135 void calc(
const Jets& jets);
138 void calc(
const vector<FourMomentum>& momenta);
143 void calc(
const vector<Vector3>& momenta);
151 vector<double> _lambdas;
154 vector<Vector3> _sphAxes;
157 const double _regparam;
Definition: ALICE_2010_I880049.cc:13
DEFAULT_RIVET_PROJ_CLONE(Sphericity)
Clone on the heap.
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
Definition: Sphericity.cc:38
const Vector3 & sphericityAxis() const
Sphericity axis.
Definition: Sphericity.hh:99
void project(const Event &e)
Perform the projection on the Event.
Definition: Sphericity.cc:32
Base class for projections which define a spatial basis.
Definition: AxesDefinition.hh:19
double aplanarity() const
Aplanarity.
Definition: Sphericity.hh:92
std::vector< GenParticle const * > particles(const GenEvent *ge)
Definition: RivetHepMC.hh:36
Specialisation of MatrixN to aid 3 dimensional rotations.
Definition: Matrix3.hh:13
const Vector3 & axis2() const
The 2nd most significant ("major") axis.
Definition: Sphericity.hh:110
Calculate the sphericity event shape.
Definition: Sphericity.hh:52
const Vector3 & sphericityMajorAxis() const
Sphericity major axis.
Definition: Sphericity.hh:101
const Vector3 & axis1() const
Definition: Sphericity.hh:109
const Vector3 & sphericityMinorAxis() const
Sphericity minor axis.
Definition: Sphericity.hh:103
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const Vector3 & axis3() const
The least significant ("minor") axis.
Definition: Sphericity.hh:111
double transSphericity() const
Transverse sphericity.
Definition: Sphericity.hh:88
Base class for all Rivet projections.
Definition: Projection.hh:29
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
Sphericity(double rparam=2.0)
Constructor.
Definition: Sphericity.hh:59
void clear()
Reset the projection.
Definition: Sphericity.cc:17
double sphericity() const
Sphericity.
Definition: Sphericity.hh:86
int compare(const Projection &p) const
Compare with other projections.
Definition: Sphericity.cc:23
double planarity() const
Planarity.
Definition: Sphericity.hh:90