Version: SMASH-3.1
bremsstrahlungaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019-2022
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_BREMSSTRAHLUNGACTION_H_
11 #define SRC_INCLUDE_SMASH_BREMSSTRAHLUNGACTION_H_
12 
13 #include <utility>
14 
15 #include "scatteraction.h"
16 
17 namespace smash {
27  public:
40  BremsstrahlungAction(const ParticleList &in, const double time,
41  const int n_frac_photons,
42  const double hadronic_cross_section_input);
49  void perform_bremsstrahlung(const OutputsList &outputs);
50 
55  void generate_final_state() override;
56 
62 
68  double get_total_weight() const override { return weight_; }
69 
77 
88  void add_dummy_hadronic_process(double reaction_cross_section);
89 
95  add_processes<CollisionBranch>(brems_cross_sections(),
98  }
99 
105  enum class ReactionType {
106  no_reaction,
107  pi_z_pi_m,
108  pi_z_pi_p,
109  pi_p_pi_m,
110  pi_m_pi_m,
111  pi_p_pi_p,
112  pi_z_pi_z
113  };
114 
124  static ReactionType bremsstrahlung_reaction_type(const ParticleList &in);
125 
134  static bool is_bremsstrahlung_reaction(const ParticleList &in) {
136  }
137 
138  private:
144 
147 
154 
156  double weight_ = 0.0;
157 
160 
163 
165  double k_;
166 
168  double theta_;
169 
174  void create_interpolations();
175 
181  CollisionBranchList brems_cross_sections();
182 
190  std::pair<double, double> brems_diff_cross_sections();
191 };
192 
193 } // namespace smash
194 
195 #endif // SRC_INCLUDE_SMASH_BREMSSTRAHLUNGACTION_H_
BremsAction is a special action which takes two incoming particles and performs a perturbative scatte...
void sample_3body_phasespace()
Sample the final state anisotropically, considering the differential cross sections with respect to t...
ReactionType
Enum for encoding the photon process.
const ReactionType reac_
Reaction process as determined from incoming particles.
double k_
Sampled value of k (photon momentum)
const int number_of_fractional_photons_
Number of photons created for each hadronic scattering, needed for correct weighting.
void add_dummy_hadronic_process(double reaction_cross_section)
Adds one hadronic process with a given cross-section.
void generate_final_state() override
Generate the final-state for the Bremsstrahlung process.
static ReactionType bremsstrahlung_reaction_type(const ParticleList &in)
Determine photon process from incoming particles.
double cross_section_bremsstrahlung_
Total cross section of bremsstrahlung process.
BremsstrahlungAction(const ParticleList &in, const double time, const int n_frac_photons, const double hadronic_cross_section_input)
Construct a ScatterActionBrems object.
void add_single_process()
Add the photonic process.
void perform_bremsstrahlung(const OutputsList &outputs)
Create the final state and write to output.
double get_total_weight() const override
Return the weight of the last created photon.
const double hadronic_cross_section_
Total hadronic cross section.
CollisionBranchList brems_cross_sections()
Computes the total cross section of the bremsstrahlung process.
double hadronic_cross_section() const
Return the total cross section of the underlying hadronic scattering It is necessary for the weightin...
CollisionBranchList collision_processes_bremsstrahlung_
Holds the bremsstrahlung branch.
double weight_
Weight of the produced photon.
void create_interpolations()
Create interpolation objects for tabularized cross sections: total cross section, differential dSigma...
double theta_
Sampled value of theta (angle of the photon)
static bool is_bremsstrahlung_reaction(const ParticleList &in)
Check if particles can undergo an implemented photon process.
std::pair< double, double > brems_diff_cross_sections()
Computes the differential cross sections dSigma/dk and dSigma/dtheta of the bremsstrahlung process.
ScatterAction is a special action which takes two incoming particles and performs a scattering,...
Definition: scatteraction.h:30
Definition: action.h:24