rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
NeutralFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_NeutralFinalState_HH
3 #define RIVET_NeutralFinalState_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 
7 namespace Rivet {
8 
9 
11  class NeutralFinalState : public FinalState {
12 
13  public:
14 
16 
17 
19  NeutralFinalState(const FinalState& fsp, double etmin=0*GeV)
20  : _Etmin(etmin)
21  {
22  setName("NeutralFinalState");
23  addProjection(fsp, "FS");
24  }
25 
27  NeutralFinalState(const Cut& c=Cuts::open()) : _Etmin(0.0*GeV) {
28  setName("NeutralFinalState");
29  addProjection(FinalState(c), "FS");
30  }
31 
33  NeutralFinalState(double mineta, double maxeta, double etmin=0*GeV)
34  : _Etmin(etmin)
35  {
36  setName("NeutralFinalState");
37  addProjection(FinalState(mineta, maxeta, 0.0*GeV), "FS");
38  }
39 
42 
44 
45 
47  void project(const Event& e);
48 
50  int compare(const Projection& p) const;
51 
52 
53  protected:
54 
57  double _Etmin;
58 
59  };
60 
61 
62 }
63 
64 
65 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
NeutralFinalState(double mineta, double maxeta, double etmin=0 *GeV)
Construction from explicit eta range and min ET cut values.
Definition: NeutralFinalState.hh:33
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: FinalState.cc:7
Project only neutral final state particles.
Definition: NeutralFinalState.hh:11
DEFAULT_RIVET_PROJ_CLONE(NeutralFinalState)
Clone on the heap.
NeutralFinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: NeutralFinalState.hh:27
Definition: Event.hh:22
const Cut & open()
Fully open cut singleton, accepts everything.
Definition: Cuts.cc:81
NeutralFinalState(const FinalState &fsp, double etmin=0 *GeV)
Construction from another FinalState.
Definition: NeutralFinalState.hh:19
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
void project(const Event &e)
Apply the projection on the supplied event.
Definition: NeutralFinalState.cc:13
Base class for all Rivet projections.
Definition: Projection.hh:29
int compare(const Projection &p) const
Compare projections.
Definition: NeutralFinalState.cc:7