2#ifndef RIVET_InvisibleFinalState_HH
3#define RIVET_InvisibleFinalState_HH
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"
16 enum class OnlyPrompt { YES, 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)
44 using Projection::operator =;
49 TauDecaysAs taudecays=TauDecaysAs::NONPROMPT,
50 MuDecaysAs mudecays=MuDecaysAs::NONPROMPT) {
51 _requirePromptness = acc;
52 _taudecays = (taudecays == TauDecaysAs::PROMPT);
53 _mudecays = (mudecays == MuDecaysAs::PROMPT);
65 bool _requirePromptness, _taudecays, _mudecays;
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