rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
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#include "Rivet/Projections/PromptFinalState.hh"
12
13namespace Rivet {
14
15
16 enum class OnlyPrompt { YES, NO };
17
18
21 public:
22
25
27 InvisibleFinalState(OnlyPrompt requirepromptness=OnlyPrompt::NO,
28 TauDecaysAs taudecays=TauDecaysAs::NONPROMPT,
29 MuDecaysAs mudecays=MuDecaysAs::NONPROMPT)
30 : _requirePromptness(requirepromptness == OnlyPrompt::YES),
31 _taudecays(taudecays == TauDecaysAs::PROMPT),
32 _mudecays(mudecays == MuDecaysAs::PROMPT)
33 {
34 setName("InvisibleFinalState");
35 declare(FinalState(), "FS");
36 }
37
40
42
44 using Projection::operator =;
45
46
48 void requirePromptness(bool acc=true,
49 TauDecaysAs taudecays=TauDecaysAs::NONPROMPT,
50 MuDecaysAs mudecays=MuDecaysAs::NONPROMPT) {
51 _requirePromptness = acc;
52 _taudecays = (taudecays == TauDecaysAs::PROMPT);
53 _mudecays = (mudecays == MuDecaysAs::PROMPT);
54 }
55
57 void project(const Event& e);
58
60 CmpState compare(const Projection& p) const;
61
62
63 protected:
64
65 bool _requirePromptness, _taudecays, _mudecays;
66 };
67
68
69}
70
71#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:20
void requirePromptness(bool acc=true, TauDecaysAs taudecays=TauDecaysAs::NONPROMPT, MuDecaysAs mudecays=MuDecaysAs::NONPROMPT)
Require accepted particles to be prompt.
Definition InvisibleFinalState.hh:48
void project(const Event &e)
Apply the projection on the supplied event.
CmpState compare(const Projection &p) const
Compare projections.
InvisibleFinalState(OnlyPrompt requirepromptness=OnlyPrompt::NO, TauDecaysAs taudecays=TauDecaysAs::NONPROMPT, MuDecaysAs mudecays=MuDecaysAs::NONPROMPT)
Constructor with specific FinalState.
Definition InvisibleFinalState.hh:27
RIVET_DEFAULT_PROJ_CLONE(InvisibleFinalState)
Clone on the heap.
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
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:148
Definition MC_CENT_PPB_Projections.hh:10