ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrkDriftCircleMath::RotPhi Class Reference

#include <RotPhi.h>

Collaboration diagram for TrkDriftCircleMath::RotPhi:

Public Member Functions

 RotPhi (double phi)
 
 RotPhi (const RotPhi &)=default
 
 RotPhi (RotPhi &&)=default
 
RotPhioperator= (RotPhi &&)=default
 
RotPhioperator= (const RotPhi &)=default
 
double phi () const
 
double cosphi () const
 
double sinphi () const
 
double xval (const LocVec2D &lv) const
 
double yval (const LocVec2D &lv) const
 
LocVec2D operator* (const LocVec2D &lv) const
 
RotPhi inverse () const
 
void set (double phi)
 

Private Attributes

double m_phi {0}
 
double m_cosphi {0}
 
double m_sinphi {0}
 

Detailed Description

Definition at line 14 of file RotPhi.h.

Constructor & Destructor Documentation

◆ RotPhi() [1/3]

TrkDriftCircleMath::RotPhi::RotPhi ( double  phi)
inline

Definition at line 16 of file RotPhi.h.

◆ RotPhi() [2/3]

TrkDriftCircleMath::RotPhi::RotPhi ( const RotPhi )
default

◆ RotPhi() [3/3]

TrkDriftCircleMath::RotPhi::RotPhi ( RotPhi &&  )
default

Member Function Documentation

◆ cosphi()

double TrkDriftCircleMath::RotPhi::cosphi ( ) const
inline

Definition at line 25 of file RotPhi.h.

25 { return m_cosphi; }

◆ inverse()

RotPhi TrkDriftCircleMath::RotPhi::inverse ( ) const
inline

Definition at line 32 of file RotPhi.h.

32 { return RotPhi(-phi()); }

◆ operator*()

LocVec2D TrkDriftCircleMath::RotPhi::operator* ( const LocVec2D lv) const
inline

Definition at line 30 of file RotPhi.h.

30 {return LocVec2D{xval(lv), yval(lv)}; }

◆ operator=() [1/2]

RotPhi& TrkDriftCircleMath::RotPhi::operator= ( const RotPhi )
default

◆ operator=() [2/2]

RotPhi& TrkDriftCircleMath::RotPhi::operator= ( RotPhi &&  )
default

◆ phi()

double TrkDriftCircleMath::RotPhi::phi ( ) const
inline

Definition at line 24 of file RotPhi.h.

24 { return m_phi; }

◆ set()

void TrkDriftCircleMath::RotPhi::set ( double  phi)
inline

Definition at line 34 of file RotPhi.h.

34  {
35  m_phi = phi;
38  }

◆ sinphi()

double TrkDriftCircleMath::RotPhi::sinphi ( ) const
inline

Definition at line 26 of file RotPhi.h.

26 { return m_sinphi; }

◆ xval()

double TrkDriftCircleMath::RotPhi::xval ( const LocVec2D lv) const
inline

Definition at line 28 of file RotPhi.h.

28 { return cosphi() * lv.x() + sinphi() * lv.y(); }

◆ yval()

double TrkDriftCircleMath::RotPhi::yval ( const LocVec2D lv) const
inline

Definition at line 29 of file RotPhi.h.

29 { return -sinphi() * lv.x() + cosphi() * lv.y(); }

Member Data Documentation

◆ m_cosphi

double TrkDriftCircleMath::RotPhi::m_cosphi {0}
private

Definition at line 42 of file RotPhi.h.

◆ m_phi

double TrkDriftCircleMath::RotPhi::m_phi {0}
private

Definition at line 41 of file RotPhi.h.

◆ m_sinphi

double TrkDriftCircleMath::RotPhi::m_sinphi {0}
private

Definition at line 43 of file RotPhi.h.


The documentation for this class was generated from the following file:
TrkDriftCircleMath::RotPhi::cosphi
double cosphi() const
Definition: RotPhi.h:25
TrkDriftCircleMath::RotPhi::RotPhi
RotPhi(double phi)
Definition: RotPhi.h:16
TrkDriftCircleMath::RotPhi::xval
double xval(const LocVec2D &lv) const
Definition: RotPhi.h:28
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
TrkDriftCircleMath::RotPhi::sinphi
double sinphi() const
Definition: RotPhi.h:26
TrkDriftCircleMath::RotPhi::m_phi
double m_phi
Definition: RotPhi.h:41
TrkDriftCircleMath::RotPhi::yval
double yval(const LocVec2D &lv) const
Definition: RotPhi.h:29
TrkDriftCircleMath::RotPhi::phi
double phi() const
Definition: RotPhi.h:24
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
TrkDriftCircleMath::RotPhi::m_sinphi
double m_sinphi
Definition: RotPhi.h:43
TrkDriftCircleMath::RotPhi::m_cosphi
double m_cosphi
Definition: RotPhi.h:42