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

#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. More...
 
virtual ~SCT_ForwardPolarPosition ()=default
 
SCT_ForwardPolarPositionoperator= (const SCT_ForwardPolarPosition &polar)
 
double r () const
 r coordinate of point: More...
 
double theta () const
 theta coordinate of point: More...
 
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 ( )

Definition at line 20 of file SCT_ForwardPolarPosition.cxx.

20  :
21  m_r(0),
22  m_theta(0)
23 {}

◆ 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),
33  m_theta(theta)
34 {
35  //check if parameters are consistent
36  if (m_r<0) m_r=0;
37 }

◆ ~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:
InDetDD::SCT_ForwardPolarPosition::theta
double theta() const
theta coordinate of point:
Definition: SCT_ForwardPolarPosition.h:79
InDetDD::SCT_ForwardPolarPosition::m_r
double m_r
Definition: SCT_ForwardPolarPosition.h:66
get_generator_info.result
result
Definition: get_generator_info.py:21
InDetDD::SCT_ForwardPolarPosition::r
double r() const
r coordinate of point:
Definition: SCT_ForwardPolarPosition.h:74
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
InDetDD::SCT_ForwardPolarPosition::m_theta
double m_theta
Definition: SCT_ForwardPolarPosition.h:67