#include <OnePiRange.h>
Public Member Functions | |
T | degrees () const |
T | eta () const |
Return the pseudorapidity. More... | |
OnePiRange () | |
Default constructor does not initialise - just as double. More... | |
OnePiRange (const T &val) | |
Constructor from T, does not provide automatic conversion. More... | |
template<class T1 > | |
operator OnePiRange< T1 > () | |
Template argument conversion. More... | |
operator T () const | |
conversion operator makes transparent use possible. More... | |
OnePiRange & | operator*= (const T &a) |
OnePiRange & | operator+= (const T &a) |
OnePiRange & | operator+= (const OnePiRange &a) |
OnePiRange & | operator-= (const T &a) |
OnePiRange & | operator-= (const OnePiRange &a) |
OnePiRange & | operator/= (const T &a) |
T | value () const |
Explicit access to value in case implicit conversion not OK. More... | |
Private Member Functions | |
void | normalize () |
Private Attributes | |
T | theValue |
A class for polar angle represantation. The use of OnePiRange<T> is tranparant due to the implicit conversion to T Constructs like cos(theta) work as with float or double. The difference with respect to built-in types is that OnePiRange is kept in the range [0, pi], and this is consistently implemented in aritmetic operations. In other words, OnePiRange implements "modulo(pi)" arithmetics.
Definition at line 20 of file OnePiRange.h.
|
inline |
Default constructor does not initialise - just as double.
Definition at line 24 of file OnePiRange.h.
|
inlineexplicit |
Constructor from T, does not provide automatic conversion.
Definition at line 27 of file OnePiRange.h.
References Geom::OnePiRange< T >::normalize().
|
inline |
Definition at line 49 of file OnePiRange.h.
References Geom::pi(), and Geom::OnePiRange< T >::theValue.
|
inline |
Return the pseudorapidity.
Definition at line 53 of file OnePiRange.h.
References fff_deleter::log, funct::tan(), and Geom::OnePiRange< T >::theValue.
|
inlineprivate |
Definition at line 60 of file OnePiRange.h.
References Geom::pi(), and Geom::OnePiRange< T >::theValue.
Referenced by Geom::OnePiRange< T >::OnePiRange(), Geom::OnePiRange< T >::operator*=(), Geom::OnePiRange< T >::operator+=(), Geom::OnePiRange< T >::operator-=(), and Geom::OnePiRange< T >::operator/=().
Template argument conversion.
Definition at line 33 of file OnePiRange.h.
References Geom::OnePiRange< T >::theValue.
|
inline |
conversion operator makes transparent use possible.
Definition at line 30 of file OnePiRange.h.
References Geom::OnePiRange< T >::theValue.
|
inline |
Definition at line 45 of file OnePiRange.h.
References a, Geom::OnePiRange< T >::normalize(), and Geom::OnePiRange< T >::theValue.
|
inline |
Definition at line 39 of file OnePiRange.h.
References a, Geom::OnePiRange< T >::normalize(), and Geom::OnePiRange< T >::theValue.
|
inline |
Definition at line 40 of file OnePiRange.h.
References Geom::OnePiRange< T >::operator+=(), and Geom::OnePiRange< T >::value().
Referenced by Geom::OnePiRange< T >::operator+=().
|
inline |
Definition at line 42 of file OnePiRange.h.
References a, Geom::OnePiRange< T >::normalize(), and Geom::OnePiRange< T >::theValue.
|
inline |
Definition at line 43 of file OnePiRange.h.
References Geom::OnePiRange< T >::operator-=(), and Geom::OnePiRange< T >::value().
Referenced by Geom::OnePiRange< T >::operator-=().
|
inline |
Definition at line 47 of file OnePiRange.h.
References a, Geom::OnePiRange< T >::normalize(), and Geom::OnePiRange< T >::theValue.
|
inline |
Explicit access to value in case implicit conversion not OK.
Definition at line 36 of file OnePiRange.h.
References Geom::OnePiRange< T >::theValue.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), Geom::OnePiRange< T >::operator+=(), Geom::operator-(), Geom::OnePiRange< T >::operator-=(), and Geom::operator/().
|
private |
Definition at line 58 of file OnePiRange.h.
Referenced by Geom::OnePiRange< T >::degrees(), Geom::OnePiRange< T >::eta(), Geom::OnePiRange< T >::normalize(), Geom::OnePiRange< T >::operator OnePiRange< T1 >(), Geom::OnePiRange< T >::operator T(), Geom::OnePiRange< T >::operator*=(), Geom::OnePiRange< T >::operator+=(), Geom::OnePiRange< T >::operator-=(), Geom::OnePiRange< T >::operator/=(), and Geom::OnePiRange< T >::value().