#include <Angle.h>
|
typedef std::pair< double, double > | Interval |
| Shortcut for std::pair used as interval.
|
|
- See also
- BaseAngle Phi specific.
Definition at line 148 of file Angle.h.
◆ PhiAngle()
Constructor using radian units.
Phi in [0, 2pi]
- Parameters
-
angle | phi angle |
error | error on the phi angle |
Definition at line 156 of file Angle.h.
◆ contains()
bool contains |
( |
const PhiAngle & |
angle | ) |
const |
|
inline |
Check if two angles are compatible.
- Parameters
-
angle | second angle to compare |
- Returns
- true if within one standard deviation
Definition at line 165 of file Angle.h.
◆ containsIn()
bool containsIn |
( |
const PhiAngle & |
angle, |
|
|
double |
sigma |
|
) |
| const |
|
inline |
Check if two angles are compatible.
- Parameters
-
angle | second angle to compare to |
sigma | width of the error band in standard deviations |
- Returns
- true if within sigma standard deviations
Definition at line 175 of file Angle.h.
◆ getLowerIntervalBoundary()
double getLowerIntervalBoundary |
( |
double |
sigma = 1 | ) |
const |
|
inlineinherited |
Getter for the lower interval bound: angle-sigma*error.
- Parameters
-
sigma | width of the error interval in standard deviations |
- Returns
- angle - sigma * error
Definition at line 55 of file Angle.h.
◆ getUpperIntervalBoundary()
double getUpperIntervalBoundary |
( |
double |
sigma = 1 | ) |
const |
|
inlineinherited |
Getter for the upper interval bound: angle+sigma*error.
- Parameters
-
sigma | width of the error interval in standard deviations |
- Returns
- angle + sigma * error
Definition at line 61 of file Angle.h.
◆ intervalsCompatible()
bool intervalsCompatible |
( |
const Interval & |
x_interval, |
|
|
const Interval & |
y_interval |
|
) |
| const |
|
inlineprotectedinherited |
Checks if the intervals overlap at some point.
If comparing phi angles, be sure to have the interval in a way this function can handle it, meaning always between [0, 2pi).
- Parameters
-
x_interval | first interval to check |
y_interval | second interval |
- Returns
- true if x and y overlap
Definition at line 76 of file Angle.h.
The documentation for this class was generated from the following file:
- framework/utilities/include/Angle.h