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
Definition: MC_JetAnalysis.hh:9
virtual const Projection * clone() const
Clone on the heap.
Definition: ChargedFinalState.hh:34
Definition: Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
void project(const Event &e)
Apply the projection on the supplied event.
Definition: ChargedFinalState.cc:40
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
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
int compare(const Projection &p) const
Compare projections.
Definition: ChargedFinalState.cc:30