ATLAS Offline Software
Loading...
Searching...
No Matches
SiLocalPosition Class Reference

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

#include <SiLocalPosition.h>

Collaboration diagram for SiLocalPosition:

Public Member Functions

 SiLocalPosition ()
 Implicit constructor:
 SiLocalPosition (const SiLocalPosition &position)
 Copy constructor:
 SiLocalPosition (const Amg::Vector2D &position)
 This allows one to pass a Amg::Vector2D to a 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)
SiLocalPositionoperator= (const SiLocalPosition &position)
 Assignment operator:
double xEta () const
 position along eta direction:
void xEta (const double xEta)
double xPhi () const
 position along phi direction:
void xPhi (const double xPhi)
double r () const
 Cylindrical coordinate r:
double phi () const
 Cylindrical coordinate phi:
double xDepth () const
 position along depth direction:
void xDepth (const double xDepth)
double xColumn () const
 positions for Pixel:
void xColumn (const double xColumn)
double xRow () const
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
double m_xPhi
 position along phi direction
double m_xDepth
 position along depth direction

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{}
double m_xEta
position along eta direction
double m_xPhi
position along phi direction
double m_xDepth
position along depth direction

◆ 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{}
@ distEta
readout for silicon
Definition ParamDefs.h:51
@ distPhi
Definition ParamDefs.h:50

◆ 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{}
double xDepth() const
position along depth direction:
double xPhi() const
position along phi direction:
double xEta() const
position along eta direction:

Member Function Documentation

◆ operator Amg::Vector2D()

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

Definition at line 45 of file SiLocalPosition.cxx.

46{
48}
Eigen::Matrix< double, 2, 1 > Vector2D

◆ 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{
171}
double xColumn() const
positions for Pixel:

◆ 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}
double xRow() const

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: