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

Functions

double HeavisideTheta (double x)
 Heavyside step function. 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: