ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::SCT_ForwardPolarPosition Class Reference

2D position in polar coordinates for the polar frame in the SCT endcaps. More...

#include <SCT_ForwardPolarPosition.h>

Collaboration diagram for InDetDD::SCT_ForwardPolarPosition:

Public Member Functions

 SCT_ForwardPolarPosition ()
 SCT_ForwardPolarPosition (const SCT_ForwardPolarPosition &polar)
 SCT_ForwardPolarPosition (const double r, const double theta)
 Constructor with parameters: r coordinate of point theta coordinate of point.
virtual ~SCT_ForwardPolarPosition ()=default
SCT_ForwardPolarPositionoperator= (const SCT_ForwardPolarPosition &polar)
double r () const
 r coordinate of point:
double theta () const
 theta coordinate of point:
virtual bool operator== (const SCT_ForwardPolarPosition &polar) const
virtual std::string print () const

Private Attributes

double m_r
double m_theta

Detailed Description

2D position in polar coordinates for the polar frame in the SCT endcaps.

Author
Grant Gorfine

Definition at line 25 of file SCT_ForwardPolarPosition.h.

Constructor & Destructor Documentation

◆ SCT_ForwardPolarPosition() [1/3]

InDetDD::SCT_ForwardPolarPosition::SCT_ForwardPolarPosition ( )

◆ SCT_ForwardPolarPosition() [2/3]

InDetDD::SCT_ForwardPolarPosition::SCT_ForwardPolarPosition ( const SCT_ForwardPolarPosition & polar)
default

◆ SCT_ForwardPolarPosition() [3/3]

InDetDD::SCT_ForwardPolarPosition::SCT_ForwardPolarPosition ( const double r,
const double theta )

Constructor with parameters: r coordinate of point theta coordinate of point.

Definition at line 31 of file SCT_ForwardPolarPosition.cxx.

31 :
32 m_r(r),
34{
35 //check if parameters are consistent
36 if (m_r<0) m_r=0;
37}
double theta() const
theta coordinate of point:
double r() const
r coordinate of point:

◆ ~SCT_ForwardPolarPosition()

virtual InDetDD::SCT_ForwardPolarPosition::~SCT_ForwardPolarPosition ( )
virtualdefault

Member Function Documentation

◆ operator=()

SCT_ForwardPolarPosition & InDetDD::SCT_ForwardPolarPosition::operator= ( const SCT_ForwardPolarPosition & polar)

Definition at line 40 of file SCT_ForwardPolarPosition.cxx.

41{
42 if (this!=&polar) {
43 m_r=polar.m_r;
44 m_theta=polar.m_theta;
45 } else {}
46 return *this;
47}

◆ operator==()

bool InDetDD::SCT_ForwardPolarPosition::operator== ( const SCT_ForwardPolarPosition & polar) const
virtual

Definition at line 50 of file SCT_ForwardPolarPosition.cxx.

51{
52 return (m_r==polar.m_r && m_theta==polar.m_theta);
53}

◆ print()

std::string InDetDD::SCT_ForwardPolarPosition::print ( ) const
virtual

Definition at line 56 of file SCT_ForwardPolarPosition.cxx.

57{
58 std::string result{"r = "};
59 result += std::to_string(m_r) + " theta = " + std::to_string(m_theta);
60 return result;
61}

◆ r()

double InDetDD::SCT_ForwardPolarPosition::r ( ) const
inline

r coordinate of point:

Definition at line 74 of file SCT_ForwardPolarPosition.h.

75 {
76 return m_r;
77 }

◆ theta()

double InDetDD::SCT_ForwardPolarPosition::theta ( ) const
inline

theta coordinate of point:

Definition at line 79 of file SCT_ForwardPolarPosition.h.

80 {
81 return m_theta;
82 }

Member Data Documentation

◆ m_r

double InDetDD::SCT_ForwardPolarPosition::m_r
private

Definition at line 66 of file SCT_ForwardPolarPosition.h.

◆ m_theta

double InDetDD::SCT_ForwardPolarPosition::m_theta
private

Definition at line 67 of file SCT_ForwardPolarPosition.h.


The documentation for this class was generated from the following files: