Version: SMASH-1.5
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 33 of file crosssectionsphoton.cc.

33  {
34  if (x >= 0.0) {
35  return 1.0;
36  } else {
37  return 0.0;
38  }
39 }
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.

Cross sections larger than a certain value are cut off in smash. Either the cross section is returned or, if the cross section is 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 51 of file crosssectionsphoton.cc.

51  {
52  return (sigma_mb > smash::maximum_cross_section)
54  : sigma_mb;
55 }
constexpr double maximum_cross_section
The maximal cross section (in mb) for which it is guaranteed that all collisions with this cross sect...
Definition: constants.h:108
Here is the caller graph for this function: