2 #ifndef RIVET_IdentifiedFinalState_HH 3 #define RIVET_IdentifiedFinalState_HH 5 #include "Rivet/Projections/FinalState.hh" 55 for (
const PdgId pid : pids) _pids.insert(pid);
68 for (
const PdgId pid : pids) {
97 virtual const Particles& remainingParticles()
const {
98 return _remainingParticles;
115 Particles _remainingParticles;
IdentifiedFinalState & acceptChLeptons()
Accept all charged leptons (convenience method).
Definition: IdentifiedFinalState.hh:84
Definition: MC_Cent_pPb.hh:10
IdentifiedFinalState & acceptIds(const vector< PdgId > &pids)
Add a set of accepted particle IDs.
Definition: IdentifiedFinalState.hh:54
IdentifiedFinalState & acceptId(PdgId pid)
Add an accepted particle ID.
Definition: IdentifiedFinalState.hh:48
Produce a final state which only contains specified particle IDs.
Definition: IdentifiedFinalState.hh:11
const Cut & open()
Fully open cut singleton, accepts everything.
int pid(const Particle &p)
Unbound function access to PID code.
Definition: ParticleUtils.hh:23
const set< PdgId > & acceptedIds() const
Get the list of particle IDs to accept.
Definition: IdentifiedFinalState.hh:43
DEFAULT_RIVET_PROJ_CLONE(IdentifiedFinalState)
Clone on the heap.
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
void project(const Event &e)
Apply the projection on the supplied event.
IdentifiedFinalState & acceptIdPair(PdgId pid)
Add an accepted particle ID and its antiparticle.
Definition: IdentifiedFinalState.hh:60
CmpState compare(const Projection &p) const
Compare projections.
IdentifiedFinalState & acceptIdPairs(const vector< PdgId > &pids)
Add a set of accepted particle IDs and their antiparticles.
Definition: IdentifiedFinalState.hh:67
PdgIdPair pids(const ParticlePair &pp)
Definition: ParticleUtils.hh:749
void reset()
Reset the list of particle IDs to accept.
Definition: IdentifiedFinalState.hh:92
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
IdentifiedFinalState(const FinalState &fsp, const vector< PdgId > &pids=vector< PdgId >())
Constructor with a FinalState and optional list of PDG ID codes.
IdentifiedFinalState & acceptNeutrinos()
Accept all neutrinos (convenience method).
Definition: IdentifiedFinalState.hh:76
Base class for all Rivet projections.
Definition: Projection.hh:29