#include <Phi.h>
Public Member Functions | |
T | degrees () const |
template<class T1 > | |
operator Phi< T1 > () | |
Template argument conversion. More... | |
operator T () const | |
conversion operator makes transparent use possible. More... | |
Phi & | operator*= (const T &a) |
Phi & | operator+= (const T &a) |
Standard arithmetics. More... | |
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. More... | |
Phi (const T &val) | |
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 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.
Definition at line 51 of file Phi.h.
Referenced by CSCRecHit2DValidation::analyze(), TrackerHitAnalyzer::analyze(), and Geant4ePropagator::propagate().
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().
conversion operator makes transparent use possible.
Definition at line 32 of file Phi.h.
References Geom::Phi< T >::theValue.
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< long double >::Basic3DVector(), Basic3DVector< align::Scalar >::Basic3DVector(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), WMuNuValidator::filter(), 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::Phi< float >::operator+=(), Geom::operator-(), Geom::Phi< float >::operator-=(), Geom::operator/(), and PhiBorderFinder::PhiBorderFinder().
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().