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

#include <SiLocalPosition.h>

Collaboration diagram for InDetDD::SiLocalPosition:

Public Member Functions

 SiLocalPosition ()
 Implicit constructor: More...
 
 SiLocalPosition (const SiLocalPosition &position)
 Copy constructor: More...
 
 SiLocalPosition (const Amg::Vector2D &position)
 This allows one to pass a Amg::Vector2D to a SiLocalPosition. More...
 
 SiLocalPosition (const double xEta, const double xPhi, const double xDepth=0)
 Constructor with parameters: position along eta direction position along phi direction position along depth direction (default is 0) More...
 
SiLocalPositionoperator= (const SiLocalPosition &position)
 Assignment operator: More...
 
double xEta () const
 position along eta direction: More...
 
double xPhi () const
 position along phi direction: More...
 
double r () const
 Cylindrical coordinate r: More...
 
double phi () const
 Cylindrical coordinate phi: More...
 
double xDepth () const
 position along depth direction: More...
 
double xColumn () const
 positions for Pixel: More...
 
double xRow () const
 
void xEta (const double xEta)
 
void xPhi (const double xPhi)
 
void xDepth (const double xDepth)
 
void xColumn (const double xColumn)
 
void xRow (const double xRow)
 
SiLocalPositionoperator+= (const SiLocalPosition &position)
 
 operator Amg::Vector2D (void) const
 
SiLocalPositionoperator*= (const double factor)
 
SiLocalPositionoperator/= (const double factor)
 

Private Attributes

double m_xEta
 position along eta direction More...
 
double m_xPhi
 position along phi direction More...
 
double m_xDepth
 position along depth direction More...
 

Detailed Description

Class to represent a position in the natural frame of a silicon sensor, for Pixel and SCT For Pixel: eta=column, phi=row

Version 2.1 01/08/2001 David Calvet

Definition at line 31 of file SiLocalPosition.h.

Constructor & Destructor Documentation

◆ SiLocalPosition() [1/4]

InDetDD::SiLocalPosition::SiLocalPosition ( )

Implicit constructor:

Definition at line 19 of file SiLocalPosition.cxx.

19  :
20  m_xEta(0),
21  m_xPhi(0),
22  m_xDepth(0)
23 {}

◆ SiLocalPosition() [2/4]

InDetDD::SiLocalPosition::SiLocalPosition ( const SiLocalPosition position)
default

Copy constructor:

◆ SiLocalPosition() [3/4]

InDetDD::SiLocalPosition::SiLocalPosition ( const Amg::Vector2D position)

This allows one to pass a Amg::Vector2D to a SiLocalPosition.

Definition at line 38 of file SiLocalPosition.cxx.

39  : m_xEta(position[Trk::distEta]),
40  m_xPhi(position[Trk::distPhi]),
41  m_xDepth(0)
42 {}

◆ SiLocalPosition() [4/4]

InDetDD::SiLocalPosition::SiLocalPosition ( const double  xEta,
const double  xPhi,
const double  xDepth = 0 
)

Constructor with parameters: position along eta direction position along phi direction position along depth direction (default is 0)

Definition at line 31 of file SiLocalPosition.cxx.

32  :
33  m_xEta(xEta),
34  m_xPhi(xPhi),
36 {}

Member Function Documentation

◆ operator Amg::Vector2D()

InDetDD::SiLocalPosition::operator Amg::Vector2D ( void  ) const

Definition at line 45 of file SiLocalPosition.cxx.

46 {
47  return Amg::Vector2D(m_xPhi, m_xEta);
48 }

◆ operator*=()

SiLocalPosition & InDetDD::SiLocalPosition::operator*= ( const double  factor)

Definition at line 71 of file SiLocalPosition.cxx.

72 {
73  m_xEta*=factor;
74  m_xPhi*=factor;
75  m_xDepth*=factor;
76  return *this;
77 }

◆ operator+=()

SiLocalPosition & InDetDD::SiLocalPosition::operator+= ( const SiLocalPosition position)

Definition at line 62 of file SiLocalPosition.cxx.

63 {
64  m_xEta+=position.m_xEta;
65  m_xPhi+=position.m_xPhi;
66  m_xDepth+=position.m_xDepth;
67  return *this;
68 }

◆ operator/=()

SiLocalPosition & InDetDD::SiLocalPosition::operator/= ( const double  factor)

Definition at line 80 of file SiLocalPosition.cxx.

81 {
82  if (0!=factor) {
83  m_xEta/=factor;
84  m_xPhi/=factor;
85  m_xDepth/=factor;
86  } else {}
87  return *this;
88 }

◆ operator=()

SiLocalPosition & InDetDD::SiLocalPosition::operator= ( const SiLocalPosition position)

Assignment operator:

