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; }
53 void calc(
const FinalState& fs);
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:120
Definition: MC_JetAnalysis.hh:9
BeamThrust()
Constructor.
Definition: BeamThrust.hh:15
Definition: BeamThrust.hh:11
int compare(const Projection &p) const
Compare projections.
Definition: BeamThrust.hh:37
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
virtual const Projection * clone() const
Clone on the heap.
Definition: BeamThrust.hh:23
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:28