Version: SMASH-2.0
anonymous_namespace{crosssectionsphoton.cc} Namespace Reference

Functions

double HeavisideTheta (double x)
 Heavyside step function. More...
 
double cut_off (const double sigma_mb)
 Cross section after cut off. More...
 

Function Documentation

◆ HeavisideTheta()

double anonymous_namespace{crosssectionsphoton.cc}::HeavisideTheta ( double  x)

Heavyside step function.

Parameters
[in]xvalue to be compared to zero
Returns
0 if x is smaller than 0, else 1

Definition at line 30 of file crosssectionsphoton.cc.

30  {
31  if (x >= 0.0) {
32  return 1.0;
33  } else {
34  return 0.0;
35  }
36 }
Here is the caller graph for this function:

◆ cut_off()

double anonymous_namespace{crosssectionsphoton.cc}::cut_off ( const double  sigma_mb)

Cross section after cut off.

Photon cross sections diverge tremendously at the threshold which becomes particularly problematic when running with broad rho mesons. Then the actual photon cross section is used for the weight: W = Sigma_photon/Sigma_hadron. If the photon cross section diverges, the weight becomes huge and we significantly overestimate photon production. This cutoff fixes the problem.

Either the cross section is returned or, if the cross section i larger than the cut off, the cut off value is returned.

Parameters
[in]sigma_mbcross section before cut off [mb]
Returns
Cross section after cut off [mb]

Definition at line 53 of file crosssectionsphoton.cc.

53  {
54  constexpr double maximum_cross_section_photon = 200.0; // [mb]
55  return (sigma_mb > maximum_cross_section_photon)
56  ? maximum_cross_section_photon
57  : sigma_mb;
58 }
Here is the caller graph for this function: