2 #ifndef RIVET_Sphericity_HH
3 #define RIVET_FParameter_HH
5 #include "Rivet/Projection.hh"
6 #include "Rivet/Projections/FinalState.hh"
7 #include "Rivet/Event.hh"
49 double F()
const {
return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
54 double lambda1()
const {
return _lambdas[0]; }
55 double lambda2()
const {
return _lambdas[1]; }
64 void calc(
const FinalState& fs);
67 void calc(
const vector<Particle>& fsparticles);
70 void calc(
const vector<FourMomentum>& fsmomenta);
73 void calc(
const vector<Vector3>& fsmomenta);
78 vector<double> _lambdas;
83 void _calcFParameter(
const vector<Vector3>& fsmomenta);
int compare(const Projection &p) const
Compare with other projections.
Definition: FParameter.hh:38
void project(const Event &e)
Perform the projection on the Event.
Definition: FParameter.cc:21
Definition: FParameter.hh:12
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
Definition: FParameter.cc:27
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
FParameter(const FinalState &fsp)
Constructor.
Definition: FParameter.cc:9
void clear()
Reset the projection.
Definition: FParameter.cc:16
virtual const Projection * clone() const
Clone on the heap.
Definition: FParameter.hh:23