ATLAS Offline Software
Loading...
Searching...
No Matches
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
 operator bool () const
const Amg::Vector2Dposition () const
 return the center position of the diode if the proxy is valid.
Amg::Vector2D width () const
 return the diode width in phi (aka local-x, row) and eta (aka local-y, column) direction
double phiWidth () const
 return the diode width in phi (aka local-x, row)
double etaWidth () const
 return the diode width in eta (aka local-y, column) direction
double xPhiMin () const
 return the diode position of the lower diode edge in phi/local-x/row direction.
double xPhiMax () const
 return the diode position of the upper diode edge in phi/local-x/row direction.
double xEtaMin () const
 return the diode position of the lower diode edge in eta/local-y/column direction.
double xEtaMax () const
 return the diode position of the upper diode edge in eta/local-y/column direction.
Amg::Vector2Dposition ()
 provide access to internal storage for initializing the proxy.
PixelDiodeMatrixPtrcell_ptr ()
 provide access to internal storage for initializing the proxy.

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

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(); }
bool isValid() const
return true if the Proxy is valid

◆ 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.

◆ 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()}; }
double etaWidth() const
return the diode width in eta (aka local-y, column) direction
double phiWidth() const
return the diode width in phi (aka local-x, row)
Eigen::Matrix< double, 2, 1 > Vector2D

◆ 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: