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);
209 double total_xs = 0.;
293 throw std::runtime_error(
"wrong isospin in ππ scattering");
308 double elastic_xs = 0.;
321 return std::make_unique<CollisionBranch>(
329 CollisionBranchList process_list;
332 const auto& pdg_a = data_a.
pdgcode();
333 const auto& pdg_b = data_b.
pdgcode();
334 if ((pdg_a.is_nucleon() && pdg_b.is_pion()) ||
335 (pdg_b.is_nucleon() && pdg_a.is_pion())) {
342 const double pipi_offset)
const {
345 double elastic_xs = 0.0;
353 elastic_xs =
nk_el();
357 elastic_xs =
nn_el();
365 const bool is_deuteron = pdg_nucleus.
is_deuteron();
366 if (is_deuteron && pdg_other.
is_pion()) {
369 }
else if (is_deuteron && pdg_other.
is_nucleon()) {
373 }
else if (use_AQM) {
378 elastic_xs =
nn_el();
389 (m1 + m2 + pipi_offset) >
sqrt_s_) {
423 std::stringstream ss;
426 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
427 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
428 <<
" sigma=" << sig_el <<
" s=" << s;
429 throw std::runtime_error(ss.str());
439 assert(pion != nucleon);
444 switch (nucleon.
code()) {
446 switch (pion.
code()) {
459 switch (pion.
code()) {
472 switch (pion.
code()) {
485 switch (pion.
code()) {
498 throw std::runtime_error(
499 "only the elastic cross section for proton-pion "
506 std::stringstream ss;
509 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
510 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
511 <<
" sigma=" << sig_el <<
" s=" << s;
512 throw std::runtime_error(ss.str());
522 const auto pdg_nucleon = type_nucleon.
pdgcode().
code();
531 CollisionBranchList process_list;
532 switch (pdg_nucleon) {
540 sqrt_s_, type_K_p, type_Sigma_p);
551 sqrt_s_, type_K_p, type_Sigma_m);
554 type_K_z, type_Sigma_z);
557 type_K_z, type_Lambda);
573 sqrt_s_, type_K_p, type_Sigma_z);
576 type_K_z, type_Sigma_p);
579 sqrt_s_, type_K_p, type_Lambda);
595 sqrt_s_, type_K_z, type_Sigma_p);
598 type_K_p, type_Sigma_z);
601 type_K_p, type_Lambda);
609 sqrt_s_, type_K_z, type_Sigma_m);
625 sqrt_s_, type_K_z, type_Sigma_z);
628 type_K_p, type_Sigma_m);
631 sqrt_s_, type_K_z, type_Lambda);
647 sqrt_s_, type_K_m, type_Sigma_m_bar);
650 type_Kbar_z, type_Sigma_z_bar);
653 type_Kbar_z, type_Lambda_bar);
661 sqrt_s_, type_K_m, type_Sigma_p_bar);
677 sqrt_s_, type_K_m, type_Sigma_z_bar);
680 type_Kbar_z, type_Sigma_p_bar);
683 sqrt_s_, type_K_m, type_Lambda_bar);
696 sqrt_s_, type_Kbar_z, type_Sigma_m_bar);
707 sqrt_s_, type_Kbar_z, type_Sigma_p_bar);
710 type_K_m, type_Sigma_z_bar);
713 type_K_m, type_Lambda_bar);
729 sqrt_s_, type_Kbar_z, type_Sigma_z_bar);
732 type_K_m, type_Sigma_m_bar);
735 sqrt_s_, type_Kbar_z, type_Lambda_bar);
752 assert(kaon != nucleon);
757 switch (nucleon.
code()) {
759 switch (kaon.
code()) {
775 switch (kaon.
code()) {
791 switch (kaon.
code()) {
807 switch (kaon.
code()) {
823 throw std::runtime_error(
824 "elastic cross section for antinucleon-kaon "
831 std::stringstream ss;
834 ss <<
"problem in CrossSections::elastic: a=" << name_a <<
" b=" << name_b
835 <<
" j_a=" << pdg_a.
spin() <<
" j_b=" << pdg_b.
spin()
836 <<
" sigma=" << sig_el <<
" s=" << s;
837 throw std::runtime_error(ss.str());
842 CollisionBranchList resonance_process_list;
850 ParticleTypePtrList possible_resonances =
855 double resonance_xsection =
formation(*type_resonance, p_cm_sqr);
859 resonance_process_list.push_back(std::make_unique<CollisionBranch>(
863 "->", type_resonance->name(),
864 " at sqrt(s)[GeV] = ",
sqrt_s_,
865 " with xs[mb] = ", resonance_xsection);
868 return resonance_process_list;
872 double cm_momentum_sqr)
const {
879 if (partial_width <= 0.) {
883 assert(type_resonance.
charge() ==
889 const double spinfactor =
890 static_cast<double>(type_resonance.
spin() + 1) /
891 ((type_particle_a.
spin() + 1) * (type_particle_b.
spin() + 1));
892 const int sym_factor =
897 return spinfactor * sym_factor * 2. * M_PI * M_PI / cm_momentum_sqr *
904 CollisionBranchList process_list;
909 const auto& pdg_a = data_a.
pdgcode();
910 const auto& pdg_b = data_b.
pdgcode();
913 if (pdg_a.is_nucleon() && pdg_b.is_nucleon() &&
914 pdg_a.antiparticle_sign() == pdg_b.antiparticle_sign()) {
916 process_list =
nn_xx(included_2to2);
924 if ((pdg_a.is_nucleon() && pdg_b.is_kaon()) ||
925 (pdg_b.is_nucleon() && pdg_a.is_kaon())) {
927 process_list =
nk_xx(included_2to2, KN_offset);
928 }
else if ((pdg_a.is_hyperon() && pdg_b.is_pion()) ||
929 (pdg_b.is_hyperon() && pdg_a.is_pion())) {
931 process_list =
ypi_xx(included_2to2);
932 }
else if ((pdg_a.is_Delta() && pdg_b.is_kaon()) ||
933 (pdg_b.is_Delta() && pdg_a.is_kaon())) {
941 process_list =
dn_xx(included_2to2);
947 process_list =
dpi_xx(included_2to2);
954 CollisionBranchList process_list;
968 process_list.push_back(std::make_unique<CollisionBranch>(
976 process_list.push_back(std::make_unique<CollisionBranch>(
977 type_pi, type_anti_p, type_anti_n,
992 process_list.push_back(std::make_unique<CollisionBranch>(
1000 process_list.push_back(std::make_unique<CollisionBranch>(
1001 type_N, type_anti_p, type_anti_n,
1005 return process_list;
1009 CollisionBranchList process_list;
1028 ParticleTypePtrList components;
1029 components.reserve(3);
1031 for (
int i = 0; i < nucleus_pdg.
nucleus_p(); i++) {
1032 components.push_back(type_p);
1034 for (
int i = 0; i < nucleus_pdg.
nucleus_n(); i++) {
1035 components.push_back(type_n);
1037 for (
int i = 0; i < nucleus_pdg.
nucleus_ap(); i++) {
1038 components.push_back(type_anti_p);
1040 for (
int i = 0; i < nucleus_pdg.
nucleus_an(); i++) {
1041 components.push_back(type_anti_n);
1043 for (
int i = 0; i < nucleus_pdg.
nucleus_La(); i++) {
1044 components.push_back(type_la);
1046 for (
int i = 0; i < nucleus_pdg.
nucleus_aLa(); i++) {
1047 components.push_back(type_anti_la);
1049 if (
sqrt_s_ > type_catalyzer->
mass() + components[0]->mass() +
1050 components[1]->mass() + components[2]->mass()) {
1051 process_list.push_back(std::make_unique<CollisionBranch>(
1052 *type_catalyzer, *(components[0]), *(components[1]), *(components[2]),
1057 return process_list;
1061 const double x = pion_kinetic_energy;
1062 return x * (4.3 + 10.0 * x) / ((x - 0.16) * (x - 0.16) + 0.007);
1066 const double x = N_kinetic_energy;
1067 return x * (1.0 + 50 * x) / (x * x + 0.01) +
1068 4 * x / ((x - 0.008) * (x - 0.008) + 0.0004);
1072 return 55.0 / (aN_kinetic_energy + 0.17);
1081 type_nucleus = &type_b;
1082 type_catalyzer = &type_a;
1085 bool nonzero_xs = type_nucleus->
is_nucleus() &&
1086 (type_catalyzer->is_pion() || type_catalyzer->is_nucleon());
1091 const double md = type_nucleus->
mass(), mcat = type_catalyzer->mass();
1092 const double Tkin = (sqrts * sqrts - (md + mcat) * (md + mcat)) / (2.0 * md);
1099 if (type_catalyzer->is_pion()) {
1101 }
else if (type_catalyzer->is_nucleon()) {
1103 type_catalyzer->pdgcode().antiparticle_sign()) {
1119 type_nucleus = &type_b;
1120 type_catalyzer = &type_a;
1122 bool nonzero_xs = type_nucleus->
is_nucleus() &&
1123 (type_catalyzer->is_pion() || type_catalyzer->is_nucleon());
1128 const double mA = type_nucleus->
mass(), mcat = type_catalyzer->mass();
1129 const double Tkin = (sqrts * sqrts - (mA + mcat) * (mA + mcat)) / (2.0 * mA);
1132 if (A != 3 || Tkin <= 0.0) {
1136 if (type_catalyzer->is_pion()) {
1138 }
else if (type_catalyzer->is_nucleon()) {
1140 type_catalyzer->pdgcode().antiparticle_sign()) {
1153 CollisionBranchList process_list;
1159 if (!same_sign && !any_nucleus) {
1160 return process_list;
1175 return process_list;
1180 CollisionBranchList process_list, channel_list;
1186 bool both_antinucleons =
1189 const ParticleTypePtrList& nuc_or_anti_nuc =
1192 const ParticleTypePtrList& delta_or_anti_delta =
1202 process_list.reserve(process_list.size() + channel_list.size());
1203 std::move(channel_list.begin(), channel_list.end(),
1204 std::inserter(process_list, process_list.end()));
1205 channel_list.clear();
1217 process_list.reserve(process_list.size() + channel_list.size());
1218 std::move(channel_list.begin(), channel_list.end(),
1219 std::inserter(process_list, process_list.end()));
1220 channel_list.clear();
1230 if (
deuteron && antideutron && pim && pi0 && pip &&
1232 const ParticleTypePtrList deutron_list = {
deuteron};
1233 const ParticleTypePtrList antideutron_list = {antideutron};
1234 const ParticleTypePtrList pion_list = {pim, pi0, pip};
1236 (both_antinucleons ? antideutron_list : deutron_list), pion_list,
1239 return pCM(sqrts, type_res_1.
mass(), type_res_2.
mass());
1241 process_list.reserve(process_list.size() + channel_list.size());
1242 std::move(channel_list.begin(), channel_list.end(),
1243 std::inserter(process_list, process_list.end()));
1244 channel_list.clear();
1247 return process_list;
1251 const double KN_offset)
const {
1257 const auto pdg_nucleon = type_nucleon.
pdgcode().
code();
1270 const double KN_to_KDelta_cutoff = KN_offset +
1275 bool incl_KN_to_KDelta =
1277 sqrt_s_ < KN_to_KDelta_cutoff;
1278 bool incl_Strangeness_exchange =
1281 CollisionBranchList process_list;
1286 switch (pdg_nucleon) {
1288 if (incl_Strangeness_exchange) {
1298 sqrt_s_, type_pi_m, type_Sigma_p);
1301 sqrt_s_, type_pi_p, type_Sigma_m);
1304 sqrt_s_, type_pi_z, type_Sigma_z);
1307 sqrt_s_, type_pi_z, type_Lambda);
1309 if (incl_KN_to_KN) {
1314 type_Kbar_z, type_n);
1319 if (incl_Strangeness_exchange) {
1327 sqrt_s_, type_pi_m, type_Sigma_z);
1330 sqrt_s_, type_pi_z, type_Sigma_m);
1333 sqrt_s_, type_pi_m, type_Lambda);
1338 if (incl_KN_to_KDelta) {
1347 type_nucleon, type_kaon,
1348 type_Kbar_z, type_Delta_pp_bar);
1350 sqrt_s_, type_Kbar_z, type_Delta_pp_bar);
1355 type_nucleon, type_kaon, type_K_m,
1358 sqrt_s_, type_K_m, type_Delta_p_bar);
1363 if (incl_KN_to_KDelta) {
1372 type_nucleon, type_kaon,
1373 type_Kbar_z, type_Delta_p_bar);
1375 sqrt_s_, type_Kbar_z, type_Delta_p_bar);
1380 type_nucleon, type_kaon, type_K_m,
1383 sqrt_s_, type_K_m, type_Delta_z_bar);
1385 if (incl_KN_to_KN) {
1390 type_Kbar_z, type_p_bar);
1400 switch (pdg_nucleon) {
1402 if (incl_KN_to_KDelta) {
1410 return sigma_kplusp *
1412 type_K_z, type_Delta_pp);
1414 sqrt_s_, type_K_z, type_Delta_pp);
1418 return sigma_kplusp *
1420 type_K_p, type_Delta_p);
1422 sqrt_s_, type_K_p, type_Delta_p);
1427 if (incl_KN_to_KDelta) {
1435 return sigma_kplusn *
1437 type_K_z, type_Delta_p);
1439 sqrt_s_, type_K_z, type_Delta_p);
1443 return sigma_kplusn *
1445 type_K_p, type_Delta_z);
1447 sqrt_s_, type_K_p, type_Delta_z);
1449 if (incl_KN_to_KN) {
1459 if (incl_Strangeness_exchange) {
1469 sqrt_s_, type_pi_p, type_Sigma_p_bar);
1472 sqrt_s_, type_pi_m, type_Sigma_m_bar);
1475 sqrt_s_, type_pi_z, type_Sigma_z_bar);
1478 sqrt_s_, type_pi_z, type_Lambda_bar);
1480 if (incl_KN_to_KN) {
1485 type_K_z, type_n_bar);
1490 if (incl_Strangeness_exchange) {
1498 sqrt_s_, type_pi_p, type_Sigma_z_bar);
1501 sqrt_s_, type_pi_z, type_Sigma_m_bar);
1504 sqrt_s_, type_pi_p, type_Lambda_bar);
1517 switch (pdg_nucleon) {
1519 if (incl_KN_to_KDelta) {
1527 return sigma_kplusn *
1529 type_K_z, type_Delta_p);
1531 sqrt_s_, type_K_z, type_Delta_p);
1535 return sigma_kplusn *
1537 type_K_p, type_Delta_z);
1539 sqrt_s_, type_K_p, type_Delta_z);
1541 if (incl_KN_to_KN) {
1556 if (incl_KN_to_KDelta) {
1564 return sigma_kplusp *
1566 type_K_z, type_Delta_z);
1568 sqrt_s_, type_K_z, type_Delta_z);
1572 return sigma_kplusp *
1574 type_K_p, type_Delta_m);
1576 sqrt_s_, type_K_p, type_Delta_m);
1581 if (incl_Strangeness_exchange) {
1589 sqrt_s_, type_pi_m, type_Sigma_z_bar);
1592 sqrt_s_, type_pi_z, type_Sigma_p_bar);
1595 sqrt_s_, type_pi_m, type_Lambda_bar);
1600 if (incl_Strangeness_exchange) {
1610 sqrt_s_, type_pi_m, type_Sigma_m_bar);
1613 sqrt_s_, type_pi_p, type_Sigma_p_bar);
1616 sqrt_s_, type_pi_z, type_Sigma_z_bar);
1619 sqrt_s_, type_pi_z, type_Lambda_bar);
1621 if (incl_KN_to_KN) {
1626 type_K_p, type_p_bar);
1634 switch (pdg_nucleon) {
1636 if (incl_Strangeness_exchange) {
1644 sqrt_s_, type_pi_z, type_Sigma_p);
1647 sqrt_s_, type_pi_p, type_Sigma_z);
1650 sqrt_s_, type_pi_p, type_Lambda);
1655 if (incl_Strangeness_exchange) {
1665 sqrt_s_, type_pi_p, type_Sigma_m);
1668 sqrt_s_, type_pi_m, type_Sigma_p);
1671 sqrt_s_, type_pi_z, type_Sigma_z);
1674 sqrt_s_, type_pi_z, type_Lambda);
1676 if (incl_KN_to_KN) {
1686 if (incl_KN_to_KDelta) {
1688 const auto& type_Kbar_z = type_kaon;
1695 type_nucleon, type_kaon,
1696 type_Kbar_z, type_Delta_bar_m);
1698 sqrt_s_, type_Kbar_z, type_Delta_bar_m);
1703 type_nucleon, type_kaon, type_K_m,
1706 sqrt_s_, type_K_m, type_Delta_bar_z);
1708 if (incl_KN_to_KN) {
1718 sqrt_s_, type_K_m, type_n_bar);
1723 if (incl_KN_to_KDelta) {
1732 type_nucleon, type_kaon,
1733 type_Kbar_z, type_Delta_z_bar);
1735 sqrt_s_, type_Kbar_z, type_Delta_z_bar);
1740 type_nucleon, type_kaon, type_K_m,
1743 sqrt_s_, type_K_m, type_Delta_m_bar);
1751 return process_list;
1756 CollisionBranchList process_list;
1758 return process_list;
1765 const auto pdg_delta = type_delta.
pdgcode().
code();
1773 switch (
pack(pdg_delta, pdg_kaon)) {
1782 type_kaon, type_p, type_K_p) *
1798 type_kaon, type_p_bar, type_K_m) *
1800 type_kaon, type_delta) *
1803 sqrt_s_, type_p_bar, type_K_m);
1816 type_kaon, type_n, type_K_p) *
1827 type_kaon, type_p, type_K_z) *
1845 type_kaon, type_n_bar, type_K_m) *
1847 type_kaon, type_delta) *
1850 sqrt_s_, type_n_bar, type_K_m);
1856 type_kaon, type_p_bar,
1859 type_kaon, type_delta) *
1862 sqrt_s_, type_p_bar, type_Kbar_z);
1873 type_kaon, type_n, type_K_z) *
1889 type_kaon, type_n_bar,
1892 type_kaon, type_delta) *
1895 sqrt_s_, type_n_bar, type_Kbar_z);
1902 return process_list;
1907 CollisionBranchList process_list;
1909 return process_list;
1916 const auto pdg_hyperon = type_hyperon.
pdgcode().
code();
1921 switch (
pack(pdg_hyperon, pdg_pion)) {
1942 type_p, type_Kbar_z) *
1945 sqrt_s_, type_p, type_Kbar_z);
1955 type_n_bar, type_K_p) *
1958 sqrt_s_, type_n_bar, type_K_p);
1968 type_p_bar, type_K_z) *
1971 sqrt_s_, type_p_bar, type_K_z);
1994 type_p, type_Kbar_z) *
1997 sqrt_s_, type_p, type_Kbar_z);
2007 type_n_bar, type_K_p) *
2010 sqrt_s_, type_n_bar, type_K_p);
2020 type_p_bar, type_K_z) *
2023 sqrt_s_, type_p_bar, type_K_z);
2046 type_p, type_Kbar_z) *
2049 sqrt_s_, type_p, type_Kbar_z);
2059 type_n_bar, type_K_p) *
2062 sqrt_s_, type_n_bar, type_K_p);
2072 type_p_bar, type_K_z) *
2075 sqrt_s_, type_p_bar, type_K_z);
2095 type_n, type_Kbar_z) *
2098 sqrt_s_, type_n, type_Kbar_z);
2110 type_p_bar, type_K_p) *
2113 sqrt_s_, type_p_bar, type_K_p);
2118 type_n_bar, type_K_z) *
2121 sqrt_s_, type_n_bar, type_K_z);
2141 type_n, type_Kbar_z) *
2144 sqrt_s_, type_n, type_Kbar_z);
2156 type_p_bar, type_K_p) *
2159 sqrt_s_, type_p_bar, type_K_p);
2164 type_n_bar, type_K_z) *
2167 sqrt_s_, type_n_bar, type_K_z);
2187 type_n, type_Kbar_z) *
2190 sqrt_s_, type_n, type_Kbar_z);
2202 type_p_bar, type_K_p) *
2205 sqrt_s_, type_p_bar, type_K_p);
2210 type_n_bar, type_K_z) *
2213 sqrt_s_, type_n_bar, type_K_z);
2233 type_n, type_Kbar_z) *
2236 sqrt_s_, type_n, type_Kbar_z);
2248 type_p_bar, type_K_p) *
2251 sqrt_s_, type_p_bar, type_K_p);
2256 type_n_bar, type_K_z) *
2259 sqrt_s_, type_n_bar, type_K_z);
2266 return process_list;
2272 const double s = sqrts * sqrts;
2277 const double matrix_element =
2278 295.5 + 2.862 / (0.00283735 +
pow_int(sqrts - 2.181, 2)) +
2279 0.0672 /
pow_int(tmp, 2) - 6.61753 / tmp;
2281 const double spin_factor =
2282 (produced_nucleus->
spin() + 1) * (type_pi.
spin() + 1);
2287 double xsection = matrix_element * spin_factor / (s * cm_mom);
2291 const double resonance_integral =
2293 xsection *= resonance_integral;
2295 ", matrix element: ", matrix_element,
2296 ", cm_momentum: ", cm_mom);
2303 CollisionBranchList process_list;
2313 ParticleTypePtrList nuc = (baryon_number > 0)
2320 nuc_a->charge() + nuc_b->charge()) {
2324 for (
const int twoI :
I_tot_range(*nuc_a, *nuc_b)) {
2326 type_a, type_b, *nuc_a, *nuc_b, twoI);
2333 const double matrix_element =
2335 if (matrix_element <= 0.) {
2339 const double spin_factor = (nuc_a->spin() + 1) * (nuc_b->spin() + 1);
2340 const int sym_fac_in =
2342 const int sym_fac_out =
2343 (nuc_a->iso_multiplet() == nuc_b->iso_multiplet()) ? 2 : 1;
2344 double p_cm_final =
pCM_from_s(s, nuc_a->mass(), nuc_b->mass());
2345 const double xsection = isospin_factor * spin_factor * sym_fac_in /
2346 sym_fac_out * p_cm_final * matrix_element /
2350 process_list.push_back(std::make_unique<CollisionBranch>(
2353 nuc_a->name(), nuc_b->name(),
2354 " at sqrts [GeV] = ", sqrts,
2355 " with cs[mb] = ", xsection);
2367 if (is_pid_or_pidprime &&
2374 if (produced_nucleus == &type_nucleus ||
2376 produced_nucleus->baryon_number() != type_nucleus.
baryon_number()) {
2379 const double xsection =
2381 process_list.push_back(std::make_unique<CollisionBranch>(
2384 type_pi.
name(), produced_nucleus->name(),
2385 " at ", sqrts,
" GeV, xs[mb] = ", xsection);
2388 return process_list;
2395 const double s = sqrts * sqrts;
2396 double matrix_element = 0.0;
2404 matrix_element = 79.0474 / std::pow(tmp, 0.7897) + 654.596 * tmp;
2409 matrix_element = 342.572 / std::pow(tmp, 0.6);
2411 const double spin_factor =
2412 (produced_nucleus->
spin() + 1) * (type_N.
spin() + 1);
2416 double xsection = matrix_element * spin_factor / (s * cm_mom);
2422 const double resonance_integral =
2424 xsection *= resonance_integral;
2435 CollisionBranchList process_list;
2437 return process_list;
2443 if (produced_nucleus == &type_nucleus ||
2445 produced_nucleus->baryon_number() != type_nucleus.
baryon_number()) {
2450 process_list.push_back(std::make_unique<CollisionBranch>(
2453 type_N.
name(), produced_nucleus->name(),
" at ",
2454 sqrt_s_,
" GeV, xs[mb] = ", xsection);
2456 return process_list;
2460 double total_string_xs,
StringProcess* string_process,
bool use_AQM)
const {
2461 if (!string_process) {
2462 throw std::runtime_error(
"string_process should be initialized.");
2465 CollisionBranchList channel_list;
2466 if (total_string_xs <= 0.) {
2467 return channel_list;
2476 std::array<int, 2> pdgid;
2477 double AQM_factor = 1.;
2478 for (
int i = 0; i < 2; i++) {
2486 bool can_annihilate =
false;
2489 for (
int iq = 1; iq <= n_q_types; iq++) {
2490 std::array<int, 2> nquark;
2491 for (
int i = 0; i < 2; i++) {
2495 if (nquark[0] != 0 && nquark[1] != 0) {
2496 can_annihilate =
true;
2512 std::array<double, 3> xs =
2515 for (
int ip = 0; ip < 3; ip++) {
2516 xs[ip] *= AQM_factor;
2519 double single_diffr_AX = xs[0], single_diffr_XB = xs[1], double_diffr = xs[2];
2520 double single_diffr = single_diffr_AX + single_diffr_XB;
2521 double diffractive = single_diffr + double_diffr;
2527 double sig_annihilation = 0.0;
2528 if (can_annihilate) {
2534 xs_param *= AQM_factor;
2536 sig_annihilation = std::min(total_string_xs, xs_param);
2539 const double nondiffractive_all =
2540 std::max(0., total_string_xs - sig_annihilation - diffractive);
2541 diffractive = total_string_xs - sig_annihilation - nondiffractive_all;
2542 double_diffr = std::max(0., diffractive - single_diffr);
2543 const double a = (diffractive - double_diffr) / single_diffr;
2544 single_diffr_AX *= a;
2545 single_diffr_XB *= a;
2546 assert(std::abs(single_diffr_AX + single_diffr_XB + double_diffr +
2547 sig_annihilation + nondiffractive_all - total_string_xs) <
2550 double nondiffractive_soft = 0.;
2551 double nondiffractive_hard = 0.;
2552 if (nondiffractive_all > 0.) {
2557 nondiffractive_soft =
2558 nondiffractive_all * std::exp(-hard_xsec / nondiffractive_all);
2559 nondiffractive_hard = nondiffractive_all - nondiffractive_soft;
2570 const double sig_string_soft = total_string_xs - nondiffractive_hard;
2573 if (sig_string_soft > 0.) {
2574 channel_list.push_back(std::make_unique<CollisionBranch>(
2576 channel_list.push_back(std::make_unique<CollisionBranch>(
2578 channel_list.push_back(std::make_unique<CollisionBranch>(
2580 channel_list.push_back(std::make_unique<CollisionBranch>(
2582 if (can_annihilate) {
2583 channel_list.push_back(std::make_unique<CollisionBranch>(
2587 if (nondiffractive_hard > 0.) {
2588 channel_list.push_back(std::make_unique<CollisionBranch>(
2591 return channel_list;
2604 if (pdg_a == pdg_b) {
2621 auto [region_lower, region_upper] = transition_high_energy.
sqrts_range_NN;
2623 xs = xs_l * (1. - prob_high) + xs_h * prob_high;
2658 double cross_sec = 0.;
2693 return std::make_unique<CollisionBranch>(
2694 type_pip, type_pim, type_pip, type_pim, type_piz, nnbar_xsec * scale_xs,
2699 const double current_xs,
const double scale_xs)
const {
2703 double nnbar_xsec = std::max(0.,
ppbar_total(s) * scale_xs - current_xs);
2712 CollisionBranchList channel_list;
2726 if (
sqrt_s_ - 2 * type_N.mass() < 0) {
2727 return channel_list;
2731 type_N, type_Nbar) *
2734 channel_list.push_back(std::make_unique<CollisionBranch>(
2736 channel_list.push_back(std::make_unique<CollisionBranch>(
2740 return channel_list;
2744 const bool is_anti_particles)
const {
2747 CollisionBranchList process_list;
2753 ParticleTypePtrList nuc_or_anti_nuc;
2754 if (is_anti_particles) {
2765 nuc_a->charge() + nuc_b->charge()) {
2769 for (
const int twoI :
I_tot_range(*nuc_a, *nuc_b)) {
2771 type_a, type_b, *nuc_a, *nuc_b, twoI);
2778 const double matrix_element =
2780 if (matrix_element <= 0.) {
2788 const double spin_factor = (nuc_a->spin() + 1) * (nuc_b->spin() + 1);
2789 const int sym_fac_in =
2791 const int sym_fac_out =
2792 (nuc_a->iso_multiplet() == nuc_b->iso_multiplet()) ? 2 : 1;
2793 const double xsection = isospin_factor * spin_factor * sym_fac_in /
2794 sym_fac_out * p_cm_final * matrix_element /
2798 process_list.push_back(std::make_unique<CollisionBranch>(
2801 "2->2 absorption with original particles: ", type_a, type_b);
2806 return process_list;
2813 const double m_a = type_a.
mass();
2814 const double m_b = type_b.
mass();
2815 const double msqr = 2. * (m_a * m_a + m_b * m_b);
2825 const double uplmt = m_a + m_b + 3.0 * (w_a + w_b) + 3.0;
2826 if (sqrts > uplmt) {
2833 return 68. / std::pow(sqrts - 1.104, 1.951);
2842 }
else if (twoI == 0) {
2843 const double parametrization = 14. / msqr;
2850 return 6.5 * parametrization;
2852 return parametrization;
2865 }
else if (twoI == 0) {
2879 }
else if (twoI == 0) {
2889 (1.0 - std::exp(-(sqrts - 2.0) * 20.0));
2896 template <
class IntegrationMethod>
2898 const ParticleTypePtrList& list_res_1,
2899 const ParticleTypePtrList& list_res_2,
2900 const IntegrationMethod integrator)
const {
2904 CollisionBranchList channel_list;
2912 if (type_res_1->charge() + type_res_2->charge() !=
2918 for (
const int twoI :
I_tot_range(type_particle_a, type_particle_b)) {
2920 type_particle_a, type_particle_b, *type_res_1, *type_res_2, twoI);
2927 const double lower_limit = type_res_1->min_mass_kinematic();
2928 const double upper_limit =
sqrt_s_ - type_res_2->mass();
2932 if (upper_limit - lower_limit < 1E-3) {
2938 sqrt_s_, *type_res_1, *type_res_2, twoI);
2939 if (matrix_element <= 0.) {
2946 const double resonance_integral = integrator(*type_res_1, *type_res_2);
2951 const double spin_factor =
2952 (type_res_1->spin() + 1) * (type_res_2->spin() + 1);
2953 const double xsection = isospin_factor * spin_factor * matrix_element *
2957 channel_list.push_back(std::make_unique<CollisionBranch>(
2960 "Found 2->2 creation process for resonance ", type_res_1,
", ",
2963 type_particle_a, type_particle_b);
2968 return channel_list;
2981 const bool treat_BBbar_with_strings =
2983 const bool is_NN_scattering =
2986 const bool is_BBbar_scattering =
2995 const bool is_AQM_scattering =
3002 const double mass_sum =
3005 if (!is_NN_scattering && !is_BBbar_scattering && !is_Npi_scattering &&
3006 !is_AQM_scattering) {
3010 }
else if (is_BBbar_scattering) {
3017 const bool is_KplusP =
3030 }
else if (pdg1.
is_pion() && pdg2.is_pion()) {
3036 return static_cast<double>(
sqrt_s_ > mass_sum + aqm_offset);
3040 double region_lower, region_upper;
3041 if (is_Npi_scattering) {
3042 std::tie(region_lower, region_upper) =
3044 }
else if (is_NN_scattering) {
3045 std::tie(region_lower, region_upper) =
3050 region_lower = mass_sum + aqm_offset;
3051 region_upper = mass_sum + aqm_offset +
3057 }
else if (
sqrt_s_ < region_lower) {
3067 const double region_lower,
const double region_upper)
const {
3076 double x = (
sqrt_s_ - 0.5 * (region_lower + region_upper)) /
3077 (region_upper - region_lower);
3078 assert(x >= -0.5 && x <= 0.5);
3079 double prob = 0.5 * (std::sin(M_PI * x) + 1.0);
3080 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.
double parametrized_total(const ScatterActionsFinderParameters &finder_parameters) const
Select the parametrization for the total cross section, given the types of incoming particles.
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
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 kplusp_total(double mandelstam_s)
K+ p total cross section parametrization.
double pizeropizero_total(double sqrts)
pi0 pi0 total cross section parametrized from PDG2018, smoothed using the LOWESS algorithm.
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 pipluspiminus_total(double sqrts)
pi+ pi- total cross section parametrized from PDG2018, smoothed using the LOWESS algorithm.
ParticleTypePtrList list_possible_resonances(const ParticleTypePtr type_a, const ParticleTypePtr type_b)
Lists the possible resonances that decay into two particles.
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 np_total(double mandelstam_s)
np total cross section parametrization Sources: low-p: Cugnon:1996kh highest-p: Buss:2011mx
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
double piminusp_total(double sqrts)
pi- p total cross section parametrized from PDG2018, smoothed using the LOWESS algorithm.
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....
double pp_total(double mandelstam_s)
pp total cross section parametrization Sources: low-p: Cugnon:1996kh highest-p: Buss:2011mx
T pCM_from_s(const T s, const T mass_a, const T mass_b) noexcept
double kplusn_total(double mandelstam_s)
K+ n total cross section parametrization.
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 kminusp_total(double mandelstam_s)
K- p total cross section parametrization.
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 piplusp_total(double sqrts)
pi+ p total cross section parametrized from PDG2018, smoothed using the LOWESS algorithm.
double piminusp_high_energy(double mandelstam_s)
pi-p total cross section at high energies
double kminusn_total(double mandelstam_s)
K- n total cross section parametrization.
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 + ...