Rivet  3.1.2
InvisibleFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_InvisibleFinalState_HH
3 #define RIVET_InvisibleFinalState_HH
4 
5 #include "Rivet/Tools/Logging.hh"
6 #include "Rivet/Config/RivetCommon.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 
17  public:
18 
20 
21 
23  InvisibleFinalState(bool requirepromptness=false)
24  : _requirePromptness(requirepromptness)
25  {
26  setName("InvisibleFinalState");
27  declare(FinalState(), "FS");
28  }
29 
32 
34 
36  void requirePromptness(bool acc=true) { _requirePromptness = acc; }
37 
39  void project(const Event& e);
40 
42  CmpState compare(const Projection& p) const;
43 
44  private:
45 
46  bool _requirePromptness;
47  };
48 
49 
50 }
51 
52 #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.
void project(const Event &e)
Apply the projection on the supplied event.
CmpState compare(const Projection &p) const
Compare projections.
InvisibleFinalState(bool requirepromptness=false)
Constructor with specific FinalState.
Definition: InvisibleFinalState.hh:23
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
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 requirePromptness(bool acc=true)
Require accepted particles to be prompt.
Definition: InvisibleFinalState.hh:36
DEFAULT_RIVET_PROJ_CLONE(InvisibleFinalState)
Clone on the heap.
Base class for all Rivet projections.
Definition: Projection.hh:29
Final state modifier excluding particles which are experimentally visible.
Definition: InvisibleFinalState.hh:16