Rivet  3.1.3
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  declare(fsp, "FS");
24  }
25 
27  NeutralFinalState(const Cut& c=Cuts::open()) : _Etmin(0.0*GeV) {
28  setName("NeutralFinalState");
29  declare(FinalState(c), "FS");
30  }
31 
34 
36 
37 
39  void project(const Event& e);
40 
42  CmpState compare(const Projection& p) const;
43 
44 
45  protected:
46 
49  double _Etmin;
50 
51  };
52 
53 
54 }
55 
56 
57 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:142
Definition: MC_Cent_pPb.hh:10
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Project only neutral final state particles.
Definition: NeutralFinalState.hh:11
DEFAULT_RIVET_PROJ_CLONE(NeutralFinalState)
Clone on the heap.
const Cut & open()
Fully open cut singleton, accepts everything.
NeutralFinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: NeutralFinalState.hh:27
CmpState compare(const Projection &p) const
Compare projections.
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
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 & declare(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.
Base class for all Rivet projections.
Definition: Projection.hh:29