public final class TRFMath extends Object
Modifier and Type | Field and Description |
---|---|
static double |
BFAC
Factor connecting curvature to momentum.
|
static double |
CLIGHT
Speed of light.
|
static double |
PI2
PI/2
|
static double |
TWOPI
2*PI
|
Modifier | Constructor and Description |
---|---|
private |
TRFMath() |
Modifier and Type | Method and Description |
---|---|
static double |
asinrat(double x)
asinrat = asin(x)/x
|
static double |
fmod1(double value,
double range)
Similar to fmod but returns value in positive range only.
|
static double |
fmod2(double value,
double range)
Similar to fmod1 but returns range (-R/2,R/2) instead of (0,R).
|
static boolean |
isEqual(double x1,
double x2)
Function is_equal returns true if values are exactly the same
or differ by a very small amount.
|
static boolean |
isZero(double x)
Function is_zero returns true if the value is within epsilon
of zero.
|
public static double TWOPI
public static double PI2
public static double CLIGHT
public static double BFAC
public static double fmod1(double value, double range)
value
- double value to convert.range
- double range for modulus.public static double fmod2(double value, double range)
value
- double value to convert.range
- double half-range for modulus.public static double asinrat(double x)
x
- value for which to calculate asin(x)/xpublic static boolean isZero(double x)
x
- value to check against zeropublic static boolean isEqual(double x1, double x2)
x1
- value 1x2
- value 2Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.