rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
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 
17  class InitialQuarks : public Projection {
18  public:
19 
21 
22  InitialQuarks() {
25  setName("InitialQuarks");
26  }
27 
30 
32 
34  virtual const Particles& particles() const { return _theParticles; }
35 
37  virtual bool empty() const { return _theParticles.empty(); }
38 
39 
40  protected:
41 
43  virtual void project(const Event& e);
44 
46  virtual int compare(const Projection& p) const;
47 
48 
49  protected:
50 
52  Particles _theParticles;
53 
54  };
55 
56 }
57 
58 
59 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
virtual const Particles & particles() const
Access the projected final-state particles.
Definition: InitialQuarks.hh:34
Project out quarks from the hard process in events.
Definition: InitialQuarks.hh:17
Definition: Event.hh:22
virtual void project(const Event &e)
Apply the projection to the event.
Definition: InitialQuarks.cc:12
virtual int compare(const Projection &p) const
Compare projections.
Definition: InitialQuarks.cc:7
DEFAULT_RIVET_PROJ_CLONE(InitialQuarks)
Clone on the heap.
InitialQuarks()
Definition: InitialQuarks.hh:24
Base class for all Rivet projections.
Definition: Projection.hh:29
virtual bool empty() const
Is this final state empty?
Definition: InitialQuarks.hh:37