ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
InDet::SiWidth Class Referencefinal

#include <SiWidth.h>

Collaboration diagram for InDet::SiWidth:

Public Member Functions

 SiWidth ()
 
 SiWidth (const SiWidth &position)
 
 SiWidth (SiWidth &&position)=default
 
 SiWidth (const Amg::Vector2D &colrow, const Amg::Vector2D &phiRZ)
 
 SiWidth (const Amg::Vector2D &colrow)
 
 ~SiWidth ()=default
 
SiWidthoperator= (const SiWidth &width)
 
SiWidthoperator= (SiWidth &&width)=default
 
const Amg::Vector2DcolRow () const
 
const Amg::Vector2DwidthPhiRZ () const
 
double phiR () const
 
double z () const
 
bool operator< (const SiWidth &width) const
 
bool operator> (const SiWidth &width) const
 
void setColumn (const double col)
 
void setRow (const double row)
 
void setColRow (const Amg::Vector2D &colRow)
 
void setPhirWidth (const double phirWidth)
 
void setZWidth (const double zWidth)
 
void setPhirzWidth (const Amg::Vector2D &phirzWidth)
 
MsgStream & dump (MsgStream &stream) const
 dump information about the PRD object. More...
 
std::ostream & dump (std::ostream &stream) const
 dump information about the PRD object. More...
 

Private Attributes

Amg::Vector2D m_colrow
 
Amg::Vector2D m_phirzWidth
 

Detailed Description

Author
Veronique.Boisvert

Definition at line 25 of file SiWidth.h.

Constructor & Destructor Documentation

◆ SiWidth() [1/5]

InDet::SiWidth::SiWidth ( )

Definition at line 16 of file SiWidth.cxx.

16  :
17  m_colrow(0.0, 0.0),
18  m_phirzWidth(0.0, 0.0)
19 {}

◆ SiWidth() [2/5]

InDet::SiWidth::SiWidth ( const SiWidth position)
default

◆ SiWidth() [3/5]

InDet::SiWidth::SiWidth ( SiWidth &&  position)
default

◆ SiWidth() [4/5]

InDet::SiWidth::SiWidth ( const Amg::Vector2D colrow,
const Amg::Vector2D phiRZ 
)

Definition at line 27 of file SiWidth.cxx.

27  :
28  m_colrow( colrow ),
29  m_phirzWidth(phiRZ)
30 {}

◆ SiWidth() [5/5]

InDet::SiWidth::SiWidth ( const Amg::Vector2D colrow)

Definition at line 34 of file SiWidth.cxx.

34  :
35  m_colrow(colrow),
36  m_phirzWidth(0,0)
37 {}

◆ ~SiWidth()

InDet::SiWidth::~SiWidth ( )
default

Member Function Documentation

◆ colRow()

const Amg::Vector2D & InDet::SiWidth::colRow ( ) const
inline

Definition at line 115 of file SiWidth.h.

116  {
117  return (m_colrow);
118  }

◆ dump() [1/2]

MsgStream & InDet::SiWidth::dump ( MsgStream &  stream) const

dump information about the PRD object.

Definition at line 56 of file SiWidth.cxx.

57 {
58  std::ostringstream out;
59  dump(out);
60  stream<<out.str();
61  return stream;
62 }

◆ dump() [2/2]

std::ostream & InDet::SiWidth::dump ( std::ostream &  stream) const

dump information about the PRD object.

Definition at line 63 of file SiWidth.cxx.

64 {
65  stream << "SiWidth object"<<std::endl;
66  stream <<"Column / Row " << m_colrow.x() << " " << m_colrow.y() << std::endl;
67  stream <<"phi RZ width " << m_phirzWidth.x() << " " << m_phirzWidth.y() << std::endl;
68  return stream;
69 }

◆ operator<()

bool InDet::SiWidth::operator< ( const SiWidth width) const
inline

Definition at line 138 of file SiWidth.h.

