2#ifndef RIVET_Spherocity_HH
3#define RIVET_Spherocity_HH
5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/AxesDefinition.hh"
7#include "Rivet/Projections/FinalState.hh"
8#include "Rivet/Event.hh"
50 const vector<Particle> ps
51 = applyProjection<FinalState>(e,
"FS").particles();
100 void calc(
const vector<Particle>& fsparticles);
103 void calc(
const vector<FourMomentum>& fsmomenta);
106 void calc(
const vector<Vector3>& threeMomenta);
114 vector<double> _spherocities;
117 vector<Vector3> _spherocityAxes;
123 void _calcSpherocity(
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)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Get the transverse spherocity scalars for hadron-colliders.
Definition: Spherocity.hh:30
const Vector3 & axis1() const
Definition: Spherocity.hh:84
const Vector3 & axis2() const
The 2nd most significant ("major") axis.
Definition: Spherocity.hh:85
void project(const Event &e)
Perform the projection on the Event.
Definition: Spherocity.hh:49
const Vector3 & axis3() const
The least significant ("minor") axis.
Definition: Spherocity.hh:86
Spherocity(const FinalState &fsp)
Constructor.
Definition: Spherocity.hh:37
const Vector3 & spherocityAxis() const
The spherocity axis.
Definition: Spherocity.hh:74
const Vector3 & spherocityMajorAxis() const
The spherocity major axis (axis of max spherocity perpendicular to spherocity axis).
Definition: Spherocity.hh:76
void calc(const FinalState &fs)
Manually calculate the spherocity, without engaging the caching system.
const Vector3 & spherocityMinorAxis() const
The spherocity minor axis (axis perpendicular to spherocity and spherocity major).
Definition: Spherocity.hh:78
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the spherocity, without engaging the caching system.
void calc(const vector< Vector3 > &threeMomenta)
Manually calculate the spherocity, without engaging the caching system.
void calc(const vector< Particle > &fsparticles)
Manually calculate the spherocity, without engaging the caching system.
DEFAULT_RIVET_PROJ_CLONE(Spherocity)
Clone on the heap.
CmpState compare(const Projection &p) const
Compare projections.
Definition: Spherocity.hh:57
double spherocity() const
The spherocity scalar, , (minimum spherocity).
Definition: Spherocity.hh:67
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:40
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10