InitialQuarks.hh
// -*- C++ -*-
#ifndef RIVET_InitialQuarks_HH
#define RIVET_InitialQuarks_HH
#include "Rivet/Projection.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class InitialQuarks : public Projection {
public:
InitialQuarks()
{
setName("InitialQuarks");
}
virtual const Projection* clone() const {
return new InitialQuarks(*this);
}
virtual const ParticleVector& particles() const { return _theParticles; }
virtual bool empty() const { return _theParticles.empty(); }
virtual bool isEmpty() const { return _theParticles.empty(); }
protected:
virtual void project(const Event& e);
virtual int compare(const Projection& p) const;
protected:
ParticleVector _theParticles;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::InitialQuarks::isEmpty
virtual bool isEmpty() const
Definition: InitialQuarks.hh:41
Rivet::InitialQuarks::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: InitialQuarks.hh:30
Rivet::InitialQuarks
Project out quarks from the hard process in events.
Definition: InitialQuarks.hh:16
Rivet::Event
Definition: Event.hh:22
Rivet::InitialQuarks::project
virtual void project(const Event &e)
Apply the projection to the event.
Definition: InitialQuarks.cc:18
Rivet::InitialQuarks::particles
virtual const ParticleVector & particles() const
Access the projected final-state particles.
Definition: InitialQuarks.hh:36
Rivet::InitialQuarks::compare
virtual int compare(const Projection &p) const
Compare projections.
Definition: InitialQuarks.cc:13
Rivet::InitialQuarks::empty
virtual bool empty() const
Is this final state empty?
Definition: InitialQuarks.hh:39
Rivet::InitialQuarks::InitialQuarks
InitialQuarks()
Definition: InitialQuarks.hh:23
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28