Rivet  1.8.0
VisibleFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_VisibleFinalState_HH
3 #define RIVET_VisibleFinalState_HH
4 
5 #include "Rivet/Tools/Logging.hh"
6 #include "Rivet/Rivet.hh"
7 #include "Rivet/Particle.hh"
8 #include "Rivet/Event.hh"
9 #include "Rivet/Projection.hh"
10 #include "Rivet/Projections/FinalState.hh"
11 
12 namespace Rivet {
13 
14 
16  class VisibleFinalState : public FinalState {
17  public:
18 
20 
21 
23  VisibleFinalState(double mineta = -MAXRAPIDITY,
24  double maxeta = MAXRAPIDITY,
25  double minpt = 0.0*GeV)
26  {
27  setName("VisibleFinalState");
28  addProjection(FinalState(mineta, maxeta, minpt), "FS");
29  }
30 
33  {
34  setName("VisibleFinalState");
35  addProjection(fsp, "FS");
36  }
37 
39  virtual const Projection* clone() const {
40  return new VisibleFinalState(*this);
41  }
42 
44 
45 
46  protected:
47 
49  void project(const Event& e);
50 
52  int compare(const Projection& p) const;
53 
54  };
55 
56 
57 }
58 
59 #endif