Version: SMASH-3.1
decayactiondilepton.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2015-2022
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 
48  void sample_manybody_phasespace() override;
49 
50  private:
56  const double shining_weight_;
65  double branching_ = 1.;
66 };
67 
68 } // namespace smash
69 
70 #endif // SRC_INCLUDE_SMASH_DECAYACTIONDILEPTON_H_
double time_of_execution() const
Get the time at which the action is supposed to be performed.
Definition: action.h:254
DecayActionDilepton is special action created for particles that can decay into dileptons.
double get_total_weight() const override
Return the total width of the decay process.
void sample_manybody_phasespace() override
Generates momenta of outgoing dileptons (for Dalitz dilepton decays only).
double branching_
An additional branching factor that is multiplied with the shining weight.
DecayActionDilepton(const ParticleData &p, double time_of_execution, double shining_weight)
Construct a DecayActionDilepton from a particle p.
const double shining_weight_
The shining weight is a weight you apply to every dilepton decay.
DecayAction is a special action which takes one single particle in the initial state and makes it dec...
Definition: decayaction.h:25
ParticleData contains the dynamic information of a certain particle.
Definition: particledata.h:58
constexpr int p
Proton.
Definition: action.h:24