Version: SMASH-2.0
bremsstrahlungaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2020 -
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 
61  void sample_3body_phasespace() override;
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_
smash
Definition: action.h:24
smash::BremsstrahlungAction::create_interpolations
void create_interpolations()
Create interpolation objects for tabularized cross sections: total cross section, differential dSigma...
Definition: bremsstrahlungaction.cc:319
smash::BremsstrahlungAction::brems_cross_sections
CollisionBranchList brems_cross_sections()
Computes the total cross section of the bremsstrahlung process.
Definition: bremsstrahlungaction.cc:178
smash::BremsstrahlungAction::is_bremsstrahlung_reaction
static bool is_bremsstrahlung_reaction(const ParticleList &in)
Check if particles can undergo an implemented photon process.
Definition: bremsstrahlungaction.h:134
smash::BremsstrahlungAction::number_of_fractional_photons_
const int number_of_fractional_photons_
Number of photons created for each hadronic scattering, needed for correct weighting.
Definition: bremsstrahlungaction.h:153
smash::BremsstrahlungAction::ReactionType::pi_z_pi_z
smash::BremsstrahlungAction::k_
double k_
Sampled value of k (photon momentum)
Definition: bremsstrahlungaction.h:165
smash::BremsstrahlungAction::brems_diff_cross_sections
std::pair< double, double > brems_diff_cross_sections()
Computes the differential cross sections dSigma/dk and dSigma/dtheta of the bremsstrahlung process.
Definition: bremsstrahlungaction.cc:270
smash::BremsstrahlungAction::bremsstrahlung_reaction_type
static ReactionType bremsstrahlung_reaction_type(const ParticleList &in)
Determine photon process from incoming particles.
Definition: bremsstrahlungaction.cc:27
smash::BremsstrahlungAction::get_total_weight
double get_total_weight() const override
Return the weight of the last created photon.
Definition: bremsstrahlungaction.h:68
smash::ScatterAction
Definition: scatteraction.h:30
smash::BremsstrahlungAction::sample_3body_phasespace
void sample_3body_phasespace() override
Sample the final state anisotropically, considering the differential cross sections with respect to t...
Definition: bremsstrahlungaction.cc:144
smash::BremsstrahlungAction::ReactionType::pi_z_pi_m
smash::BremsstrahlungAction::hadronic_cross_section
double hadronic_cross_section() const
Return the total cross section of the underlying hadronic scattering It is necessary for the weightin...
Definition: bremsstrahlungaction.h:76
smash::BremsstrahlungAction::ReactionType::pi_m_pi_m
smash::BremsstrahlungAction::add_dummy_hadronic_process
void add_dummy_hadronic_process(double reaction_cross_section)
Adds one hadronic process with a given cross-section.
Definition: bremsstrahlungaction.cc:170
smash::BremsstrahlungAction::weight_
double weight_
Weight of the produced photon.
Definition: bremsstrahlungaction.h:156
smash::BremsstrahlungAction::theta_
double theta_
Sampled value of theta (angle of the photon)
Definition: bremsstrahlungaction.h:168
smash::BremsstrahlungAction::collision_processes_bremsstrahlung_
CollisionBranchList collision_processes_bremsstrahlung_
Holds the bremsstrahlung branch.
Definition: bremsstrahlungaction.h:143
smash::BremsstrahlungAction::add_single_process
void add_single_process()
Add the photonic process.
Definition: bremsstrahlungaction.h:94
smash::BremsstrahlungAction::BremsstrahlungAction
BremsstrahlungAction(const ParticleList &in, const double time, const int n_frac_photons, const double hadronic_cross_section_input)
Construct a ScatterActionBrems object.
Definition: bremsstrahlungaction.cc:18
smash::BremsstrahlungAction::cross_section_bremsstrahlung_
double cross_section_bremsstrahlung_
Total cross section of bremsstrahlung process.
Definition: bremsstrahlungaction.h:159
smash::BremsstrahlungAction::ReactionType::pi_p_pi_m
smash::BremsstrahlungAction::ReactionType
ReactionType
Enum for encoding the photon process.
Definition: bremsstrahlungaction.h:105
smash::BremsstrahlungAction::ReactionType::pi_p_pi_p
smash::BremsstrahlungAction::reac_
const ReactionType reac_
Reaction process as determined from incoming particles.
Definition: bremsstrahlungaction.h:146
smash::BremsstrahlungAction::ReactionType::pi_z_pi_p
smash::BremsstrahlungAction
Definition: bremsstrahlungaction.h:26
scatteraction.h
smash::BremsstrahlungAction::ReactionType::no_reaction
smash::BremsstrahlungAction::perform_bremsstrahlung
void perform_bremsstrahlung(const OutputsList &outputs)
Create the final state and write to output.
Definition: bremsstrahlungaction.cc:62
smash::BremsstrahlungAction::generate_final_state
void generate_final_state() override
Generate the final-state for the Bremsstrahlung process.
Definition: bremsstrahlungaction.cc:74
smash::BremsstrahlungAction::hadronic_cross_section_
const double hadronic_cross_section_
Total hadronic cross section.
Definition: bremsstrahlungaction.h:162