2 #ifndef RIVET_LeadingParticlesFinalState_HH
3 #define RIVET_LeadingParticlesFinalState_HH
5 #include "Rivet/Event.hh"
6 #include "Rivet/Projection.hh"
7 #include "Rivet/Projections/FinalState.hh"
22 setName(
"LeadingParticlesFinalState");
48 _leading_only = leadingonly;
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
void setLeadingOnly(const bool &leadingonly)
Definition: LeadingParticlesFinalState.hh:47
virtual const Projection * clone() const
Clone on the heap.
Definition: LeadingParticlesFinalState.hh:27
void project(const Event &e)
Apply the projection on the supplied event.
Definition: LeadingParticlesFinalState.cc:27
Representation of particles from a HepMC::GenEvent.
Definition: Particle.hh:16
bool inList(const Particle &particle) const
Check if the particle's ID is in the list.
Definition: LeadingParticlesFinalState.cc:78
int compare(const Projection &p) const
Compare projections.
Definition: LeadingParticlesFinalState.cc:7
LeadingParticlesFinalState & addParticleId(long id)
Add a particle ID to the list of leading particles selected.
Definition: LeadingParticlesFinalState.hh:32
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
LeadingParticlesFinalState & addParticleIdPair(long id)
Add a particle ID to the list of leading particles selected.
Definition: LeadingParticlesFinalState.hh:38
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Get the highest-pT occurrences of FS particles with the specified PDG IDs.
Definition: LeadingParticlesFinalState.hh:14
Base class for all Rivet projections.
Definition: Projection.hh:28
LeadingParticlesFinalState(const FinalState &fsp)
Constructor: the supplied FinalState projection is assumed to live through the run.
Definition: LeadingParticlesFinalState.hh:19