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" 41 : _calculatedSpherocity(false)
57 const vector<Particle> ps
58 = applyProjection<FinalState>(e,
"FS").particles();
104 void calc(
const vector<Particle>& fsparticles);
107 void calc(
const vector<FourMomentum>& fsmomenta);
110 void calc(
const vector<Vector3>& threeMomenta);
118 vector<double> _spherocities;
121 vector<Vector3> _spherocityAxes;
124 bool _calculatedSpherocity;
130 void _calcSpherocity(
const vector<Vector3>& fsmomenta);
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
virtual const Projection * clone() const
Clone on the heap.
Definition: Spherocity.hh:48
const Vector3 & spherocityAxis() const
Definition: Spherocity.hh:79
Base class for projections which define a spatial basis.
Definition: AxesDefinition.hh:20
Spherocity(const FinalState &fsp)
Constructor.
Definition: Spherocity.hh:40
double spherocity() const
Definition: Spherocity.hh:73
void project(const Event &e)
Perform the projection on the Event.
Definition: Spherocity.hh:56
Get the transverse spherocity scalars for hadron-colliders.
Definition: Spherocity.hh:33
const Vector3 & axis2() const
The 2nd most significant ("major") axis.
Definition: Spherocity.hh:89
void calc(const FinalState &fs)
Manually calculate the spherocity, without engaging the caching system.
Definition: Spherocity.cc:10
const Vector3 & axis1() const
AxesDefinition axis accessors.
Definition: Spherocity.hh:88
int compare(const Projection &p) const
Compare projections.
Definition: Spherocity.hh:64
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Base class for all Rivet projections.
Definition: Projection.hh:28
const Vector3 & spherocityMajorAxis() const
The spherocity major axis (axis of max spherocity perpendicular to spherocity axis).
Definition: Spherocity.hh:81
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
const Vector3 & spherocityMinorAxis() const
The spherocity minor axis (axis perpendicular to spherocity and spherocity major).
Definition: Spherocity.hh:83
const Vector3 & axis3() const
The least significant ("minor") axis.
Definition: Spherocity.hh:90