Rivet  1.8.3
UnstableFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_UnstableFinalState_HH
3 #define RIVET_UnstableFinalState_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 #include "Rivet/Particle.hh"
7 #include "Rivet/Event.hh"
8 
9 namespace Rivet {
10 
11 
24  class UnstableFinalState : public FinalState {
25  public:
26 
28 
29 
32  UnstableFinalState(double mineta = -MAXRAPIDITY,
33  double maxeta = MAXRAPIDITY,
34  double minpt = 0.0*GeV)
35  : FinalState(mineta,maxeta,minpt)
36  {
37  setName("UnstableFinalState");
38  }
39 
40 
42  virtual const Projection* clone() const {
43  return new UnstableFinalState(*this);
44  }
45 
47 
48  protected:
49 
51  virtual void project(const Event& e);
52 
53  };
54 
55 
56 }
57 
58 
59 #endif
UnstableFinalState(double mineta=-MAXRAPIDITY, double maxeta=MAXRAPIDITY, double minpt=0.0 *GeV)
Definition: UnstableFinalState.hh:32
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
virtual const Projection * clone() const
Clone on the heap.
Definition: UnstableFinalState.hh:42
Definition: Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Project out all physical-but-decayed particles in an event.
Definition: UnstableFinalState.hh:24
static const double MAXRAPIDITY
A sensible default maximum value of rapidity for Rivet analyses to use.
Definition: Rivet.hh:24
Base class for all Rivet projections.
Definition: Projection.hh:28
virtual void project(const Event &e)
Apply the projection to the event.
Definition: UnstableFinalState.cc:12