Version: SMASH-1.5
scatteractionphoton.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SCATTERACTIONPHOTON_H_
11 #define SRC_INCLUDE_SCATTERACTIONPHOTON_H_
12 
13 #include <utility>
14 
15 #include "scatteraction.h"
16 
17 namespace smash {
18 
28  public:
41  ScatterActionPhoton(const ParticleList &in, const double time,
42  const int n_frac_photons,
43  const double hadronic_cross_section_input);
44 
51  void perform_photons(const OutputsList &outputs);
52 
57  void generate_final_state() override;
58 
64  double get_total_weight() const override { return weight_; }
65 
72 
82  double sample_out_hadron_mass(const ParticleTypePtr out_type);
83 
94  void add_dummy_hadronic_process(double reaction_cross_section);
95 
101  add_processes<CollisionBranch>(photon_cross_sections(),
104  }
105 
112  enum class ReactionType {
113  no_reaction,
124  };
125 
135  static ReactionType photon_reaction_type(const ParticleList &in);
136 
145  static bool is_photon_reaction(const ParticleList &in) {
147  }
148 
159  static ParticleTypePtr outgoing_hadron_type(const ParticleList &in);
160 
171  static ParticleTypePtr outgoing_hadron_type(const ReactionType reaction);
172 
180  static bool is_kinematically_possible(const double s_sqrt,
181  const ParticleList &in);
182 
183  private:
188  CollisionBranchList collision_processes_photons_;
189 
192 
199 
202 
204  const double hadron_out_mass_;
205 
215  enum class MediatorType { SUM, PION, OMEGA };
218 
220  double weight_ = 0.0;
221 
224 
227 
238  double diff_cross_section(const double t, const double m_rho,
239  MediatorType mediator = default_mediator_) const;
240 
252  double rho_mass() const;
253 
260  CollisionBranchList photon_cross_sections(
261  MediatorType mediator = default_mediator_);
262 
275  std::pair<double, double> diff_cross_section_single(const double t,
276  const double m_rho);
277 
289  std::pair<double, double> form_factor_single(const double E_photon);
290 
300  double form_factor_pion(const double E_photon) const;
301 
311  double form_factor_omega(const double E_photon) const;
312 
325  double diff_cross_section_w_ff(const double t, const double m_rho,
326  const double E_photon);
327 };
328 
329 } // namespace smash
330 
331 #endif // SRC_INCLUDE_SCATTERACTIONPHOTON_H_
void generate_final_state() override
Generate the final-state for the photon scatter process.
void add_single_process()
Add the photonic process.
static ParticleTypePtr outgoing_hadron_type(const ParticleList &in)
Return ParticleTypePtr of hadron in the out channel, given the incoming particles.
double diff_cross_section(const double t, const double m_rho, MediatorType mediator=default_mediator_) const
Calculate the differential cross section of photon process.
double hadronic_cross_section() const
Return the total cross section of the underlying hadronic scattering.
MediatorType
Compile-time switch for setting the handling of processes which can happen via different mediating pa...
double weight_
Weight of the produced photon.
const double hadronic_cross_section_
Total hadronic cross section.
double cross_section_photons_
Total cross section of photonic process.
ScatterActionPhoton(const ParticleList &in, const double time, const int n_frac_photons, const double hadronic_cross_section_input)
Construct a ScatterActionPhoton object.
const int number_of_fractional_photons_
Number of photons created for each hadronic scattering, needed for correct weighting.
double get_total_weight() const override
Return the weight of the last created photon.
CollisionBranchList collision_processes_photons_
Holds the photon branch.
static bool is_kinematically_possible(const double s_sqrt, const ParticleList &in)
Check if CM-energy is sufficient to produce hadron in final state.
static constexpr MediatorType default_mediator_
Value used for default exchange particle. See MediatorType.
const ReactionType reac_
Photonic process as determined from incoming particles.
double form_factor_omega(const double E_photon) const
Compute the form factor for a process with a omega as the lightest exchange particle.
double sample_out_hadron_mass(const ParticleTypePtr out_type)
Sample the mass of the outgoing hadron.
std::pair< double, double > diff_cross_section_single(const double t, const double m_rho)
For processes which can happen via (pi, a1, rho) and omega exchange, return the differential cross se...
void perform_photons(const OutputsList &outputs)
Create the photon final state and write to output.
void add_dummy_hadronic_process(double reaction_cross_section)
Adds one hadronic process with a given cross-section.
ScatterActionPhoton is a special action which takes two incoming particles and performs a perturbativ...
ReactionType
Enum for encoding the photon process.
CollisionBranchList photon_cross_sections(MediatorType mediator=default_mediator_)
Computes the total cross section of the photon process.
const double hadron_out_mass_
Mass of outgoing hadron.
std::pair< double, double > form_factor_single(const double E_photon)
For processes which can happen via (pi, a1, rho) and omega exchange, return the form factor for the (...
double diff_cross_section_w_ff(const double t, const double m_rho, const double E_photon)
Compute the differential cross section with form factors included.
A pointer-like interface to global references to ParticleType objects.
Definition: particletype.h:660
double rho_mass() const
Find the mass of the participating rho-particle.
double form_factor_pion(const double E_photon) const
Compute the form factor for a process with a pion as the lightest exchange particle.
static bool is_photon_reaction(const ParticleList &in)
Check if particles can undergo an implemented photon process.
ScatterAction is a special action which takes two incoming particles and performs a scattering...
Definition: scatteraction.h:31
const ParticleTypePtr hadron_out_t_
ParticleTypePtr to the type of the outgoing hadron.
static ReactionType photon_reaction_type(const ParticleList &in)
Determine photon process from incoming particles.
Definition: action.h:24