Rivet 3.1.9
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
12namespace Rivet {
13
14
17 public:
18
20
21
23 InvisibleFinalState(bool requirepromptness=false, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false)
24 : _requirePromptness(requirepromptness),
25 _allow_from_direct_tau(allow_from_direct_tau),
26 _allow_from_direct_mu(allow_from_direct_mu)
27 {
28 setName("InvisibleFinalState");
29 declare(FinalState(), "FS");
30 }
31
34
36
38 using Projection::operator =;
39
40
42 void requirePromptness(bool acc=true, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false) {
43 _requirePromptness = acc;
44 _allow_from_direct_tau = allow_from_direct_tau;
45 _allow_from_direct_mu = allow_from_direct_mu;
46 }
47
49 void project(const Event& e);
50
52 CmpState compare(const Projection& p) const;
53
54
55 protected:
56
57 bool _requirePromptness, _allow_from_direct_tau, _allow_from_direct_mu;
58 };
59
60
61}
62
63#endif
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
Final state modifier excluding particles which are experimentally visible.
Definition InvisibleFinalState.hh:16
void requirePromptness(bool acc=true, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false)
Require accepted particles to be prompt.
Definition InvisibleFinalState.hh:42
void project(const Event &e)
Apply the projection on the supplied event.
InvisibleFinalState(bool requirepromptness=false, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false)
Constructor with specific FinalState.
Definition InvisibleFinalState.hh:23
CmpState compare(const Projection &p) const
Compare projections.
DEFAULT_RIVET_PROJ_CLONE(InvisibleFinalState)
Clone on the heap.
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Definition MC_Cent_pPb.hh:10