32 double spin_factor = (c.
spin() + 1) * (d.
spin() + 1);
33 spin_factor /= (a.
spin() + 1) * (b.
spin() + 1);
34 double symmetry_factor = (1 + (a == b));
35 symmetry_factor /= (1 + (c == d));
38 return spin_factor * symmetry_factor * momentum_factor;
54 double spin_factor = (c.
spin() + 1) * (d.
spin() + 1);
55 spin_factor /= (a.
spin() + 1) * (b.
spin() + 1);
56 double symmetry_factor = (1 + (a == b));
57 symmetry_factor /= (1 + (c == d));
58 const double momentum_factor =
61 return spin_factor * symmetry_factor * momentum_factor;
77 double spin_factor = (c.
spin() + 1) * (d.
spin() + 1);
78 spin_factor /= (a.
spin() + 1) * (b.
spin() + 1);
79 double symmetry_factor = (1 + (a == b));
80 symmetry_factor /= (1 + (c == d));
81 const double momentum_factor =
84 return spin_factor * symmetry_factor * momentum_factor;
92 CollisionBranchList in_list,
double weight = 1.) {
93 main_list.reserve(main_list.size() + in_list.size());
94 for (
auto& proc : in_list) {
95 proc->set_weight(proc->weight() * weight);
96 main_list.emplace_back(std::move(proc));
102 const std::pair<FourVector, FourVector> potentials)
103 : incoming_particles_(incoming_particles),
105 potentials_(potentials),
106 is_BBbar_pair_(incoming_particles_[0].type().is_baryon() &&
107 incoming_particles_[1].type().is_baryon() &&
108 incoming_particles_[0].type().antiparticle_sign() ==
109 -incoming_particles_[1].type().antiparticle_sign()),
111 incoming_particles_[0].type().is_nucleon() &&
112 incoming_particles_[1].pdgcode() ==
113 incoming_particles_[0].type().get_antiparticle()->pdgcode()) {}
118 CollisionBranchList process_list;
122 double p_pythia = 0.;
129 const bool reject_by_nucleon_elastic_cutoff =
135 if (incl_elastic && !reject_by_nucleon_elastic_cutoff) {
136 process_list.emplace_back(
elastic(finder_parameters));
142 const double sig_current =
sum_xs_of(process_list);
143 const double sig_string = std::max(
152 p_pythia * finder_parameters.
scale_xs);
158 (1. - p_pythia) * finder_parameters.
scale_xs);
166 (1. - p_pythia) * finder_parameters.
scale_xs);
168 if (finder_parameters
173 (1. - p_pythia) * finder_parameters.
scale_xs);
175 if (finder_parameters
180 (1. - p_pythia) * finder_parameters.
scale_xs);
207 double elastic_xs = 0.;
220 return std::make_unique<CollisionBranch>(
228 CollisionBranchList process_list;
231 const auto& pdg_a = data_a.
pdgcode();
232 const auto& pdg_b = data_b.
pdgcode();
233 if ((pdg_a.is_nucleon() && pdg_b.is_pion()) ||
234 (pdg_b.is_nucleon() && pdg_a.is_pion())) {
241 const double pipi_offset)
const {
244 double elastic_xs = 0.0;
252 elastic_xs =
nk_el();
256 elastic_xs =
nn_el();
264 const bool is_deuteron = pdg_nucleus.
is_deuteron();
265 if (is_deuteron && pdg_other.
is_pion()) {
268 }
else if (is_deuteron && pdg_other.
is_nucleon()) {
272 }
else if (use_AQM) {
277 elastic_xs =
nn_el();
288 (m1 + m2 + pipi_offset) >
sqrt_s_) {
322 std::stringstream ss;
325 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
326 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
327 <<
" sigma=" << sig_el <<
" s=" << s;
328 throw std::runtime_error(ss.str());
338 assert(pion != nucleon);
343 switch (nucleon.
code()) {
345 switch (pion.
code()) {
358 switch (pion.
code()) {
371 switch (pion.
code()) {
384 switch (pion.
code()) {
397 throw std::runtime_error(
398 "only the elastic cross section for proton-pion "
405 std::stringstream ss;
408 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
409 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
410 <<
" sigma=" << sig_el <<
" s=" << s;
411 throw std::runtime_error(ss.str());
421 const auto pdg_nucleon = type_nucleon.
pdgcode().
code();
430 CollisionBranchList process_list;
431 switch (pdg_nucleon) {
439 sqrt_s_, type_K_p, type_Sigma_p);
450 sqrt_s_, type_K_p, type_Sigma_m);
453 type_K_z, type_Sigma_z);
456 type_K_z, type_Lambda);
472 sqrt_s_, type_K_p, type_Sigma_z);
475 type_K_z, type_Sigma_p);
478 sqrt_s_, type_K_p, type_Lambda);
494 sqrt_s_, type_K_z, type_Sigma_p);
497 type_K_p, type_Sigma_z);
500 type_K_p, type_Lambda);
508 sqrt_s_, type_K_z, type_Sigma_m);
524 sqrt_s_, type_K_z, type_Sigma_z);
527 type_K_p, type_Sigma_m);
530 sqrt_s_, type_K_z, type_Lambda);
546 sqrt_s_, type_K_m, type_Sigma_m_bar);
549 type_Kbar_z, type_Sigma_z_bar);
552 type_Kbar_z, type_Lambda_bar);
560 sqrt_s_, type_K_m, type_Sigma_p_bar);
576 sqrt_s_, type_K_m, type_Sigma_z_bar);
579 type_Kbar_z, type_Sigma_p_bar);
582 sqrt_s_, type_K_m, type_Lambda_bar);
595 sqrt_s_, type_Kbar_z, type_Sigma_m_bar);
606 sqrt_s_, type_Kbar_z, type_Sigma_p_bar);
609 type_K_m, type_Sigma_z_bar);
612 type_K_m, type_Lambda_bar);
628 sqrt_s_, type_Kbar_z, type_Sigma_z_bar);
631 type_K_m, type_Sigma_m_bar);
634 sqrt_s_, type_Kbar_z, type_Lambda_bar);
651 assert(kaon != nucleon);
656 switch (nucleon.
code()) {
658 switch (kaon.
code()) {
674 switch (kaon.
code()) {
690 switch (kaon.
code()) {
706 switch (kaon.
code()) {
722 throw std::runtime_error(
723 "elastic cross section for antinucleon-kaon "
730 std::stringstream ss;
733 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
734 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
735 <<
" sigma=" << sig_el <<
" s=" << s;
736 throw std::runtime_error(ss.str());
741 CollisionBranchList resonance_process_list;
752 if (type_resonance.is_stable()) {
757 type_resonance.pdgcode() == type_particle_a.
pdgcode()) ||
759 type_resonance.pdgcode() == type_particle_b.
pdgcode())) {
763 double resonance_xsection =
formation(type_resonance, p_cm_sqr);
767 resonance_process_list.push_back(std::make_unique<CollisionBranch>(
771 "->", type_resonance.name(),
772 " at sqrt(s)[GeV] = ",
sqrt_s_,
773 " with xs[mb] = ", resonance_xsection);
776 return resonance_process_list;
780 double cm_momentum_sqr)
const {
784 if (type_resonance.
charge() !=
798 if (partial_width <= 0.) {
803 const double spinfactor =
804 static_cast<double>(type_resonance.
spin() + 1) /
805 ((type_particle_a.
spin() + 1) * (type_particle_b.
spin() + 1));
806 const int sym_factor =
811 return spinfactor * sym_factor * 2. * M_PI * M_PI / cm_momentum_sqr *
818 CollisionBranchList process_list;
823 const auto& pdg_a = data_a.
pdgcode();
824 const auto& pdg_b = data_b.
pdgcode();
827 if (pdg_a.is_nucleon() && pdg_b.is_nucleon() &&
828 pdg_a.antiparticle_sign() == pdg_b.antiparticle_sign()) {
830 process_list =
nn_xx(included_2to2);
838 if ((pdg_a.is_nucleon() && pdg_b.is_kaon()) ||
839 (pdg_b.is_nucleon() && pdg_a.is_kaon())) {
841 process_list =
nk_xx(included_2to2, KN_offset);
842 }
else if ((pdg_a.is_hyperon() && pdg_b.is_pion()) ||
843 (pdg_b.is_hyperon() && pdg_a.is_pion())) {
845 process_list =
ypi_xx(included_2to2);
846 }
else if ((pdg_a.is_Delta() && pdg_b.is_kaon()) ||
847 (pdg_b.is_Delta() && pdg_a.is_kaon())) {
855 process_list =
dn_xx(included_2to2);
861 process_list =
dpi_xx(included_2to2);
868 CollisionBranchList process_list;
882 process_list.push_back(std::make_unique<CollisionBranch>(
890 process_list.push_back(std::make_unique<CollisionBranch>(
891 type_pi, type_anti_p, type_anti_n,
906 process_list.push_back(std::make_unique<CollisionBranch>(
914 process_list.push_back(std::make_unique<CollisionBranch>(
915 type_N, type_anti_p, type_anti_n,
923 CollisionBranchList process_list;
942 ParticleTypePtrList components;
943 components.reserve(3);
945 for (
int i = 0; i < nucleus_pdg.
nucleus_p(); i++) {
946 components.push_back(type_p);
948 for (
int i = 0; i < nucleus_pdg.
nucleus_n(); i++) {
949 components.push_back(type_n);
951 for (
int i = 0; i < nucleus_pdg.
nucleus_ap(); i++) {
952 components.push_back(type_anti_p);
954 for (
int i = 0; i < nucleus_pdg.
nucleus_an(); i++) {
955 components.push_back(type_anti_n);
957 for (
int i = 0; i < nucleus_pdg.
nucleus_La(); i++) {
958 components.push_back(type_la);
960 for (
int i = 0; i < nucleus_pdg.
nucleus_aLa(); i++) {
961 components.push_back(type_anti_la);
963 if (
sqrt_s_ > type_catalyzer->
mass() + components[0]->mass() +
964 components[1]->mass() + components[2]->mass()) {
965 process_list.push_back(std::make_unique<CollisionBranch>(
966 *type_catalyzer, *(components[0]), *(components[1]), *(components[2]),
975 const double x = pion_kinetic_energy;
976 return x * (4.3 + 10.0 * x) / ((x - 0.16) * (x - 0.16) + 0.007);
980 const double x = N_kinetic_energy;
981 return x * (1.0 + 50 * x) / (x * x + 0.01) +
982 4 * x / ((x - 0.008) * (x - 0.008) + 0.0004);
986 return 55.0 / (aN_kinetic_energy + 0.17);
995 type_nucleus = &type_b;
996 type_catalyzer = &type_a;
999 bool nonzero_xs = type_nucleus->
is_nucleus() &&
1000 (type_catalyzer->is_pion() || type_catalyzer->is_nucleon());
1005 const double md = type_nucleus->
mass(), mcat = type_catalyzer->mass();
1006 const double Tkin = (sqrts * sqrts - (md + mcat) * (md + mcat)) / (2.0 * md);
1013 if (type_catalyzer->is_pion()) {
1015 }
else if (type_catalyzer->is_nucleon()) {
1017 type_catalyzer->pdgcode().antiparticle_sign()) {
1033 type_nucleus = &type_b;
1034 type_catalyzer = &type_a;
1036 bool nonzero_xs = type_nucleus->
is_nucleus() &&
1037 (type_catalyzer->is_pion() || type_catalyzer->is_nucleon());
1042 const double mA = type_nucleus->
mass(), mcat = type_catalyzer->mass();
1043 const double Tkin = (sqrts * sqrts - (mA + mcat) * (mA + mcat)) / (2.0 * mA);
1046 if (A != 3 || Tkin <= 0.0) {
1050 if (type_catalyzer->is_pion()) {
1052 }
else if (type_catalyzer->is_nucleon()) {
1054 type_catalyzer->pdgcode().antiparticle_sign()) {
1067 CollisionBranchList process_list;
1073 if (!same_sign && !any_nucleus) {
1074 return process_list;
1089 return process_list;
1094 CollisionBranchList process_list, channel_list;
1100 bool both_antinucleons =
1103 const ParticleTypePtrList& nuc_or_anti_nuc =
1106 const ParticleTypePtrList& delta_or_anti_delta =
1116 process_list.reserve(process_list.size() + channel_list.size());
1117 std::move(channel_list.begin(), channel_list.end(),
1118 std::inserter(process_list, process_list.end()));
1119 channel_list.clear();
1131 process_list.reserve(process_list.size() + channel_list.size());
1132 std::move(channel_list.begin(), channel_list.end(),
1133 std::inserter(process_list, process_list.end()));
1134 channel_list.clear();
1144 if (
deuteron && antideutron && pim && pi0 && pip &&
1146 const ParticleTypePtrList deutron_list = {
deuteron};
1147 const ParticleTypePtrList antideutron_list = {antideutron};
1148 const ParticleTypePtrList pion_list = {pim, pi0, pip};
1150 (both_antinucleons ? antideutron_list : deutron_list), pion_list,
1153 return pCM(sqrts, type_res_1.
mass(), type_res_2.
mass());
1155 process_list.reserve(process_list.size() + channel_list.size());
1156 std::move(channel_list.begin(), channel_list.end(),
1157 std::inserter(process_list, process_list.end()));
1158 channel_list.clear();
1161 return process_list;
1165 const double KN_offset)
const {
1171 const auto pdg_nucleon = type_nucleon.
pdgcode().
code();
1184 const double KN_to_KDelta_cutoff = KN_offset +
1189 bool incl_KN_to_KDelta =
1191 sqrt_s_ < KN_to_KDelta_cutoff;
1192 bool incl_Strangeness_exchange =
1195 CollisionBranchList process_list;
1200 switch (pdg_nucleon) {
1202 if (incl_Strangeness_exchange) {
1212 sqrt_s_, type_pi_m, type_Sigma_p);
1215 sqrt_s_, type_pi_p, type_Sigma_m);
1218 sqrt_s_, type_pi_z, type_Sigma_z);
1221 sqrt_s_, type_pi_z, type_Lambda);
1223 if (incl_KN_to_KN) {
1228 type_Kbar_z, type_n);
1233 if (incl_Strangeness_exchange) {
1241 sqrt_s_, type_pi_m, type_Sigma_z);
1244 sqrt_s_, type_pi_z, type_Sigma_m);
1247 sqrt_s_, type_pi_m, type_Lambda);
1252 if (incl_KN_to_KDelta) {
1261 type_nucleon, type_kaon,
1262 type_Kbar_z, type_Delta_pp_bar);
1264 sqrt_s_, type_Kbar_z, type_Delta_pp_bar);
1269 type_nucleon, type_kaon, type_K_m,
1272 sqrt_s_, type_K_m, type_Delta_p_bar);
1277 if (incl_KN_to_KDelta) {
1286 type_nucleon, type_kaon,
1287 type_Kbar_z, type_Delta_p_bar);
1289 sqrt_s_, type_Kbar_z, type_Delta_p_bar);
1294 type_nucleon, type_kaon, type_K_m,
1297 sqrt_s_, type_K_m, type_Delta_z_bar);
1299 if (incl_KN_to_KN) {
1304 type_Kbar_z, type_p_bar);
1314 switch (pdg_nucleon) {
1316 if (incl_KN_to_KDelta) {
1324 return sigma_kplusp *
1326 type_K_z, type_Delta_pp);
1328 sqrt_s_, type_K_z, type_Delta_pp);
1332 return sigma_kplusp *
1334 type_K_p, type_Delta_p);
1336 sqrt_s_, type_K_p, type_Delta_p);
1341 if (incl_KN_to_KDelta) {
1349 return sigma_kplusn *
1351 type_K_z, type_Delta_p);
1353 sqrt_s_, type_K_z, type_Delta_p);
1357 return sigma_kplusn *
1359 type_K_p, type_Delta_z);
1361 sqrt_s_, type_K_p, type_Delta_z);
1363 if (incl_KN_to_KN) {
1373 if (incl_Strangeness_exchange) {
1383 sqrt_s_, type_pi_p, type_Sigma_p_bar);
1386 sqrt_s_, type_pi_m, type_Sigma_m_bar);
1389 sqrt_s_, type_pi_z, type_Sigma_z_bar);
1392 sqrt_s_, type_pi_z, type_Lambda_bar);
1394 if (incl_KN_to_KN) {
1399 type_K_z, type_n_bar);
1404 if (incl_Strangeness_exchange) {
1412 sqrt_s_, type_pi_p, type_Sigma_z_bar);
1415 sqrt_s_, type_pi_z, type_Sigma_m_bar);
1418 sqrt_s_, type_pi_p, type_Lambda_bar);
1431 switch (pdg_nucleon) {
1433 if (incl_KN_to_KDelta) {
1441 return sigma_kplusn *
1443 type_K_z, type_Delta_p);
1445 sqrt_s_, type_K_z, type_Delta_p);
1449 return sigma_kplusn *
1451 type_K_p, type_Delta_z);
1453 sqrt_s_, type_K_p, type_Delta_z);
1455 if (incl_KN_to_KN) {
1470 if (incl_KN_to_KDelta) {
1478 return sigma_kplusp *
1480 type_K_z, type_Delta_z);
1482 sqrt_s_, type_K_z, type_Delta_z);
1486 return sigma_kplusp *
1488 type_K_p, type_Delta_m);
1490 sqrt_s_, type_K_p, type_Delta_m);
1495 if (incl_Strangeness_exchange) {
1503 sqrt_s_, type_pi_m, type_Sigma_z_bar);
1506 sqrt_s_, type_pi_z, type_Sigma_p_bar);
1509 sqrt_s_, type_pi_m, type_Lambda_bar);
1514 if (incl_Strangeness_exchange) {
1524 sqrt_s_, type_pi_m, type_Sigma_m_bar);
1527 sqrt_s_, type_pi_p, type_Sigma_p_bar);
1530 sqrt_s_, type_pi_z, type_Sigma_z_bar);
1533 sqrt_s_, type_pi_z, type_Lambda_bar);
1535 if (incl_KN_to_KN) {
1540 type_K_p, type_p_bar);
1548 switch (pdg_nucleon) {
1550 if (incl_Strangeness_exchange) {
1558 sqrt_s_, type_pi_z, type_Sigma_p);
1561 sqrt_s_, type_pi_p, type_Sigma_z);
1564 sqrt_s_, type_pi_p, type_Lambda);
1569 if (incl_Strangeness_exchange) {
1579 sqrt_s_, type_pi_p, type_Sigma_m);
1582 sqrt_s_, type_pi_m, type_Sigma_p);
1585 sqrt_s_, type_pi_z, type_Sigma_z);
1588 sqrt_s_, type_pi_z, type_Lambda);
1590 if (incl_KN_to_KN) {
1600 if (incl_KN_to_KDelta) {
1602 const auto& type_Kbar_z = type_kaon;
1609 type_nucleon, type_kaon,
1610 type_Kbar_z, type_Delta_bar_m);
1612 sqrt_s_, type_Kbar_z, type_Delta_bar_m);
1617 type_nucleon, type_kaon, type_K_m,
1620 sqrt_s_, type_K_m, type_Delta_bar_z);
1622 if (incl_KN_to_KN) {
1632 sqrt_s_, type_K_m, type_n_bar);
1637 if (incl_KN_to_KDelta) {
1646 type_nucleon, type_kaon,
1647 type_Kbar_z, type_Delta_z_bar);
1649 sqrt_s_, type_Kbar_z, type_Delta_z_bar);
1654 type_nucleon, type_kaon, type_K_m,
1657 sqrt_s_, type_K_m, type_Delta_m_bar);
1665 return process_list;
1670 CollisionBranchList process_list;
1672 return process_list;
1679 const auto pdg_delta = type_delta.
pdgcode().
code();
1687 switch (
pack(pdg_delta, pdg_kaon)) {
1696 type_kaon, type_p, type_K_p) *
1712 type_kaon, type_p_bar, type_K_m) *
1714 type_kaon, type_delta) *
1717 sqrt_s_, type_p_bar, type_K_m);
1730 type_kaon, type_n, type_K_p) *
1741 type_kaon, type_p, type_K_z) *
1759 type_kaon, type_n_bar, type_K_m) *
1761 type_kaon, type_delta) *
1764 sqrt_s_, type_n_bar, type_K_m);
1770 type_kaon, type_p_bar,
1773 type_kaon, type_delta) *
1776 sqrt_s_, type_p_bar, type_Kbar_z);
1787 type_kaon, type_n, type_K_z) *
1803 type_kaon, type_n_bar,
1806 type_kaon, type_delta) *
1809 sqrt_s_, type_n_bar, type_Kbar_z);
1816 return process_list;
1821 CollisionBranchList process_list;
1823 return process_list;
1830 const auto pdg_hyperon = type_hyperon.
pdgcode().
code();
1835 switch (
pack(pdg_hyperon, pdg_pion)) {
1856 type_p, type_Kbar_z) *
1859 sqrt_s_, type_p, type_Kbar_z);
1869 type_n_bar, type_K_p) *
1872 sqrt_s_, type_n_bar, type_K_p);
1882 type_p_bar, type_K_z) *
1885 sqrt_s_, type_p_bar, type_K_z);
1908 type_p, type_Kbar_z) *
1911 sqrt_s_, type_p, type_Kbar_z);
1921 type_n_bar, type_K_p) *
1924 sqrt_s_, type_n_bar, type_K_p);
1934 type_p_bar, type_K_z) *
1937 sqrt_s_, type_p_bar, type_K_z);
1960 type_p, type_Kbar_z) *
1963 sqrt_s_, type_p, type_Kbar_z);
1973 type_n_bar, type_K_p) *
1976 sqrt_s_, type_n_bar, type_K_p);
1986 type_p_bar, type_K_z) *
1989 sqrt_s_, type_p_bar, type_K_z);
2009 type_n, type_Kbar_z) *
2012 sqrt_s_, type_n, type_Kbar_z);
2024 type_p_bar, type_K_p) *
2027 sqrt_s_, type_p_bar, type_K_p);
2032 type_n_bar, type_K_z) *
2035 sqrt_s_, type_n_bar, type_K_z);
2055 type_n, type_Kbar_z) *
2058 sqrt_s_, type_n, type_Kbar_z);
2070 type_p_bar, type_K_p) *
2073 sqrt_s_, type_p_bar, type_K_p);
2078 type_n_bar, type_K_z) *
2081 sqrt_s_, type_n_bar, type_K_z);
2101 type_n, type_Kbar_z) *
2104 sqrt_s_, type_n, type_Kbar_z);
2116 type_p_bar, type_K_p) *
2119 sqrt_s_, type_p_bar, type_K_p);
2124 type_n_bar, type_K_z) *
2127 sqrt_s_, type_n_bar, type_K_z);
2147 type_n, type_Kbar_z) *
2150 sqrt_s_, type_n, type_Kbar_z);
2162 type_p_bar, type_K_p) *
2165 sqrt_s_, type_p_bar, type_K_p);
2170 type_n_bar, type_K_z) *
2173 sqrt_s_, type_n_bar, type_K_z);
2180 return process_list;
2186 const double s = sqrts * sqrts;
2191 const double matrix_element =
2192 295.5 + 2.862 / (0.00283735 +
pow_int(sqrts - 2.181, 2)) +
2193 0.0672 /
pow_int(tmp, 2) - 6.61753 / tmp;
2195 const double spin_factor =
2196 (produced_nucleus->
spin() + 1) * (type_pi.
spin() + 1);
2201 double xsection = matrix_element * spin_factor / (s * cm_mom);
2205 const double resonance_integral =
2207 xsection *= resonance_integral;
2209 ", matrix element: ", matrix_element,
2210 ", cm_momentum: ", cm_mom);
2217 CollisionBranchList process_list;
2227 ParticleTypePtrList nuc = (baryon_number > 0)
2234 nuc_a->charge() + nuc_b->charge()) {
2238 for (
const int twoI :
I_tot_range(*nuc_a, *nuc_b)) {
2240 type_a, type_b, *nuc_a, *nuc_b, twoI);
2247 const double matrix_element =
2249 if (matrix_element <= 0.) {
2253 const double spin_factor = (nuc_a->spin() + 1) * (nuc_b->spin() + 1);
2254 const int sym_fac_in =
2256 const int sym_fac_out =
2257 (nuc_a->iso_multiplet() == nuc_b->iso_multiplet()) ? 2 : 1;
2258 double p_cm_final =
pCM_from_s(s, nuc_a->mass(), nuc_b->mass());
2259 const double xsection = isospin_factor * spin_factor * sym_fac_in /
2260 sym_fac_out * p_cm_final * matrix_element /
2264 process_list.push_back(std::make_unique<CollisionBranch>(
2267 nuc_a->name(), nuc_b->name(),
2268 " at sqrts [GeV] = ", sqrts,
2269 " with cs[mb] = ", xsection);
2281 if (is_pid_or_pidprime &&
2288 if (produced_nucleus == &type_nucleus ||
2290 produced_nucleus->baryon_number() != type_nucleus.
baryon_number()) {
2293 const double xsection =
2295 process_list.push_back(std::make_unique<CollisionBranch>(
2298 type_pi.
name(), produced_nucleus->name(),
2299 " at ", sqrts,
" GeV, xs[mb] = ", xsection);
2302 return process_list;
2309 const double s = sqrts * sqrts;
2310 double matrix_element = 0.0;
2318 matrix_element = 79.0474 / std::pow(tmp, 0.7897) + 654.596 * tmp;
2323 matrix_element = 342.572 / std::pow(tmp, 0.6);
2325 const double spin_factor =
2326 (produced_nucleus->
spin() + 1) * (type_N.
spin() + 1);
2330 double xsection = matrix_element * spin_factor / (s * cm_mom);
2336 const double resonance_integral =
2338 xsection *= resonance_integral;
2349 CollisionBranchList process_list;
2351 return process_list;
2357 if (produced_nucleus == &type_nucleus ||
2359 produced_nucleus->baryon_number() != type_nucleus.
baryon_number()) {
2364 process_list.push_back(std::make_unique<CollisionBranch>(
2367 type_N.
name(), produced_nucleus->name(),
" at ",
2368 sqrt_s_,
" GeV, xs[mb] = ", xsection);
2370 return process_list;
2374 double total_string_xs,
StringProcess* string_process,
bool use_AQM)
const {
2375 if (!string_process) {
2376 throw std::runtime_error(
"string_process should be initialized.");
2379 CollisionBranchList channel_list;
2380 if (total_string_xs <= 0.) {
2381 return channel_list;
2390 std::array<int, 2> pdgid;
2391 double AQM_factor = 1.;
2392 for (
int i = 0; i < 2; i++) {
2400 bool can_annihilate =
false;
2403 for (
int iq = 1; iq <= n_q_types; iq++) {
2404 std::array<int, 2> nquark;
2405 for (
int i = 0; i < 2; i++) {
2409 if (nquark[0] != 0 && nquark[1] != 0) {
2410 can_annihilate =
true;
2426 std::array<double, 3> xs =
2429 for (
int ip = 0; ip < 3; ip++) {
2430 xs[ip] *= AQM_factor;
2433 double single_diffr_AX = xs[0], single_diffr_XB = xs[1], double_diffr = xs[2];
2434 double single_diffr = single_diffr_AX + single_diffr_XB;
2435 double diffractive = single_diffr + double_diffr;
2441 double sig_annihilation = 0.0;
2442 if (can_annihilate) {
2448 xs_param *= AQM_factor;
2450 sig_annihilation = std::min(total_string_xs, xs_param);
2453 const double nondiffractive_all =
2454 std::max(0., total_string_xs - sig_annihilation - diffractive);
2455 diffractive = total_string_xs - sig_annihilation - nondiffractive_all;
2456 double_diffr = std::max(0., diffractive - single_diffr);
2457 const double a = (diffractive - double_diffr) / single_diffr;
2458 single_diffr_AX *= a;
2459 single_diffr_XB *= a;
2460 assert(std::abs(single_diffr_AX + single_diffr_XB + double_diffr +
2461 sig_annihilation + nondiffractive_all - total_string_xs) <
2464 double nondiffractive_soft = 0.;
2465 double nondiffractive_hard = 0.;
2466 if (nondiffractive_all > 0.) {
2471 nondiffractive_soft =
2472 nondiffractive_all * std::exp(-hard_xsec / nondiffractive_all);
2473 nondiffractive_hard = nondiffractive_all - nondiffractive_soft;
2484 const double sig_string_soft = total_string_xs - nondiffractive_hard;
2487 if (sig_string_soft > 0.) {
2488 channel_list.push_back(std::make_unique<CollisionBranch>(
2490 channel_list.push_back(std::make_unique<CollisionBranch>(
2492 channel_list.push_back(std::make_unique<CollisionBranch>(
2494 channel_list.push_back(std::make_unique<CollisionBranch>(
2496 if (can_annihilate) {
2497 channel_list.push_back(std::make_unique<CollisionBranch>(
2501 if (nondiffractive_hard > 0.) {
2502 channel_list.push_back(std::make_unique<CollisionBranch>(
2505 return channel_list;
2518 if (pdg_a == pdg_b) {
2535 auto [region_lower, region_upper] = transition_high_energy.
sqrts_range_NN;
2537 xs = xs_l * (1. - prob_high) + xs_h * prob_high;
2572 double cross_sec = 0.;
2607 return std::make_unique<CollisionBranch>(
2608 type_pip, type_pim, type_pip, type_pim, type_piz, nnbar_xsec * scale_xs,
2613 const double current_xs,
const double scale_xs)
const {
2617 double nnbar_xsec = std::max(0.,
ppbar_total(s) * scale_xs - current_xs);
2626 CollisionBranchList channel_list;
2640 if (
sqrt_s_ - 2 * type_N.mass() < 0) {
2641 return channel_list;
2645 type_N, type_Nbar) *
2648 channel_list.push_back(std::make_unique<CollisionBranch>(
2650 channel_list.push_back(std::make_unique<CollisionBranch>(
2654 return channel_list;
2658 const bool is_anti_particles)
const {
2661 CollisionBranchList process_list;
2667 ParticleTypePtrList nuc_or_anti_nuc;
2668 if (is_anti_particles) {
2679 nuc_a->charge() + nuc_b->charge()) {
2683 for (
const int twoI :
I_tot_range(*nuc_a, *nuc_b)) {
2685 type_a, type_b, *nuc_a, *nuc_b, twoI);
2692 const double matrix_element =
2694 if (matrix_element <= 0.) {
2702 const double spin_factor = (nuc_a->spin() + 1) * (nuc_b->spin() + 1);
2703 const int sym_fac_in =
2705 const int sym_fac_out =
2706 (nuc_a->iso_multiplet() == nuc_b->iso_multiplet()) ? 2 : 1;
2707 const double xsection = isospin_factor * spin_factor * sym_fac_in /
2708 sym_fac_out * p_cm_final * matrix_element /
2712 process_list.push_back(std::make_unique<CollisionBranch>(
2715 "2->2 absorption with original particles: ", type_a, type_b);
2720 return process_list;
2727 const double m_a = type_a.
mass();
2728 const double m_b = type_b.
mass();
2729 const double msqr = 2. * (m_a * m_a + m_b * m_b);
2739 const double uplmt = m_a + m_b + 3.0 * (w_a + w_b) + 3.0;
2740 if (sqrts > uplmt) {
2747 return 68. / std::pow(sqrts - 1.104, 1.951);
2756 }
else if (twoI == 0) {
2757 const double parametrization = 14. / msqr;
2764 return 6.5 * parametrization;
2766 return parametrization;
2779 }
else if (twoI == 0) {
2793 }
else if (twoI == 0) {
2803 (1.0 - std::exp(-(sqrts - 2.0) * 20.0));
2810 template <
class IntegrationMethod>
2812 const ParticleTypePtrList& list_res_1,
2813 const ParticleTypePtrList& list_res_2,
2814 const IntegrationMethod integrator)
const {
2818 CollisionBranchList channel_list;
2826 if (type_res_1->charge() + type_res_2->charge() !=
2832 for (
const int twoI :
I_tot_range(type_particle_a, type_particle_b)) {
2834 type_particle_a, type_particle_b, *type_res_1, *type_res_2, twoI);
2841 const double lower_limit = type_res_1->min_mass_kinematic();
2842 const double upper_limit =
sqrt_s_ - type_res_2->mass();
2846 if (upper_limit - lower_limit < 1E-3) {
2852 sqrt_s_, *type_res_1, *type_res_2, twoI);
2853 if (matrix_element <= 0.) {
2860 const double resonance_integral = integrator(*type_res_1, *type_res_2);
2865 const double spin_factor =
2866 (type_res_1->spin() + 1) * (type_res_2->spin() + 1);
2867 const double xsection = isospin_factor * spin_factor * matrix_element *
2871 channel_list.push_back(std::make_unique<CollisionBranch>(
2874 "Found 2->2 creation process for resonance ", type_res_1,
", ",
2877 type_particle_a, type_particle_b);
2882 return channel_list;
2895 const bool treat_BBbar_with_strings =
2897 const bool is_NN_scattering =
2900 const bool is_BBbar_scattering =
2909 const bool is_AQM_scattering =
2916 const double mass_sum =
2919 if (!is_NN_scattering && !is_BBbar_scattering && !is_Npi_scattering &&
2920 !is_AQM_scattering) {
2924 }
else if (is_BBbar_scattering) {
2931 const bool is_KplusP =
2944 }
else if (pdg1.
is_pion() && pdg2.is_pion()) {
2950 return static_cast<double>(
sqrt_s_ > mass_sum + aqm_offset);
2954 double region_lower, region_upper;
2955 if (is_Npi_scattering) {
2956 std::tie(region_lower, region_upper) =
2958 }
else if (is_NN_scattering) {
2959 std::tie(region_lower, region_upper) =
2964 region_lower = mass_sum + aqm_offset;
2965 region_upper = mass_sum + aqm_offset +
2971 }
else if (
sqrt_s_ < region_lower) {
2981 const double region_lower,
const double region_upper)
const {
2990 double x = (
sqrt_s_ - 0.5 * (region_lower + region_upper)) /
2991 (region_upper - region_lower);
2992 assert(x >= -0.5 && x <= 0.5);
2993 double prob = 0.5 * (std::sin(M_PI * x) + 1.0);
2994 assert(prob >= 0. && prob <= 1.);
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.
static double xs_dpi_dprimepi(double sqrts, double cm_mom, ParticleTypePtr produced_nucleus, const ParticleType &type_pi)
Parametrized cross section for πd→ πd' (mockup for πd→ πnp), πd̅→ πd̅' and reverse,...
CollisionBranchList two_to_two(const ReactionsBitSet &included_2to2, double KN_offset) const
Find all inelastic 2->2 processes for the given scattering.
CollisionBranchPtr NNbar_to_5pi(double scale_xs) const
Create collision branch for NNbar annihilation going directly into 5 pions.
double probability_transit_high(double region_lower, double region_upper) const
CollisionBranchList NNbar_creation() const
Determine the cross section for NNbar creation, which is given by detailed balance from the reverse r...
CollisionBranchList dpi_xx(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes involving Pion and (anti-) Deuteron (dpi), specifically dπ→ NN,...
CollisionBranchList bb_xx_except_nn(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes for Baryon-Baryon (BB) Scattering except the more specific Nucleon-...
CollisionBranchList npi_yk() const
Find all processes for Nucleon-Pion to Hyperon-Kaon Scattering.
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 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.
double string_probability(const ScatterActionsFinderParameters &finder_parameters) const
CollisionBranchList deltak_xx(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes for Delta-Kaon (DeltaK) Scattering.
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...
CrossSections(const ParticleList &incoming_particles, double sqrt_s, const std::pair< FourVector, FourVector > potentials)
Construct CrossSections instance.
static double xs_dn_dprimen(double sqrts, 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.
CollisionBranchPtr elastic(const ScatterActionsFinderParameters &finder_parameters) const
Determine the elastic cross section for this collision.
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.
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 nk_xx(const ReactionsBitSet &included_2to2, double KN_offset) const
Find all inelastic 2->2 background processes for Nucleon-Kaon (NK) Scattering.
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)
CollisionBranchList dn_xx(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes involving Nucleon and (anti-) Deuteron (dN), specifically Nd → Nd',...
double elastic_parametrization(bool use_AQM, double pipi_offset) const
Choose the appropriate parametrizations for given incoming particles and return the (parametrized) el...
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 ypi_xx(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes for Hyperon-Pion (Ypi) 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.
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 NNbar_annihilation(double current_xs, double scale_xs) const
Determine the cross section for NNbar annihilation, which is given by the difference between the para...
CollisionBranchList generate_collision_list(const ScatterActionsFinderParameters &finder_parameters, StringProcess *string_process) const
Generate a list of all possible collisions between the incoming particles with the given c....
static double d_pi_inelastic_xs(double pion_kinetic_energy)
Parametrization of deuteron-pion inelastic cross section.
double high_energy(const StringTransitionParameters &transition_high_energy) const
Determine the parametrized total cross section at high energies for the given collision,...
CollisionBranchList nn_xx(const ReactionsBitSet &included_2to2) const
Find all inelastic 2->2 processes for Nucelon-Nucelon Scattering.
Range of total isospin for reaction of particle a with particle b.
double get_integral_RR(IsoParticleType *type_res_2, double sqrts)
Look up the tabulated resonance integral for the XX -> RR cross section.
double get_integral_NR(double sqrts)
Look up the tabulated resonance integral for the XX -> NR cross section.
double get_integral_RK(double sqrts)
Look up the tabulated resonance integral for the XX -> RK cross section.
double get_integral_piR(double sqrts)
Look up the tabulated resonance integral for the XX -> piR cross section.
double get_ratio(const ParticleType &a, const ParticleType &b, const ParticleType &c, const ParticleType &d) const
Return the isospin ratio of the given K N -> K Delta cross section.
ParticleData contains the dynamic information of a certain particle.
PdgCode pdgcode() const
Get the pdgcode of the particle.
const ParticleType & type() const
Get the type of the particle.
A pointer-like interface to global references to ParticleType objects.
Particle type contains the static properties of a particle species.
double spectral_function(double m) const
Full spectral function of the resonance (relativistic Breit-Wigner distribution with mass-dependent ...
static const ParticleTypePtr try_find(PdgCode pdgcode)
Returns the ParticleTypePtr for the given pdgcode.
static const ParticleType & find(PdgCode pdgcode)
Returns the ParticleType object for the given pdgcode.
const std::string & name() const
int32_t charge() const
The charge of the particle.
int antiparticle_sign() const
static ParticleTypePtrList & list_nucleons()
static ParticleTypePtrList & list_anti_nucleons()
bool is_Nstar1535() const
static const ParticleTypeList & list_all()
double width_at_pole() const
static ParticleTypePtrList & list_anti_Deltas()
static ParticleTypePtrList & list_baryon_resonances()
static ParticleTypePtrList & list_Deltas()
double get_partial_in_width(const double m, const ParticleData &p_a, const ParticleData &p_b) const
Get the mass-dependent partial in-width of a resonance with mass m, decaying into two given daughter ...
unsigned int spin() const
int baryon_number() const
bool is_Deltastar() const
IsoParticleType * iso_multiplet() const
static ParticleTypePtrList & list_light_nuclei()
PdgCode stores a Particle Data Group Particle Numbering Scheme particle type number.
std::int32_t code() const
int antiparticle_sign() const
int nucleus_n() const
Number of neutrons in nucleus.
int nucleus_ap() const
Number of antiprotons in nucleus.
int nucleus_an() const
Number of antineutrons in nucleus.
unsigned int spin() const
bool is_antiparticle_of(const PdgCode rhs) const
int nucleus_p() const
Number of protons in nucleus.
int nucleus_La() const
Number of Lambdas in nucleus.
int nucleus_A() const
Nucleus mass number.
int nucleus_aLa() const
Number of anti-Lambdas in nucleus.
double frac_strange() const
String excitation processes used in SMASH.
static int pdg_map_for_pythia(PdgCode &pdg)
Take pdg code and map onto particle specie which can be handled by PYTHIA.
std::array< double, 3 > cross_sections_diffractive(int pdg_a, int pdg_b, double sqrt_s)
Interface to pythia_sigmatot_ to compute cross-sections of A+B-> different final states Schuler:1993w...
Collection of useful constants that are known at compile time.
std::bitset< 10 > ReactionsBitSet
Container for the 2 to 2 reactions in the code.
@ TwoToFive
Directly create 5 pions, use with multi-particle reactions.
@ Resonances
Use intermediate Resonances.
@ Strings
Use string fragmentation.
std::array< einhard::Logger<>, std::tuple_size< LogArea::AreaTuple >::value > logg
An array that stores all pre-configured Logger objects.
constexpr int Delta_pp
Δ⁺⁺.
constexpr int64_t antideuteron
Anti-deuteron in decimal digits.
constexpr int h1
h₁(1170).
constexpr int64_t deuteron
Deuteron.
double kplusn_k0p(double mandelstam_s)
K+ n charge exchange cross section parametrization.
double kminusp_pi0lambda(double sqrts)
K- p <-> pi0 Lambda cross section parametrization Fit to Landolt-Börnstein instead of UrQMD values.
T pCM(const T sqrts, const T mass_a, const T mass_b) noexcept
double piminusp_sigma0k0_res(double mandelstam_s)
pi- p -> Sigma0 K0 cross section parametrization, resonance contribution.
T pCM_sqr(const T sqrts, const T mass_a, const T mass_b) noexcept
double ppbar_total(double mandelstam_s)
ppbar total cross section parametrization Source: Bass:1998ca
double piminusp_elastic(double mandelstam_s)
pi-p elastic cross section parametrization Source: GiBUU:parametrizationBarMes_HighEnergy....
double npbar_high_energy(double mandelstam_s)
npbar total cross section at high energies
static double detailed_balance_factor_RR(double sqrts, double pcm, const ParticleType &a, const ParticleType &b, const ParticleType &c, const ParticleType &d)
Helper function: Calculate the detailed balance factor R such that.
double kminusn_piminussigma0(double sqrts)
K- n <-> pi- Sigma0 cross section parametrization Follow from the parametrization with the same stran...
double kbar0p_elastic_background(double mandelstam_s)
Kbar0 p elastic background cross section parametrization Source: Buss:2011mx , B.3....
KaonNucleonRatios kaon_nucleon_ratios
double ppbar_elastic(double mandelstam_s)
ppbar elastic cross section parametrization Source: Bass:1998ca
double kminusp_elastic_background(double mandelstam_s)
K- p elastic background cross section parametrization Source: Buss:2011mx , B.3.9.
double np_high_energy(double mandelstam_s)
np total cross section at high energies
double pp_elastic_high_energy(double mandelstam_s, double m1, double m2)
pp elastic cross section parametrization, with only the high energy part generalized to all energy re...
double Npi_string_hard(double mandelstam_s)
nucleon-pion hard scattering cross section (with partonic scattering)
double kminusn_piminuslambda(double sqrts)
K- n <-> pi- Lambda cross section parametrization Follow from the parametrization with the same stran...
double isospin_clebsch_gordan_sqr_2to2(const ParticleType &p_a, const ParticleType &p_b, const ParticleType &p_c, const ParticleType &p_d, const int I=-1)
Calculate the squared isospin Clebsch-Gordan coefficient for a 2-to-2 reaction A + B -> C + D.
@ TwoToOne
See here for a short description.
@ StringSoftDoubleDiffractive
See here for a short description.
@ TwoToFive
See here for a short description.
@ StringSoftSingleDiffractiveXB
See here for a short description.
@ TwoToTwo
See here for a short description.
@ Elastic
See here for a short description.
@ TwoToFour
See here for a short description.
@ StringSoftAnnihilation
See here for a short description.
@ StringSoftNonDiffractive
See here for a short description.
@ StringSoftSingleDiffractiveAX
See here for a short description.
@ StringHard
See here for a short description.
@ TwoToThree
See here for a short description.
constexpr double minimum_sqrts_pythia_can_handle
Energy in GeV, below which hard reactions via pythia are impossible.
double ppbar_high_energy(double mandelstam_s)
ppbar total cross section at high energies
double pp_high_energy(double mandelstam_s)
pp total cross section at high energies
T pCM_sqr_from_s(const T s, const T mass_a, const T mass_b) noexcept
double pipi_string_hard(double mandelstam_s)
pion-pion hard scattering cross section (with partonic scattering)
double piplusp_high_energy(double mandelstam_s)
pi+p total cross section at high energies
double kminusp_piminussigmaplus(double sqrts)
K- p <-> pi- Sigma+ cross section parametrization Taken from UrQMD (Graef:2014mra ).
double piplusp_elastic_high_energy(double mandelstam_s, double m1, double m2)
pi+p elactic cross section parametrization.
double piplusp_sigmapluskplus_pdg(double mandelstam_s)
pi+ p to Sigma+ K+ cross section parametrization, PDG data.
static constexpr int LCrossSections
constexpr double deuteron_mass
Deuteron mass in GeV.
double deuteron_nucleon_elastic(double mandelstam_s)
Deuteron nucleon elastic cross-section [mb] parametrized by Oh:2009gx .
constexpr double nucleon_mass
Nucleon mass in GeV.
constexpr T pow_int(const T base, unsigned const exponent)
Efficient template for calculating integer powers using squaring.
double piminusp_sigmaminuskplus_pdg(double mandelstam_s)
pi- p -> Sigma- K+ cross section parametrization, PDG data.
double piminusp_lambdak0_pdg(double mandelstam_s)
pi- p -> Lambda K0 cross section parametrization, PDG data.
static void append_list(CollisionBranchList &main_list, CollisionBranchList in_list, double weight=1.)
Helper function: Append a list of processes to another (main) list of processes.
static double detailed_balance_factor_stable(double s, const ParticleType &a, const ParticleType &b, const ParticleType &c, const ParticleType &d)
Helper function: Calculate the detailed balance factor R such that.
double k0p_elastic_background(double mandelstam_s)
K0 p elastic background cross section parametrization Source: Buss:2011mx , B.3.9.
constexpr uint64_t pack(int32_t x, int32_t y)
Pack two int32_t into an uint64_t.
double deuteron_pion_elastic(double mandelstam_s)
Deuteron pion elastic cross-section [mb] parametrized to fit pi-d elastic scattering data (the data c...
double NN_string_hard(double mandelstam_s)
nucleon-nucleon hard scattering cross section (with partonic scattering)
double xs_ppbar_annihilation(double mandelstam_s)
parametrized cross-section for proton-antiproton annihilation used in the UrQMD model
double kplusp_inelastic_background(double mandelstam_s)
K+ p inelastic background cross section parametrization Source: Buss:2011mx , B.3....
constexpr double pion_mass
Pion mass in GeV.
constexpr double hbarc
GeV <-> fm conversion factor.
double kminusp_pi0sigma0(double sqrts)
K- p <-> pi0 Sigma0 cross section parametrization Fit to Landolt-Börnstein instead of UrQMD values.
double kplusn_elastic_background(double mandelstam_s)
K+ n elastic background cross section parametrization sigma(K+n->K+n) = sigma(K+n->K0p) = 0....
T pCM_from_s(const T s, const T mass_a, const T mass_b) noexcept
constexpr double really_small
Numerical error tolerance.
double np_elastic(double mandelstam_s)
np elastic cross section parametrization Source: Weil:2013mya , eq.
static double detailed_balance_factor_RK(double sqrts, double pcm, const ParticleType &a, const ParticleType &b, const ParticleType &c, const ParticleType &d)
Helper function: Calculate the detailed balance factor R such that.
double k0n_elastic_background(double mandelstam_s)
K0 n elastic background cross section parametrization Source: Buss:2011mx , B.3.9.
static constexpr int LScatterAction
double kminusp_piplussigmaminus(double sqrts)
K- p <-> pi+ Sigma- cross section parametrization Taken from UrQMD (Graef:2014mra ).
double kbar0n_elastic_background(double mandelstam_s)
Kbar0 n elastic background cross section parametrization Source: Buss:2011mx , B.3....
double kminusp_kbar0n(double mandelstam_s)
K- p <-> Kbar0 n cross section parametrization.
double piminusp_high_energy(double mandelstam_s)
pi-p total cross section at high energies
double kminusn_elastic_background(double mandelstam_s)
K- n elastic background cross section parametrization Source: Buss:2011mx , B.3.9.
double pp_elastic(double mandelstam_s)
pp elastic cross section parametrization Source: Weil:2013mya , eq.
double kplusn_inelastic_background(double mandelstam_s)
K+ n inelastic background cross section parametrization Source: Buss:2011mx , B.3....
double kplusp_elastic_background(double mandelstam_s)
K+ p elastic background cross section parametrization.
double piplusp_elastic_AQM(double mandelstam_s, double m1, double m2)
An overload of piplusp_elastic_high_energy in which the very low part is replaced by a flat 5 mb cros...
double piplusp_elastic(double mandelstam_s)
pi+p elastic cross section parametrization, PDG data.
constexpr double fm2_mb
mb <-> fm^2 conversion factor.
Helper structure for ScatterActionsFinder.
const bool strings_with_probability
This indicates whether the string fragmentation is swiched on with a probability smoothly increasing ...
const ReactionsBitSet included_2to2
List of included 2<->2 reactions.
const bool use_AQM
Switch to control whether to use AQM or not.
const double scale_xs
Factor by which all (partial) cross sections are scaled.
const double elastic_parameter
Elastic cross section parameter (in mb).
const bool strings_switch
Indicates whether string fragmentation is switched on.
const StringTransitionParameters transition_high_energy
Constants related to transition between low collision energies - mediated via resonances - and high c...
const double additional_el_xs
Additional constant contribution (in mb) to the elastic cross sections.
const NNbarTreatment nnbar_treatment
Switch for NNbar reactions.
const double low_snn_cut
Elastic collsions between two nucleons with sqrt_s below low_snn_cut_ are excluded.
const bool two_to_one
Enables resonance production.
Constants related to transition between low and high collision energies.
const std::pair< double, double > sqrts_range_Npi
Transition range in N collisions.
const double pipi_offset
Constant offset as to where to turn on the strings and elastic processes for reactions (this is an e...
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...
const double KN_offset
Constant offset as to where to shift from 2to2 to string processes (in GeV) in the case of KN reactio...
const std::pair< double, double > sqrts_range_NN
Transition range in NN collisions.
const double sqrts_range_width
Constant for the range of transition region, in the case of AQM this is added to the sum of masses + ...