#include <Phi.h>
Public Member Functions | |
T | degrees () const |
template<class T1 > | |
operator Phi< T1 > () | |
Template argument conversion. | |
operator T () const | |
conversion operator makes transparent use possible. | |
Phi & | operator*= (const T &a) |
Phi & | operator+= (const T &a) |
Standard arithmetics. | |
Phi & | operator+= (const Phi &a) |
Phi & | operator-= (const T &a) |
Phi & | operator-= (const Phi &a) |
Phi & | operator/= (const T &a) |
Phi () | |
Default constructor does not initialise - just as double. | |
Phi (const T &val) | |
T | value () const |
Explicit access to value in case implicit conversion not OK. | |
Private Member Functions | |
void | normalize () |
Private Attributes | |
T | theValue |
A class for azimuthal angle represantation and algebra. The use of Phi<T> is tranparant due to the implicit conversion to T Constructs like cos(phi) work as with float or double. The difference with respect to built-in types is that Phi is kept in the range (-pi, pi], and this is consistently implemented in aritmetic operations. In other words, Phi implements "modulo(2 pi)" arithmetics.
T Geom::Phi< T >::degrees | ( | ) | const [inline] |
Definition at line 51 of file Phi.h.
Referenced by CSCRecHit2DValidation::analyze(), TrackerHitAnalyzer::analyze(), and Geant4ePropagator::propagate().
void Geom::Phi< T >::normalize | ( | ) | [inline, private] |
Definition at line 57 of file Phi.h.
Referenced by Geom::Phi< float >::operator*=(), Geom::Phi< float >::operator+=(), Geom::Phi< float >::operator-=(), Geom::Phi< float >::operator/=(), and Geom::Phi< float >::Phi().
Geom::Phi< T >::operator T | ( | ) | const [inline] |
conversion operator makes transparent use possible.
Definition at line 32 of file Phi.h.
References Geom::Phi< T >::theValue.
{ return theValue;}
Definition at line 42 of file Phi.h.
Referenced by Geom::Phi< float >::operator+=().
{return operator+=(a.value());}
Definition at line 45 of file Phi.h.
Referenced by Geom::Phi< float >::operator-=().
{return operator-=(a.value());}
T Geom::Phi< T >::value | ( | ) | const [inline] |
Explicit access to value in case implicit conversion not OK.
Definition at line 38 of file Phi.h.
Referenced by reco::WMuNuCandidate::acop(), EwkMuDQM::analyze(), Basic3DVector< align::Scalar >::Basic3DVector(), WMuNuValidator::filter(), Geom::Phi< float >::operator+=(), Geom::operator-(), Geom::Phi< float >::operator-=(), Geom::operator/(), and PhiBorderFinder::PhiBorderFinder().
{ return theValue;}
Definition at line 55 of file Phi.h.
Referenced by Geom::Phi< float >::degrees(), Geom::Phi< float >::normalize(), Geom::Phi< float >::operator Phi< T1 >(), Geom::Phi< T >::operator T(), Geom::Phi< float >::operator*=(), Geom::Phi< float >::operator+=(), Geom::Phi< float >::operator-=(), Geom::Phi< float >::operator/=(), and Geom::Phi< float >::value().