Rivet  1.8.3
HadronicFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_HadronicFinalState_HH
3 #define RIVET_HadronicFinalState_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 
13 namespace Rivet {
14 
16  class HadronicFinalState : public FinalState {
17 
18  public:
19 
22  {
23  setName("HadronicFinalState");
24  addProjection(fsp, "FS");
25  }
26 
27  HadronicFinalState(double mineta = -MAXRAPIDITY,
28  double maxeta = MAXRAPIDITY,
29  double minpt = 0.0*GeV)
30  {
31  setName("HadronicFinalState");
32  addProjection(FinalState(mineta, maxeta, minpt), "FS");
33  }
34 
36  virtual const Projection* clone() const {
37  return new HadronicFinalState(*this);
38  }
39 
40  protected:
41 
43  void project(const Event& e);
44 
46  int compare(const Projection& p) const;
47 
48  };
49 
50 
51 }
52 
53 
54 #endif