FParameter.hh
// -*- C++ -*-
#ifndef RIVET_Sphericity_HH
#define RIVET_FParameter_HH
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class FParameter : public Projection {
public:
FParameter(const FinalState& fsp);
virtual const Projection* clone() const {
return new FParameter(*this);
}
protected:
void project(const Event& e);
//int compare(const Projection& p) const;
// Taken from Thrust.hh
int compare(const Projection& p) const {
return mkNamedPCmp(p, "FS");
}
public:
void clear();
double F() const { return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
double lambda1() const { return _lambdas[0]; }
double lambda2() const { return _lambdas[1]; }
void calc(const FinalState& fs);
void calc(const vector<Particle>& fsparticles);
void calc(const vector<FourMomentum>& fsmomenta);
void calc(const vector<Vector3>& fsmomenta);
private:
vector<double> _lambdas;
private:
void _calcFParameter(const vector<Vector3>& fsmomenta);
};
}
#endif
Rivet::FParameter::compare
int compare(const Projection &p) const
Compare with other projections.
Definition: FParameter.hh:38
Rivet::FParameter::project
void project(const Event &e)
Perform the projection on the Event.
Definition: FParameter.cc:21
Rivet::Event
Definition: Event.hh:22
Rivet::FParameter
Definition: FParameter.hh:12
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::FParameter::calc
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
Definition: FParameter.cc:27
Rivet::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::FParameter::FParameter
FParameter(const FinalState &fsp)
Constructor.
Definition: FParameter.cc:9
Rivet::FParameter::clear
void clear()
Reset the projection.
Definition: FParameter.cc:16
Rivet::FParameter::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: FParameter.hh:23