rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.2
NonPromptFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_NonPromptFinalState_HH
3#define RIVET_NonPromptFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/PromptFinalState.fhh"
7
8namespace Rivet {
9
10
15 public:
16
19
20 // Constructor from a final state.
22 TauDecaysAs taudecays=TauDecaysAs::PROMPT,
23 MuDecaysAs mudecays=MuDecaysAs::PROMPT);
24
26 NonPromptFinalState(const Cut& c,
27 TauDecaysAs taudecays=TauDecaysAs::PROMPT,
28 MuDecaysAs mudecays=MuDecaysAs::PROMPT);
29
30 // /// Constructor from a Cut and optional FinalState.
31 // NonPromptFinalState(const Cut& c, const FinalState& fsp=FinalState(),
32 // TauDecaysAs taudecays=TauDecaysAs::PROMPT,
33 // MuDecaysAs mudecays=MuDecaysAs::PROMPT);
34
37
39
41 using Projection::operator =;
42
43
45 void acceptMuonDecays(bool acc=true) { _mudecays = acc; }
47 void acceptTauDecays(bool acc=true) { _taudecays = acc; }
48
49
51 void project(const Event& e);
52
54 CmpState compare(const Projection& p) const;
55
56
57 protected:
58
59 bool _mudecays, _taudecays;
60
61 };
62
63
64}
65
66#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
Find final state particles NOT directly connected to the hard process.
Definition NonPromptFinalState.hh:14
NonPromptFinalState(const Cut &c, TauDecaysAs taudecays=TauDecaysAs::PROMPT, MuDecaysAs mudecays=MuDecaysAs::PROMPT)
Constructor from a Cut (and implicit general FS).
CmpState compare(const Projection &p) const
Compare projections.
RIVET_DEFAULT_PROJ_CLONE(NonPromptFinalState)
Clone on the heap.
void acceptTauDecays(bool acc=true)
Treat particles from decays of prompt taus as non-prompt?
Definition NonPromptFinalState.hh:47
void acceptMuonDecays(bool acc=true)
Treat particles from decays of prompt muons as non-prompt?
Definition NonPromptFinalState.hh:45
void project(const Event &e)
Apply the projection on the supplied event.
Base class for all Rivet projections.
Definition Projection.hh:29
Definition MC_CENT_PPB_Projections.hh:10