Rivet 3.1.9
NonPromptFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_NonPromptFinalState_HH
3#define RIVET_NonPromptFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6
7namespace Rivet {
8
9
14 public:
15
17
18
19 // Constructor from a final state.
20 NonPromptFinalState(const FinalState& fsp, bool accepttaudecays=false, bool acceptmudecays=false);
21
23 NonPromptFinalState(const Cut& c, bool accepttaudecays=false, bool acceptmudecays=false);
24
25 // /// Constructor from a Cut and optional FinalState.
26 // NonPromptFinalState(const Cut& c, const FinalState& fsp=FinalState(),
27 // bool accepttaudecays=false, bool acceptmudecays=false);
28
31
33
35 using Projection::operator =;
36
37
39 void acceptMuonDecays(bool acc=true) { _acceptMuDecays = acc; }
41 void acceptTauDecays(bool acc=true) { _acceptTauDecays = acc; }
42
43
45 void project(const Event& e);
46
48 CmpState compare(const Projection& p) const;
49
50
51 protected:
52
53 bool _acceptMuDecays, _acceptTauDecays;
54
55 };
56
57
58}
59
60#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:13
DEFAULT_RIVET_PROJ_CLONE(NonPromptFinalState)
Clone on the heap.
NonPromptFinalState(const Cut &c, bool accepttaudecays=false, bool acceptmudecays=false)
Constructor from a Cut (and implicit general FS).
CmpState compare(const Projection &p) const
Compare projections.
void acceptTauDecays(bool acc=true)
Treat particles from decays of prompt taus as non-prompt?
Definition NonPromptFinalState.hh:41
void acceptMuonDecays(bool acc=true)
Treat particles from decays of prompt muons as non-prompt?
Definition NonPromptFinalState.hh:39
void project(const Event &e)
Apply the projection on the supplied event.
Base class for all Rivet projections.
Definition Projection.hh:29
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Definition MC_Cent_pPb.hh:10