1 #ifndef GeometryVector_Geom_OnePiRange_h 2 #define GeometryVector_Geom_OnePiRange_h 61 if( theValue > (
T)
pi() || theValue < 0) {
62 theValue = fmod( theValue, (
T)
pi());
64 if (theValue < 0.) theValue +=
pi();
80 template <
class T,
class Scalar>
85 template <
class T,
class Scalar>
97 template <
class T,
class Scalar>
103 template <
class T,
class Scalar>
109 template <
class T,
class Scalar>
T operator/(const OnePiRange< T > &a, const OnePiRange< T > &b)
Division.
OnePiRange< T > operator-(const OnePiRange< T > &a)
T eta() const
Return the pseudorapidity.
OnePiRange & operator+=(const T &a)
OnePiRange & operator/=(const T &a)
OnePiRange & operator+=(const OnePiRange &a)
OnePiRange< T > operator+(const OnePiRange< T > &a, const OnePiRange< T > &b)
Addition.
Tan< T >::type tan(const T &t)
T value() const
Explicit access to value in case implicit conversion not OK.
OnePiRange< T > operator*(const OnePiRange< T > &a, const Scalar &b)
Multiplication with scalar, does not change the precision.
OnePiRange()
Default constructor does not initialise - just as double.
OnePiRange(const T &val)
Constructor from T, does not provide automatic conversion.
OnePiRange & operator-=(const T &a)
OnePiRange & operator-=(const OnePiRange &a)
OnePiRange & operator*=(const T &a)