GENIEGenerator
Loading...
Searching...
No Matches
anonymous_namespace{TabulatedLabFrameHadronTensor.cxx} Namespace Reference

Enumerations

enum  kHadronTensorGridFlag_t { kStartAndStep = 0 , kExplicitValues = 1 , kHadronTensorGridFlag_COUNT = 2 }

Functions

double real_sqrt (double x)

Enumeration Type Documentation

◆ kHadronTensorGridFlag_t

enum anonymous_namespace{TabulatedLabFrameHadronTensor.cxx}::kHadronTensorGridFlag_t

Enumerated type that represents the format used to read in grid points from the hadron tensor data file

Enumerator
kStartAndStep 

A starting value and a step size are used to define a regular grid.

kExplicitValues 

An explicit table of grid points is used to define an irregular grid.

kHadronTensorGridFlag_COUNT 

Dummy value used for error checking.

Definition at line 19 of file TabulatedLabFrameHadronTensor.cxx.

19 {
20 /// A starting value and a step size are used to define a regular grid
21 kStartAndStep = 0,
22 /// An explicit table of grid points is used to define an irregular grid
24 /// Dummy value used for error checking
26 };
@ kStartAndStep
A starting value and a step size are used to define a regular grid.
@ kExplicitValues
An explicit table of grid points is used to define an irregular grid.

Function Documentation

◆ real_sqrt()

double anonymous_namespace{TabulatedLabFrameHadronTensor.cxx}::real_sqrt ( double x)

Definition of sqrt() that returns zero if the argument is negative. Used to prevent spurious NaNs due to numerical roundoff.

Definition at line 30 of file TabulatedLabFrameHadronTensor.cxx.

30 {
31 if (x < 0.) return 0.;
32 else return std::sqrt(x);
33 }