Rivet  3.1.4
PromptFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_PromptFinalState_HH
3 #define RIVET_PromptFinalState_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 
7 namespace Rivet {
8 
9 
24  class PromptFinalState : public FinalState {
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  void acceptMuonDecays(bool acc=true) { _acceptMuDecays = acc; }
50  void acceptTauDecays(bool acc=true) { _acceptTauDecays = acc; }
51 
52 
54  void project(const Event& e);
55 
57  CmpState compare(const Projection& p) const;
58 
59 
60  private:
61 
62  bool _acceptMuDecays, _acceptTauDecays;
63 
64  };
65 
66 
67 }
68 
69 #endif
Definition: MC_Cent_pPb.hh:10
void project(const Event &e)
Apply the projection on the supplied event.
void acceptMuonDecays(bool acc=true)
Accept leptons from decays of prompt muons as themselves being prompt?
Definition: PromptFinalState.hh:48
PromptFinalState(bool accepttaudecays=false, bool acceptmudecays=false)
Constructor without cuts.
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
void acceptTauDecays(bool acc=true)
Accept leptons from decays of prompt taus as themselves being prompt?
Definition: PromptFinalState.hh:50
CmpState compare(const Projection &p) const
Compare projections.
DEFAULT_RIVET_PROJ_CLONE(PromptFinalState)
Clone on the heap.
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