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

32  {
33  if (x >= 0.0) {
34  return 1.0;
35  } else {
36  return 0.0;
37  }
38 }