2#ifndef RIVET_BeamThrust_HH
3#define RIVET_BeamThrust_HH
5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/FinalState.hh"
7#include "Rivet/Event.hh"
28 using Projection::operator =;
35 const vector<Particle> ps
36 = apply<FinalState>(e,
"FS").particles();
47 double beamthrust()
const {
return _beamthrust; }
57 void calc(
const vector<Particle>& fsparticles);
60 void calc(
const vector<FourMomentum>& fsmomenta);
74 void _calcBeamThrust(
const vector<FourMomentum>& fsmomenta);
Calculator of the beam-thrust observable.
Definition BeamThrust.hh:13
void calc(const vector< Particle > &fsparticles)
Manually calculate the beamthrust, without engaging the caching system.
RIVET_DEFAULT_PROJ_CLONE(BeamThrust)
Clone on the heap.
CmpState compare(const Projection &p) const
Compare projections.
Definition BeamThrust.hh:41
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the beamthrust, without engaging the caching system.
BeamThrust()
Constructor.
Definition BeamThrust.hh:17
void calc(const FinalState &fs)
Manually calculate the beamthrust, without engaging the caching system.
void project(const Event &e)
Perform the projection on the Event.
Definition BeamThrust.hh:34
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) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
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:148
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition MC_CENT_PPB_Projections.hh:10