139  {
140  // size phi
141  if ( m_colrow[0] < width.colRow()[0] ) { return true; }
142  // size z
143  if ( m_colrow[1] < width.colRow()[1] ) { return true; }
144  return false;
145  }

◆ operator=() [1/2]

InDet::SiWidth & InDet::SiWidth::operator= ( const SiWidth width)

Definition at line 41 of file SiWidth.cxx.

42 {
43  if (this!=&width) {
44  m_colrow = width.m_colrow;
45  m_phirzWidth = width.m_phirzWidth;
46  }
47  return *this;
48 }

◆ operator=() [2/2]

SiWidth& InDet::SiWidth::operator= ( SiWidth &&  width)
default

◆ operator>()

bool InDet::SiWidth::operator> ( const SiWidth width) const
inline

Definition at line 148 of file SiWidth.h.

149  {
150  // size phi
151  if ( m_colrow[0] < width.colRow()[0] ) { return false; }
152  // size z
153  if ( m_colrow[1] < width.colRow()[1] ) { return false; }
154  return true;
155  }

◆ phiR()

double InDet::SiWidth::phiR ( ) const
inline

Definition at line 126 of file SiWidth.h.

127  {
128  return m_phirzWidth[Trk::locPhiR];
129  }

◆ setColRow()

void InDet::SiWidth::setColRow ( const Amg::Vector2D colRow)
inline

Definition at line 168 of file SiWidth.h.

169  {
171  }

◆ setColumn()

void InDet::SiWidth::setColumn ( const double  col)
inline

Definition at line 158 of file SiWidth.h.

159  {
160  m_colrow[0] = col;
161  }

◆ setPhirWidth()

void InDet::SiWidth::setPhirWidth ( const double  phirWidth)
inline

Definition at line 173 of file SiWidth.h.

174  {
175  m_phirzWidth[Trk::locPhiR] = phir;
176  }

◆ setPhirzWidth()

void InDet::SiWidth::setPhirzWidth ( const Amg::Vector2D phirzWidth)
inline

Definition at line 181 of file SiWidth.h.

182  {
183  m_phirzWidth = phirzwidth;
184  }

◆ setRow()

void InDet::SiWidth::setRow ( const double  row)
inline

Definition at line 163 of file SiWidth.h.

164  {
165  m_colrow[1] = row;
166  }

◆ setZWidth()

void InDet::SiWidth::setZWidth ( const double  zWidth)
inline

Definition at line 177 of file SiWidth.h.

178  {
179  m_phirzWidth[Trk::locZ] = zwidth;
180  }

◆ widthPhiRZ()

const Amg::Vector2D & InDet::SiWidth::widthPhiRZ ( ) const
inline

Definition at line 121 of file SiWidth.h.

122  {
123  return m_phirzWidth;
124  }

◆ z()

double InDet::SiWidth::z ( ) const
inline

Definition at line 131 of file SiWidth.h.

132  {
133  return m_phirzWidth[Trk::locZ];
134  }

Member Data Documentation

◆ m_colrow

Amg::Vector2D InDet::SiWidth::m_colrow
private

Definition at line 104 of file SiWidth.h.

◆ m_phirzWidth

Amg::Vector2D InDet::SiWidth::m_phirzWidth
private

Definition at line 105 of file SiWidth.h.


The documentation for this class was generated from the following files:
query_example.row
row
Definition: query_example.py:24
InDet::SiWidth::m_colrow
Amg::Vector2D m_colrow
Definition: SiWidth.h:104
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Trk::locZ
@ locZ
local cylindrical
Definition: ParamDefs.h:42
InDet::SiWidth::m_phirzWidth
Amg::Vector2D m_phirzWidth
Definition: SiWidth.h:105
query_example.col
col
Definition: query_example.py:7
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Trk::locPhiR
@ locPhiR
Definition: ParamDefs.h:41
InDet::SiWidth::colRow
const Amg::Vector2D & colRow() const
Definition: SiWidth.h:115
InDet::SiWidth::dump
MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
Definition: SiWidth.cxx:56