rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
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 void acceptMuonDecays(bool acc=true) { _acceptMuDecays = acc; }
37 void acceptTauDecays(bool acc=true) { _acceptTauDecays = acc; }
38
39
41 void project(const Event& e);
42
44 CmpState compare(const Projection& p) const;
45
46 private:
47
48 bool _acceptMuDecays, _acceptTauDecays;
49
50 };
51
52
53}
54
55#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:37
void acceptMuonDecays(bool acc=true)
Treat particles from decays of prompt muons as non-prompt?
Definition: NonPromptFinalState.hh:35
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:653
Definition: MC_Cent_pPb.hh:10