#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 | phi () const |
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 54 of file Phi.h.
Referenced by CSCRecHit2DValidation::analyze(), and TrackerHitAnalyzer::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.
Definition at line 41 of file Phi.h.
Referenced by L2MuonSeedGenerator::associateOfflineSeedToL1(), ClusterShapeAlgo::Calculate_Covariances(), PixelForwardLayerPhase1::computeCrossings(), MuonTrackResidualAnalyzer::computeResolution(), EcalClusterToolsT< noZS >::covariances(), CSCSegAlgoSK::dumpHits(), CSCSegAlgoTC::dumpHits(), CaloGeometryHelper::getClosestCell(), AnalyticalPropagator::propagateParametersOnPlane(), spr::propagateTrackerEnd(), and CSCSegAlgoShowering::showerSeg().
Explicit access to value in case implicit conversion not OK.
Definition at line 38 of file Phi.h.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), 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(), RPCSeedPattern::extropolateStep(), 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/(), PhiBorderFinder::PhiBorderFinder(), and RPCSeedPattern::SegmentAlgorithmSpecial().
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().