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" 31 const vector<Particle> ps
32 = applyProjection<FinalState>(e,
"FS").
particles();
44 double beamthrust()
const {
return _beamthrust; }
56 void calc(
const vector<Particle>& fsparticles);
59 void calc(
const vector<FourMomentum>& fsmomenta);
72 void _calcBeamThrust(
const vector<FourMomentum>& fsmomenta);
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
DEFAULT_RIVET_PROJ_CLONE(BeamThrust)
Clone on the heap.
BeamThrust()
Constructor.
Definition: BeamThrust.hh:16
std::vector< GenParticle const * > particles(const GenEvent *ge)
Definition: RivetHepMC.hh:36
int compare(const Projection &p) const
Compare projections.
Definition: BeamThrust.hh:37
Definition: BeamThrust.hh:12
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
void project(const Event &e)
Perform the projection on the Event.
Definition: BeamThrust.hh:30
void calc(const FinalState &fs)
Manually calculate the beamthrust, without engaging the caching system.
Definition: BeamThrust.cc:10
Base class for all Rivet projections.
Definition: Projection.hh:29