Rivet 3.1.9
PromptFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_PromptFinalState_HH
3#define RIVET_PromptFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6
7namespace Rivet {
8
9
25 public:
26
28
29
31 PromptFinalState(bool accepttaudecays=false, bool acceptmudecays=false);
32
34 PromptFinalState(const Cut& c, bool accepttaudecays=false, bool acceptmudecays=false);
35
36 // Constructor from a FinalState
37 PromptFinalState(const FinalState& fsp, bool accepttaudecays=false, bool acceptmudecays=false);
38
39 // /// Constructor from a Cut and optional FinalState.
40 // PromptFinalState(const Cut& c, const FinalState& fsp=FinalState(), bool accepttaudecays, bool acceptmudecays);
41
44
46
48 using Projection::operator =;
49
50
52 void acceptMuonDecays(bool acc=true) { _acceptMuDecays = acc; }
54 void acceptTauDecays(bool acc=true) { _acceptTauDecays = acc; }
55
56
58 void project(const Event& e);
59
61 CmpState compare(const Projection& p) const;
62
63
64 protected:
65
66 bool _acceptMuDecays, _acceptTauDecays;
67
68 };
69
70
71}
72
73#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
Base class for all Rivet projections.
Definition Projection.hh:29
Find final state particles directly connected to the hard process.
Definition PromptFinalState.hh:24
PromptFinalState(const Cut &c, bool accepttaudecays=false, bool acceptmudecays=false)
Constructor from a Cut.
void acceptTauDecays(bool acc=true)
Accept leptons from decays of prompt taus as themselves being prompt?
Definition PromptFinalState.hh:54
void project(const Event &e)
Apply the projection on the supplied event.
PromptFinalState(bool accepttaudecays=false, bool acceptmudecays=false)
Constructor without cuts.
DEFAULT_RIVET_PROJ_CLONE(PromptFinalState)
Clone on the heap.
CmpState compare(const Projection &p) const
Compare projections.
void acceptMuonDecays(bool acc=true)
Accept leptons from decays of prompt muons as themselves being prompt?
Definition PromptFinalState.hh:52
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Definition MC_Cent_pPb.hh:10