Functions | |
double | HeavisideTheta (double x) |
Heavyside step function. More... | |
double | cut_off (const double sigma_mb) |
Cross section after cut off. More... | |
double anonymous_namespace{crosssectionsphoton.cc}::HeavisideTheta | ( | double | x | ) |
Heavyside step function.
[in] | x | value to be compared to zero |
Definition at line 30 of file crosssectionsphoton.cc.
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.
[in] | sigma_mb | cross section before cut off [mb] |
Definition at line 53 of file crosssectionsphoton.cc.