Rivet  1.8.3
ChargedFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_ChargedFinalState_HH
3 #define RIVET_ChargedFinalState_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 ChargedFinalState : public FinalState {
17  public:
18 
20 
21  ChargedFinalState(const FinalState& fsp);
22 
24  ChargedFinalState(double mineta = -MAXRAPIDITY,
25  double maxeta = MAXRAPIDITY,
26  double minpt = 0.0*GeV);
27 
30  ChargedFinalState(const vector<pair<double, double> >& etaRanges,
31  double minpt = 0.0*GeV);
32 
34  virtual const Projection* clone() const {
35  return new ChargedFinalState(*this);
36  }
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 #endif