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

Helper class to cache a pixel diode position, and provide access to diode parameters. More...

#include <PixelDiodeParametersProxy.h>

Collaboration diagram for InDetDD::PixelDiodeParametersProxy:

Public Types

using PixelDiodeMatrixPtr = const PixelDiodeMatrix *
 

Public Member Functions

 PixelDiodeParametersProxy ()=default
 
 PixelDiodeParametersProxy (const PixelDiodeMatrix *cell)
 
bool isValid () const
 return true if the Proxy is valid More...
 
 operator bool () const
 
const Amg::Vector2Dposition () const
 return the center position of the diode if the proxy is valid. More...
 
Amg::Vector2D width () const
 return the diode width in phi (aka local-x, row) and eta (aka local-y, column) direction More...
 
double phiWidth () const
 return the diode width in phi (aka local-x, row) More...
 
double etaWidth () const
 return the diode width in eta (aka local-y, column) direction More...
 
double xPhiMin () const
 return the diode position of the lower diode edge in phi/local-x/row direction. More...
 
double xPhiMax () const
 return the diode position of the upper diode edge in phi/local-x/row direction. More...
 
double xEtaMin () const
 return the diode position of the lower diode edge in eta/local-y/column direction. More...
 
double xEtaMax () const
 return the diode position of the upper diode edge in eta/local-y/column direction. More...
 
Amg::Vector2Dposition ()
 provide access to internal storage for initializing the proxy. More...
 
PixelDiodeMatrixPtrcell_ptr ()
 provide access to internal storage for initializing the proxy. More...
 

Private Attributes

const PixelDiodeMatrixm_cell = nullptr
 
Amg::Vector2D m_position
 

Detailed Description

Helper class to cache a pixel diode position, and provide access to diode parameters.

Definition at line 11 of file PixelDiodeParametersProxy.h.

Member Typedef Documentation

◆ PixelDiodeMatrixPtr

Definition at line 42 of file PixelDiodeParametersProxy.h.

Constructor & Destructor Documentation

◆ PixelDiodeParametersProxy() [1/2]

InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy ( )
default

◆ PixelDiodeParametersProxy() [2/2]

InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy ( const PixelDiodeMatrix cell)
inline

Definition at line 15 of file PixelDiodeParametersProxy.h.

15 : m_cell(cell) {}

Member Function Documentation

◆ cell_ptr()

PixelDiodeMatrixPtr& InDetDD::PixelDiodeParametersProxy::cell_ptr ( )
inline

provide access to internal storage for initializing the proxy.

Definition at line 44 of file PixelDiodeParametersProxy.h.

44 { return m_cell; }

◆ etaWidth()

double InDetDD::PixelDiodeParametersProxy::etaWidth ( ) const
inline

return the diode width in eta (aka local-y, column) direction

Definition at line 29 of file PixelDiodeParametersProxy.h.

29 { return m_cell->etaWidth(); }

◆ isValid()

bool InDetDD::PixelDiodeParametersProxy::isValid ( ) const
inline

return true if the Proxy is valid

Definition at line 18 of file PixelDiodeParametersProxy.h.

18 { return m_cell != nullptr; }

◆ operator bool()

InDetDD::PixelDiodeParametersProxy::operator bool ( ) const
inline

Definition at line 20 of file PixelDiodeParametersProxy.h.

20 { return isValid(); }

◆ phiWidth()

double InDetDD::PixelDiodeParametersProxy::phiWidth ( ) const
inline

return the diode width in phi (aka local-x, row)

Definition at line 27 of file PixelDiodeParametersProxy.h.

27 { return m_cell->phiWidth(); }

◆ position() [1/2]

Amg::Vector2D& InDetDD::PixelDiodeParametersProxy::position ( )
inline

provide access to internal storage for initializing the proxy.

Definition at line 41 of file PixelDiodeParametersProxy.h.

41 { return m_position; };

◆ position() [2/2]

const Amg::Vector2D& InDetDD::PixelDiodeParametersProxy::position ( ) const
inline

return the center position of the diode if the proxy is valid.

Definition at line 23 of file PixelDiodeParametersProxy.h.

23 { return m_position; };

◆ width()

Amg::Vector2D InDetDD::PixelDiodeParametersProxy::width ( ) const
inline

return the diode width in phi (aka local-x, row) and eta (aka local-y, column) direction

Definition at line 25 of file PixelDiodeParametersProxy.h.

25 { return Amg::Vector2D{phiWidth(), etaWidth()}; }

◆ xEtaMax()

double InDetDD::PixelDiodeParametersProxy::xEtaMax ( ) const
inline

return the diode position of the upper diode edge in eta/local-y/column direction.

Definition at line 38 of file PixelDiodeParametersProxy.h.

38 { return m_position[1]+etaWidth()/2; }

◆ xEtaMin()

double InDetDD::PixelDiodeParametersProxy::xEtaMin ( ) const
inline

return the diode position of the lower diode edge in eta/local-y/column direction.

Definition at line 36 of file PixelDiodeParametersProxy.h.

36 { return m_position[1]-etaWidth()/2; }

◆ xPhiMax()

double InDetDD::PixelDiodeParametersProxy::xPhiMax ( ) const
inline

return the diode position of the upper diode edge in phi/local-x/row direction.

Definition at line 34 of file PixelDiodeParametersProxy.h.

34 { return m_position[0]+phiWidth()/2; }

◆ xPhiMin()

double InDetDD::PixelDiodeParametersProxy::xPhiMin ( ) const
inline

return the diode position of the lower diode edge in phi/local-x/row direction.

Definition at line 32 of file PixelDiodeParametersProxy.h.

32 { return m_position[0]-phiWidth()/2; }

Member Data Documentation

◆ m_cell

const PixelDiodeMatrix* InDetDD::PixelDiodeParametersProxy::m_cell = nullptr
private

Definition at line 46 of file PixelDiodeParametersProxy.h.

◆ m_position

Amg::Vector2D InDetDD::PixelDiodeParametersProxy::m_position
private

Definition at line 47 of file PixelDiodeParametersProxy.h.


The documentation for this class was generated from the following file:
InDetDD::PixelDiodeMatrix::phiWidth
double phiWidth() const
Width in phi (x) direction.
Definition: PixelDiodeMatrix.h:204
InDetDD::PixelDiodeParametersProxy::phiWidth
double phiWidth() const
return the diode width in phi (aka local-x, row)
Definition: PixelDiodeParametersProxy.h:27
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDetDD::PixelDiodeMatrix::etaWidth
double etaWidth() const
Width in eta (y) direction.
Definition: PixelDiodeMatrix.h:219
InDetDD::PixelDiodeParametersProxy::m_position
Amg::Vector2D m_position
Definition: PixelDiodeParametersProxy.h:47
InDetDD::PixelDiodeParametersProxy::m_cell
const PixelDiodeMatrix * m_cell
Definition: PixelDiodeParametersProxy.h:46
InDetDD::PixelDiodeParametersProxy::etaWidth
double etaWidth() const
return the diode width in eta (aka local-y, column) direction
Definition: PixelDiodeParametersProxy.h:29
InDetDD::PixelDiodeParametersProxy::isValid
bool isValid() const
return true if the Proxy is valid
Definition: PixelDiodeParametersProxy.h:18