#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 Phi &a) |
Phi & | operator+= (const T &a) |
Standard arithmetics. | |
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 | phi () const |
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.
Definition at line 54 of file Phi.h.
Referenced by TrackerHitAnalyzer::analyze(), and CSCRecHit2DValidation::analyze().
Definition at line 60 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.
{ return theValue;}
Definition at line 45 of file Phi.h.
Referenced by Geom::Phi< float >::operator+=().
{return operator+=(a.value());}
Definition at line 48 of file Phi.h.
Referenced by Geom::Phi< float >::operator-=().
{return operator-=(a.value());}
Definition at line 41 of file Phi.h.
Referenced by L2MuonSeedGenerator::associateOfflineSeedToL1(), ClusterShapeAlgo::Calculate_Covariances(), EcalClusterTools::covariances(), CSCSegAlgoTC::dumpHits(), CSCSegAlgoSK::dumpHits(), and CaloGeometryHelper::getClosestCell().
{ return 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< align::Scalar >::Basic3DVector(), Basic3DVector< long double >::Basic3DVector(), WMuNuValidator::filter(), Geom::Phi< float >::operator+=(), Geom::operator-(), Geom::Phi< float >::operator-=(), Geom::operator/(), and PhiBorderFinder::PhiBorderFinder().
{ return theValue;}
Definition at line 58 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/=(), Geom::Phi< float >::phi(), and Geom::Phi< float >::value().