rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
NonPromptFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_NonPromptFinalState_HH
3 #define RIVET_NonPromptFinalState_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 
7 namespace 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  int compare(const Projection& p) const;
45 
46  private:
47 
48  bool _acceptMuDecays, _acceptTauDecays;
49 
50  };
51 
52 
53 }
54 
55 #endif
Definition: ALICE_2010_I880049.cc:13
void acceptTauDecays(bool acc=true)
Treat particles from decays of prompt taus as non-prompt?
Definition: NonPromptFinalState.hh:37
DEFAULT_RIVET_PROJ_CLONE(NonPromptFinalState)
Clone on the heap.
Find final state particles NOT directly connected to the hard process.
Definition: NonPromptFinalState.hh:13
void acceptMuonDecays(bool acc=true)
Treat particles from decays of prompt muons as non-prompt?
Definition: NonPromptFinalState.hh:35
int compare(const Projection &p) const
Compare projections.
Definition: NonPromptFinalState.cc:23
Definition: Event.hh:22
void project(const Event &e)
Apply the projection on the supplied event.
Definition: NonPromptFinalState.cc:31
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