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" 32 const vector<Particle> ps
33 = applyProjection<FinalState>(e,
"FS").particles();
45 double beamthrust()
const {
return _beamthrust; }
57 void calc(
const vector<Particle>& fsparticles);
60 void calc(
const vector<FourMomentum>& fsmomenta);
73 void _calcBeamThrust(
const vector<FourMomentum>& fsmomenta);
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:142
Definition: MC_Cent_pPb.hh:10
DEFAULT_RIVET_PROJ_CLONE(BeamThrust)
Clone on the heap.
BeamThrust()
Constructor.
Definition: BeamThrust.hh:17
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
Calculator of the beam-thrust observable.
Definition: BeamThrust.hh:13
CmpState compare(const Projection &p) const
Compare projections.
Definition: BeamThrust.hh:38
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)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:160
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
void project(const Event &e)
Perform the projection on the Event.
Definition: BeamThrust.hh:31
void calc(const FinalState &fs)
Manually calculate the beamthrust, without engaging the caching system.
Base class for all Rivet projections.
Definition: Projection.hh:29