2 #ifndef RIVET_Multiplicity_HH
3 #define RIVET_Multiplicity_HH
5 #include "Rivet/Projection.hh"
6 #include "Rivet/Projections/FinalState.hh"
7 #include "Rivet/Particle.hh"
8 #include "Rivet/Event.hh"
19 : _totalMult(0), _hadMult(0)
54 unsigned int _totalMult;
57 unsigned int _hadMult;
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
int compare(const Projection &p) const
Compare projections.
Definition: Multiplicity.cc:10
virtual const Projection * clone() const
Clone on the heap.
Definition: Multiplicity.hh:26
unsigned int hadronMultiplicity() const
Hadron multiplicity.
Definition: Multiplicity.hh:48
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
Multiplicity(const FinalState &fsp)
Constructor. The provided FinalState projection must live throughout the run.
Definition: Multiplicity.hh:18
unsigned int totalMultiplicity() const
Total multiplicity.
Definition: Multiplicity.hh:45
Base class for all Rivet projections.
Definition: Projection.hh:28
void project(const Event &e)
Perform the projection on the Event.
Definition: Multiplicity.cc:15
Count the final-state particles in an event.
Definition: Multiplicity.hh:14