Version: SMASH-2.0
decayactiondilepton.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2015-2020
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_DECAYACTIONDILEPTON_H_
11 #define SRC_INCLUDE_SMASH_DECAYACTIONDILEPTON_H_
12 
13 #include "decayaction.h"
14 
15 namespace smash {
16 
25  public:
39  double shining_weight);
40 
41  double get_total_weight() const override {
42  return shining_weight_ * branching_;
43  }
44 
45  void sample_3body_phasespace() override;
46 
47  private:
53  const double shining_weight_;
62  double branching_ = 1.;
63 };
64 
65 } // namespace smash
66 
67 #endif // SRC_INCLUDE_SMASH_DECAYACTIONDILEPTON_H_
smash
Definition: action.h:24
smash::DecayActionDilepton::branching_
double branching_
An additional branching factor that is multiplied with the shining weight.
Definition: decayactiondilepton.h:62
smash::DecayAction
Definition: decayaction.h:25
smash::ParticleData
Definition: particledata.h:52
smash::DecayActionDilepton::shining_weight_
const double shining_weight_
The shining weight is a weight you apply to every dilepton decay.
Definition: decayactiondilepton.h:53
decayaction.h
smash::DecayActionDilepton::DecayActionDilepton
DecayActionDilepton(const ParticleData &p, double time_of_execution, double shining_weight)
Construct a DecayActionDilepton from a particle p.
Definition: decayactiondilepton.cc:16
smash::DecayActionDilepton::get_total_weight
double get_total_weight() const override
Return the total width of the decay process.
Definition: decayactiondilepton.h:41
smash::DecayActionDilepton
Definition: decayactiondilepton.h:24
smash::Action::time_of_execution
double time_of_execution() const
Get the time at which the action is supposed to be performed.
Definition: action.h:252
smash::pdg::p
constexpr int p
Proton.
Definition: pdgcode_constants.h:28
smash::DecayActionDilepton::sample_3body_phasespace
void sample_3body_phasespace() override
Sample the full 3-body phase-space (masses, momenta, angles) in the center-of-mass frame for the fina...
Definition: decayactiondilepton.cc:20