2#ifndef RIVET_FParameter_HH
3#define RIVET_FParameter_HH
5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/FinalState.hh"
7#include "Rivet/Event.hh"
28 using Projection::operator =;
52 double F()
const {
return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
57 double lambda1()
const {
return _lambdas[0]; }
58 double lambda2()
const {
return _lambdas[1]; }
70 void calc(
const vector<Particle>& fsparticles);
73 void calc(
const vector<FourMomentum>& fsmomenta);
76 void calc(
const vector<Vector3>& fsmomenta);
84 vector<double> _lambdas;
90 void _calcFParameter(
const vector<Vector3>& fsmomenta);
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Calculator of the -parameter observable.
Definition FParameter.hh:13
void calc(const vector< Vector3 > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
FParameter(const FinalState &fsp)
Constructor.
RIVET_DEFAULT_PROJ_CLONE(FParameter)
Clone on the heap.
void calc(const vector< Particle > &fsparticles)
Manually calculate the sphericity, without engaging the caching system.
CmpState compare(const Projection &p) const
Compare with other projections.
Definition FParameter.hh:39
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
void project(const Event &e)
Perform the projection on the Event.
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
void clear()
Reset the projection.
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Base class for all Rivet projections.
Definition Projection.hh:29
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition MC_CENT_PPB_Projections.hh:10