36 namespace field_utils {
52 error2 =
std::max(error2, momentumError2);
54 G4Exception(
"field_utils::relativeError",
"Field001",
62 error2 =
std::max(error2, spinError2);
65 return std::sqrt(error2) / errorTolerance;
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double relativeError(const G4double y[], const G4double yerr[], const G4double hstep, const G4double errorTolerance=1)
G4double getValue2(const ArrayType &array, Value1D value)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)