5 #include "Rivet/Projection.hh"
6 #include "Rivet/Event.hh"
7 #include "Rivet/Particle.hh"
25 double sqrtS(
const Event& e);
31 double sqrtS(
const FourMomentum& pa,
const FourMomentum& pb);
49 return new Beam(*
this);
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
const ParticlePair & beams() const
The pair of beam particles in the current collision.
Definition: Beam.hh:56
ParticlePair beams(const Event &e)
Function to get beam particles from an event.
Definition: Beam.cc:9
virtual void project(const Event &e)
Project on to the Event.
Definition: Beam.cc:50
Beam()
The default constructor.
Definition: Beam.hh:43
virtual int compare(const Projection &UNUSED(p)) const
Compare with other projections.
Definition: Beam.hh:78
double sqrtS() const
Get centre of mass energy, .
Definition: Beam.cc:69
std::pair< Particle, Particle > ParticlePair
Typedef for a pair of Particle objects.
Definition: Particle.fhh:20
std::pair< PdgId, PdgId > PdgIdPair
Typedef for a pair of particle names.
Definition: Particle.fhh:32
double sqrtS(const Event &e)
Function to get beam centre of mass energy from an event.
Definition: Beam.cc:25
PdgIdPair beamIds(const Event &e)
Function to get beam particle IDs from an event.
Definition: Beam.cc:15
virtual const Projection * clone() const
Clone on the heap.
Definition: Beam.hh:48
Project out the incoming beams.
Definition: Beam.hh:39
const PdgIdPair beamIds() const
The pair of beam particle PDG codes in the current collision.
Definition: Beam.hh:61
Base class for all Rivet projections.
Definition: Projection.hh:28