Rivet  1.8.3
InitialQuarks.hh
1 // -*- C++ -*-
2 #ifndef RIVET_InitialQuarks_HH
3 #define RIVET_InitialQuarks_HH
4 
5 #include "Rivet/Projection.hh"
6 #include "Rivet/Particle.hh"
7 #include "Rivet/Event.hh"
8 
9 namespace Rivet {
10 
11 
16  class InitialQuarks : public Projection {
17  public:
18 
20 
24  {
25  setName("InitialQuarks");
26  }
27 
28 
30  virtual const Projection* clone() const {
31  return new InitialQuarks(*this);
32  }
34 
36  virtual const ParticleVector& particles() const { return _theParticles; }
37 
39  virtual bool empty() const { return _theParticles.empty(); }
41  virtual bool isEmpty() const { return _theParticles.empty(); }
42 
43 
44  protected:
45 
47  virtual void project(const Event& e);
48 
50  virtual int compare(const Projection& p) const;
51 
52 
53  protected:
54 
56  ParticleVector _theParticles;
57 
58  };
59 
60 }
61 
62 
63 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
virtual const Projection * clone() const
Clone on the heap.
Definition: InitialQuarks.hh:30
virtual bool isEmpty() const
Definition: InitialQuarks.hh:41
Project out quarks from the hard process in events.
Definition: InitialQuarks.hh:16
virtual const ParticleVector & particles() const
Access the projected final-state particles.
Definition: InitialQuarks.hh:36
Definition: Event.hh:22
virtual void project(const Event &e)
Apply the projection to the event.
Definition: InitialQuarks.cc:18
virtual int compare(const Projection &p) const
Compare projections.
Definition: InitialQuarks.cc:13
InitialQuarks()
Definition: InitialQuarks.hh:23
Base class for all Rivet projections.
Definition: Projection.hh:28
virtual bool empty() const
Is this final state empty?
Definition: InitialQuarks.hh:39