Version: SMASH-2.2
crosssections.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_CROSSSECTIONS_H_
11 #define SRC_INCLUDE_SMASH_CROSSSECTIONS_H_
12 
13 #include <memory>
14 #include <utility>
15 
16 #include "forwarddeclarations.h"
17 #include "isoparticletype.h"
18 #include "particles.h"
19 #include "potential_globals.h"
20 #include "stringprocess.h"
21 
22 namespace smash {
23 
25 namespace transit_high_energy {
27 const std::array<double, 2> sqrts_range_Npi = {1.9, 2.2};
33 const std::array<double, 2> sqrts_range_NN = {3.5, 4.5};
38 const double sqrts_add_lower = 0.9;
43 const double sqrts_range = 1.0;
44 
50 const double pipi_offset = 1.12;
51 
56 const double KN_offset = 15.15;
57 } // namespace transit_high_energy
58 
66  public:
75  CrossSections(const ParticleList& incoming_particles, const double sqrt_s,
76  const std::pair<FourVector, FourVector> potentials);
77 
104  CollisionBranchList generate_collision_list(
105  double elastic_parameter, bool two_to_one_switch,
106  ReactionsBitSet included_2to2,
107  MultiParticleReactionsBitSet included_multi, double low_snn_cut,
108  bool strings_switch, bool use_AQM, bool strings_with_probability,
109  NNbarTreatment nnbar_treatment, StringProcess* string_process,
110  double scale_xs, double additional_el_xs) const;
111 
116  static double sum_xs_of(const CollisionBranchList& list) {
117  double xs_sum = 0.0;
118  for (auto& proc : list) {
119  xs_sum += proc->weight();
120  }
121  return xs_sum;
122  }
123 
142  CollisionBranchPtr elastic(double elast_par, bool use_AQM, double add_el_xs,
143  double scale_xs) const;
144 
157  CollisionBranchList two_to_one() const;
158 
170  double formation(const ParticleType& type_resonance,
171  double cm_momentum_sqr) const;
172 
184  CollisionBranchList rare_two_to_two() const;
185 
195  CollisionBranchList two_to_two(ReactionsBitSet included_2to2) const;
196 
205  CollisionBranchList two_to_three() const;
206 
215  CollisionBranchList two_to_four() const;
216 
237  CollisionBranchList string_excitation(double total_string_xs,
238  StringProcess* string_process,
239  bool use_AQM) const;
240 
255  CollisionBranchPtr NNbar_annihilation(const double current_xs,
256  const double scale_xs) const;
257 
265  CollisionBranchList NNbar_creation() const;
266 
276  CollisionBranchPtr NNbar_to_5pi(const double scale_xs) const;
277 
285  static double d_pi_inelastic_xs(double pion_kinetic_energy);
286 
294  static double d_N_inelastic_xs(double N_kinetic_energy);
295 
303  static double d_aN_inelastic_xs(double aN_kinetic_energy);
304 
321  static double two_to_three_xs(const ParticleType& type_in1,
322  const ParticleType& type_in2, double sqrts);
323 
335  static double two_to_four_xs(const ParticleType& type_in1,
336  const ParticleType& type_in2, double sqrts);
337 
345  double high_energy() const;
346 
388  double string_probability(bool strings_switch,
389  bool use_transition_probability, bool use_AQM,
390  bool treat_nnbar_with_strings) const;
391 
397  double probability_transit_high(const double region_lower,
398  const double region_upper) const;
399 
400  private:
408  double elastic_parametrization(bool use_AQM) const;
409 
418  double nn_el() const;
419 
430  double npi_el() const;
431 
442  double nk_el() const;
443 
452  CollisionBranchList npi_yk() const;
453 
460  CollisionBranchList bb_xx_except_nn(ReactionsBitSet included_2to2) const;
461 
478  CollisionBranchList nn_xx(ReactionsBitSet included_2to2) const;
479 
486  CollisionBranchList nk_xx(ReactionsBitSet included_2to2) const;
487 
493  CollisionBranchList deltak_xx(ReactionsBitSet included_2to2) const;
494 
500  CollisionBranchList ypi_xx(ReactionsBitSet included_2to2) const;
501 
509  CollisionBranchList dpi_xx(ReactionsBitSet included_2to2) const;
510 
518  CollisionBranchList dn_xx(ReactionsBitSet included_2to2) const;
519 
529  static double xs_dpi_dprimepi(const double sqrts, const double cm_mom,
530  ParticleTypePtr produced_nucleus,
531  const ParticleType& type_pi);
532 
543  static double xs_dn_dprimen(const double sqrts, const double cm_mom,
544  ParticleTypePtr produced_nucleus,
545  const ParticleType& type_nucleus,
546  const ParticleType& type_N);
547 
554  double string_hard_cross_section() const;
555 
567  CollisionBranchList bar_bar_to_nuc_nuc(const bool is_anti_particles) const;
568 
581  static double nn_to_resonance_matrix_element(double sqrts,
582  const ParticleType& type_a,
583  const ParticleType& type_b,
584  const int twoI);
585 
595  template <class IntegrationMethod>
596  CollisionBranchList find_nn_xsection_from_type(
597  const ParticleTypePtrList& type_res_1,
598  const ParticleTypePtrList& type_res_2,
599  const IntegrationMethod integrator) const;
600 
606  double cm_momentum() const {
607  const double m1 = incoming_particles_[0].effective_mass();
608  const double m2 = incoming_particles_[1].effective_mass();
609  return pCM(sqrt_s_, m1, m2);
610  }
611 
613  const ParticleList incoming_particles_;
614 
616  const double sqrt_s_;
617 
622  const std::pair<FourVector, FourVector> potentials_;
623 
628  const bool is_BBbar_pair_;
629 
631  const bool is_NNbar_pair_;
632 
640  template <typename F>
641  void add_channel(CollisionBranchList& process_list, F&& get_xsection,
642  double sqrts, const ParticleType& type_a,
643  const ParticleType& type_b) const {
644  const double sqrt_s_min =
645  type_a.min_mass_spectral() + type_b.min_mass_spectral();
646  /* Determine wether the process is below the threshold. */
647  double scale_B = 0.0;
648  double scale_I3 = 0.0;
649  bool is_below_threshold;
650  FourVector incoming_momentum = FourVector();
651  if (pot_pointer != nullptr) {
652  for (const auto& p : incoming_particles_) {
653  incoming_momentum += p.momentum();
654  scale_B += pot_pointer->force_scale(p.type()).first;
655  scale_I3 +=
656  pot_pointer->force_scale(p.type()).second * p.type().isospin3_rel();
657  }
658  scale_B -= pot_pointer->force_scale(type_a).first;
659  scale_I3 -=
660  pot_pointer->force_scale(type_a).second * type_a.isospin3_rel();
661  scale_B -= pot_pointer->force_scale(type_b).first;
662  scale_I3 -=
663  pot_pointer->force_scale(type_b).second * type_b.isospin3_rel();
664  is_below_threshold = (incoming_momentum + potentials_.first * scale_B +
665  potentials_.second * scale_I3)
666  .abs() <= sqrt_s_min;
667  } else {
668  is_below_threshold = (sqrts <= sqrt_s_min);
669  }
670  if (is_below_threshold) {
671  return;
672  }
673  const auto xsection = get_xsection();
674  if (xsection > really_small) {
675  process_list.push_back(make_unique<CollisionBranch>(
676  type_a, type_b, xsection, ProcessType::TwoToTwo));
677  }
678  }
679 };
680 
681 } // namespace smash
682 
683 #endif // SRC_INCLUDE_SMASH_CROSSSECTIONS_H_
The cross section class assembels everything that is needed to calculate the cross section and return...
Definition: crosssections.h:65
const double sqrt_s_
Total energy in the center-of-mass frame.
static double d_N_inelastic_xs(double N_kinetic_energy)
Parametrization of deuteron-nucleon inelastic cross section.
CollisionBranchList NNbar_creation() const
Determine the cross section for NNbar creation, which is given by detailed balance from the reverse r...
CollisionBranchList npi_yk() const
Find all processes for Nucleon-Pion to Hyperon-Kaon Scattering.
double string_probability(bool strings_switch, bool use_transition_probability, bool use_AQM, bool treat_nnbar_with_strings) const
CollisionBranchList find_nn_xsection_from_type(const ParticleTypePtrList &type_res_1, const ParticleTypePtrList &type_res_2, const IntegrationMethod integrator) const
Utility function to avoid code replication in nn_xx().
double high_energy() const
Determine the parametrized total cross section at high energies for the given collision,...
CollisionBranchPtr NNbar_to_5pi(const double scale_xs) const
Create collision branch for NNbar annihilation going directly into 5 pions.
CollisionBranchList nn_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes for Nucelon-Nucelon Scattering.
double cm_momentum() const
Determine the momenta of the incoming particles in the center-of-mass system.
CollisionBranchList bar_bar_to_nuc_nuc(const bool is_anti_particles) const
Calculate cross sections for resonance absorption (i.e.
CollisionBranchList bb_xx_except_nn(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes for Baryon-Baryon (BB) Scattering except the more specific Nucleon-...
CollisionBranchList string_excitation(double total_string_xs, StringProcess *string_process, bool use_AQM) const
Determine the cross section for string excitations, which is given by the difference between the para...
CollisionBranchList dpi_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes involving Pion and (anti-) Deuteron (dpi), specifically dπ→ NN,...
double probability_transit_high(const double region_lower, const double region_upper) const
static double xs_dn_dprimen(const double sqrts, const double cm_mom, ParticleTypePtr produced_nucleus, const ParticleType &type_nucleus, const ParticleType &type_N)
Parametrized cross section for Nd → Nd', N̅d → N̅d', N̅d̅→ N̅d̅', Nd̅→ Nd̅' and reverse (e....
CollisionBranchList two_to_four() const
Find all 2->4 processes for the given scattering.
CollisionBranchList ypi_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes for Hyperon-Pion (Ypi) Scattering.
CollisionBranchList deltak_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes for Delta-Kaon (DeltaK) Scattering.
double formation(const ParticleType &type_resonance, double cm_momentum_sqr) const
Return the 2-to-1 resonance production cross section for a given resonance.
void add_channel(CollisionBranchList &process_list, F &&get_xsection, double sqrts, const ParticleType &type_a, const ParticleType &type_b) const
Helper function: Add a 2-to-2 channel to a collision branch list given a cross section.
double string_hard_cross_section() const
Determine the (parametrized) hard non-diffractive string cross section for this collision.
const std::pair< FourVector, FourVector > potentials_
Potentials at the interacting point.
CollisionBranchPtr NNbar_annihilation(const double current_xs, const double scale_xs) const
Determine the cross section for NNbar annihilation, which is given by the difference between the para...
static double two_to_three_xs(const ParticleType &type_in1, const ParticleType &type_in2, double sqrts)
Determine 2->3 cross section for the scattering of the given particle types.
double nk_el() const
Determine the elastic cross section for a nucleon-kaon (NK) collision.
CollisionBranchList two_to_one() const
Find all resonances that can be produced in a 2->1 collision of the two input particles and the produ...
const ParticleList incoming_particles_
List with data of scattering particles.
double npi_el() const
Determine the elastic cross section for a nucleon-pion (Npi) collision.
double nn_el() const
Determine the (parametrized) elastic cross section for a nucleon-nucleon (NN) collision.
const bool is_BBbar_pair_
Whether incoming particles are a pair of a baryon and an antibaryon (could be different baryon types)
static double two_to_four_xs(const ParticleType &type_in1, const ParticleType &type_in2, double sqrts)
Determine 2->4 cross section for the scattering of the given particle types.
CollisionBranchList generate_collision_list(double elastic_parameter, bool two_to_one_switch, ReactionsBitSet included_2to2, MultiParticleReactionsBitSet included_multi, double low_snn_cut, bool strings_switch, bool use_AQM, bool strings_with_probability, NNbarTreatment nnbar_treatment, StringProcess *string_process, double scale_xs, double additional_el_xs) const
Generate a list of all possible collisions between the incoming particles with the given c....
CollisionBranchList two_to_two(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes for the given scattering.
const bool is_NNbar_pair_
Whether incoming particles are a nulecon-antinucleon pair (same isospin)
static double nn_to_resonance_matrix_element(double sqrts, const ParticleType &type_a, const ParticleType &type_b, const int twoI)
Scattering matrix amplitude squared (divided by 16π) for resonance production processes like NN → NR ...
CollisionBranchList rare_two_to_two() const
Find all 2->2 processes which are suppressed at high energies when strings are turned on with probabi...
static double sum_xs_of(const CollisionBranchList &list)
Helper function: Sum all cross sections of the given process list.
CrossSections(const ParticleList &incoming_particles, const double sqrt_s, const std::pair< FourVector, FourVector > potentials)
Construct CrossSections instance.
CollisionBranchList two_to_three() const
Find all 2->3 processes for the given scattering.
static double d_aN_inelastic_xs(double aN_kinetic_energy)
Parametrization of deuteron-antinucleon inelastic cross section.
CollisionBranchPtr elastic(double elast_par, bool use_AQM, double add_el_xs, double scale_xs) const
Determine the elastic cross section for this collision.
CollisionBranchList nk_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 background processes for Nucleon-Kaon (NK) Scattering.
CollisionBranchList dn_xx(ReactionsBitSet included_2to2) const
Find all inelastic 2->2 processes involving Nucleon and (anti-) Deuteron (dN), specifically Nd → Nd',...
static double d_pi_inelastic_xs(double pion_kinetic_energy)
Parametrization of deuteron-pion inelastic cross section.
double elastic_parametrization(bool use_AQM) const
Choose the appropriate parametrizations for given incoming particles and return the (parametrized) el...
static double xs_dpi_dprimepi(const double sqrts, const double cm_mom, ParticleTypePtr produced_nucleus, const ParticleType &type_pi)
Parametrized cross section for πd→ πd' (mockup for πd→ πnp), πd̅→ πd̅' and reverse,...
The FourVector class holds relevant values in Minkowski spacetime with (+, −, −, −) metric signature.
Definition: fourvector.h:33
A pointer-like interface to global references to ParticleType objects.
Definition: particletype.h:671
Particle type contains the static properties of a particle species.
Definition: particletype.h:97
double min_mass_spectral() const
The minimum mass of the resonance, where the spectral function is non-zero.
double isospin3_rel() const
Definition: particletype.h:179
static std::pair< double, int > force_scale(const ParticleType &data)
Evaluates the scaling factor of the forces acting on the particles.
Definition: potentials.cc:318
String excitation processes used in SMASH.
Definition: stringprocess.h:45
std::bitset< 10 > ReactionsBitSet
Container for the 2 to 2 reactions in the code.
NNbarTreatment
Treatment of N Nbar Annihilation.
std::bitset< 4 > MultiParticleReactionsBitSet
Container for the n to m reactions in the code.
constexpr int p
Proton.
const double pipi_offset
Constant offset as to where to turn on the strings and elastic processes for pi pi reactions (this is...
Definition: crosssections.h:50
const std::array< double, 2 > sqrts_range_NN
transition range in N-N collisions: Tuned to reproduce experimental exclusive cross section data,...
Definition: crosssections.h:33
const double sqrts_range
constant for the range of transition region in the case of AQM this is added to the sum of masses + s...
Definition: crosssections.h:43
const std::array< double, 2 > sqrts_range_Npi
transition range in N-pi collisions
Definition: crosssections.h:27
const double sqrts_add_lower
constant for the lower end of transition region in the case of AQM this is added to the sum of masses
Definition: crosssections.h:38
const double KN_offset
Constant offset as to where to shift from 2to2 to string processes (in GeV) in the case of KN reactio...
Definition: crosssections.h:56
Definition: action.h:24
T pCM(const T sqrts, const T mass_a, const T mass_b) noexcept
Definition: kinematics.h:79
@ TwoToTwo
2->2 inelastic scattering
Potentials * pot_pointer
Pointer to a Potential class.
constexpr double really_small
Numerical error tolerance.
Definition: constants.h:37