Definition at line 51 of file SiLocalPosition.cxx.

52 {
53  if (this!=&position) {
54  m_xEta=position.m_xEta;
55  m_xPhi=position.m_xPhi;
56  m_xDepth=position.m_xDepth;
57  } else {}
58  return *this;
59 }

◆ phi()

double InDetDD::SiLocalPosition::phi ( ) const
inline

Cylindrical coordinate phi:

Definition at line 138 of file SiLocalPosition.h.

139 {
140  return std::atan2(m_xPhi, m_xEta);
141 }

◆ r()

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

Cylindrical coordinate r:

Definition at line 133 of file SiLocalPosition.h.

134 {
135  return std::sqrt(m_xEta * m_xEta + m_xPhi * m_xPhi);
136 }

◆ xColumn() [1/2]

double InDetDD::SiLocalPosition::xColumn ( ) const
inline

positions for Pixel:

Definition at line 143 of file SiLocalPosition.h.

144 {
145  return m_xEta;
146 }

◆ xColumn() [2/2]

void InDetDD::SiLocalPosition::xColumn ( const double  xColumn)
inline

Definition at line 168 of file SiLocalPosition.h.

169 {
170  m_xEta=xColumn;
171 }

◆ xDepth() [1/2]

double InDetDD::SiLocalPosition::xDepth ( ) const
inline

position along depth direction:

Definition at line 128 of file SiLocalPosition.h.

129 {
130  return m_xDepth;
131 }

◆ xDepth() [2/2]

void InDetDD::SiLocalPosition::xDepth ( const double  xDepth)
inline

Definition at line 163 of file SiLocalPosition.h.

164 {
166 }

◆ xEta() [1/2]

double InDetDD::SiLocalPosition::xEta ( ) const
inline

position along eta direction:

Definition at line 118 of file SiLocalPosition.h.

119 {
120  return m_xEta;
121 }

◆ xEta() [2/2]

void InDetDD::SiLocalPosition::xEta ( const double  xEta)
inline

Definition at line 153 of file SiLocalPosition.h.

154 {
155  m_xEta=xEta;
156 }

◆ xPhi() [1/2]

double InDetDD::SiLocalPosition::xPhi ( ) const
inline

position along phi direction:

Definition at line 123 of file SiLocalPosition.h.

124 {
125  return m_xPhi;
126 }

◆ xPhi() [2/2]

void InDetDD::SiLocalPosition::xPhi ( const double  xPhi)
inline

Definition at line 158 of file SiLocalPosition.h.

159 {
160  m_xPhi=xPhi;
161 }

◆ xRow() [1/2]

double InDetDD::SiLocalPosition::xRow ( ) const
inline

Definition at line 148 of file SiLocalPosition.h.

149 {
150  return m_xPhi;
151 }

◆ xRow() [2/2]

void InDetDD::SiLocalPosition::xRow ( const double  xRow)
inline

Definition at line 173 of file SiLocalPosition.h.

174 {
175  m_xPhi=xRow;
176 }

Member Data Documentation

◆ m_xDepth

double InDetDD::SiLocalPosition::m_xDepth
private

position along depth direction

Definition at line 112 of file SiLocalPosition.h.

◆ m_xEta

double InDetDD::SiLocalPosition::m_xEta
private

position along eta direction

Definition at line 110 of file SiLocalPosition.h.

◆ m_xPhi

double InDetDD::SiLocalPosition::m_xPhi
private

position along phi direction

Definition at line 111 of file SiLocalPosition.h.


The documentation for this class was generated from the following files:
InDetDD::SiLocalPosition::m_xEta
double m_xEta
position along eta direction
Definition: SiLocalPosition.h:110
InDetDD::SiLocalPosition::m_xDepth
double m_xDepth
position along depth direction
Definition: SiLocalPosition.h:112
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDetDD::SiLocalPosition::xColumn
double xColumn() const
positions for Pixel:
Definition: SiLocalPosition.h:143
InDetDD::SiLocalPosition::xPhi
double xPhi() const
position along phi direction:
Definition: SiLocalPosition.h:123
InDetDD::SiLocalPosition::m_xPhi
double m_xPhi
position along phi direction
Definition: SiLocalPosition.h:111
Trk::distEta
@ distEta
readout for silicon
Definition: ParamDefs.h:51
InDetDD::SiLocalPosition::xEta
double xEta() const
position along eta direction:
Definition: SiLocalPosition.h:118
InDetDD::SiLocalPosition::xRow
double xRow() const
Definition: SiLocalPosition.h:148
Trk::distPhi
@ distPhi
Definition: ParamDefs.h:50
InDetDD::SiLocalPosition::xDepth
double xDepth() const
position along depth direction:
Definition: SiLocalPosition.h:128