A diode proxy which caches the position of a diode.
More...
#include <PixelDiodeTree.h>
|
| DiodeProxyWithPosition () |
|
| DiodeProxyWithPosition (const PixelDiodeTree *diodeTree, PixelDiodeTree::IndexType subMatrixIdx, PixelDiodeTree::IndexType diodeIdx, Vector2D &&position) |
|
const Vector2D & | position () const |
| get the cached position of this diode More...
|
|
double | phiWidth () const |
| for backward compatibility, return the pitch of a diode in local-x(phi, row) direction More...
|
|
double | etaWidth () const |
| for backward compatibility, return the pitch of a diode in local-y(eta, column) direction More...
|
|
double | xPhiMin () const |
| for backward compatibility, return the position of the lower edge of the diode in local-x(phi, row) direction. More...
|
|
double | xPhiMax () const |
| for backward compatibility, return the position of the lower edge of the diode in local-y(phi, row) direction. More...
|
|
double | xEtaMin () const |
| for backward compatibility, return the position of the lower edge of the diode in local-y(eta, column) direction. More...
|
|
double | xEtaMax () const |
| for backward compatibility, return the position of the upper edge of the diode in local-y(eta, column) direction. More...
|
|
const PixelDiodeTree::Vector2D & | width () const |
| get the width stored for this diode. More...
|
|
const PixelDiodeTree::Vector2D & | invWidth () const |
| get the inverse of the width of this diode. More...
|
|
unsigned int | diodeAttribute () const |
| get the attribute associated to this diode (to be interpreted) More...
|
|
unsigned int | subMatrixAttribute () const |
| get the attribute associated to the sub-matrix of this diode (to be interpreted) More...
|
|
PixelDiodeTree::Vector2D | computePosition (const std::array< CellIndexType, 2 > &idx) const |
| Compute the position of the diode. More...
|
|
std::array< PixelDiodeTree::CellIndexType, 2 > | computeIndex (const Vector2D &pos) const |
| Compute the full 2D index (row, column) of the diode in the full diode matrix. More...
|
|
bool | isValid () const |
| return true if this proxy refers to a valide diode More...
|
|
| operator bool () const |
| return true if this proxy refers to a valide diode More...
|
|
A diode proxy which caches the position of a diode.
Definition at line 230 of file PixelDiodeTree.h.
◆ DiodeProxyWithPosition() [1/2]
InDetDD::PixelDiodeTree::DiodeProxyWithPosition::DiodeProxyWithPosition |
( |
| ) |
|
|
inline |
◆ DiodeProxyWithPosition() [2/2]
◆ computeIndex()
Compute the full 2D index (row, column) of the diode in the full diode matrix.
Definition at line 220 of file PixelDiodeTree.h.
◆ computePosition()
Compute the position of the diode.
The origin is typically at the center of the pixel matrix.
Definition at line 216 of file PixelDiodeTree.h.
◆ diodeAttribute()
unsigned int InDetDD::PixelDiodeTree::DiodeProxy::diodeAttribute |
( |
| ) |
const |
|
inlineinherited |
get the attribute associated to this diode (to be interpreted)
Definition at line 205 of file PixelDiodeTree.h.
◆ etaWidth()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::etaWidth |
( |
| ) |
const |
|
inline |
for backward compatibility, return the pitch of a diode in local-y(eta, column) direction
Definition at line 245 of file PixelDiodeTree.h.
245 {
return width()[1]; }
◆ invWidth()
◆ isValid()
bool InDetDD::PixelDiodeTree::DiodeProxy::isValid |
( |
| ) |
const |
|
inlineinherited |
return true if this proxy refers to a valide diode
Definition at line 224 of file PixelDiodeTree.h.
◆ operator bool()
InDetDD::PixelDiodeTree::DiodeProxy::operator bool |
( |
| ) |
const |
|
inlineinherited |
return true if this proxy refers to a valide diode
Definition at line 226 of file PixelDiodeTree.h.
◆ phiWidth()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::phiWidth |
( |
| ) |
const |
|
inline |
for backward compatibility, return the pitch of a diode in local-x(phi, row) direction
Definition at line 243 of file PixelDiodeTree.h.
243 {
return width()[0]; }
◆ position()
const Vector2D& InDetDD::PixelDiodeTree::DiodeProxyWithPosition::position |
( |
| ) |
const |
|
inline |
◆ setInvalid()
void InDetDD::PixelDiodeTree::DiodeProxy::setInvalid |
( |
| ) |
|
|
inlineprotectedinherited |
◆ subMatrixAttribute()
unsigned int InDetDD::PixelDiodeTree::DiodeProxy::subMatrixAttribute |
( |
| ) |
const |
|
inlineinherited |
get the attribute associated to the sub-matrix of this diode (to be interpreted)
Definition at line 210 of file PixelDiodeTree.h.
◆ width()
◆ xEtaMax()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::xEtaMax |
( |
| ) |
const |
|
inline |
for backward compatibility, return the position of the upper edge of the diode in local-y(eta, column) direction.
The center postion is cached.
Definition at line 257 of file PixelDiodeTree.h.
◆ xEtaMin()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::xEtaMin |
( |
| ) |
const |
|
inline |
for backward compatibility, return the position of the lower edge of the diode in local-y(eta, column) direction.
The center postion is cached.
Definition at line 254 of file PixelDiodeTree.h.
◆ xPhiMax()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::xPhiMax |
( |
| ) |
const |
|
inline |
for backward compatibility, return the position of the lower edge of the diode in local-y(phi, row) direction.
The center postion is cached.
Definition at line 251 of file PixelDiodeTree.h.
◆ xPhiMin()
double InDetDD::PixelDiodeTree::DiodeProxyWithPosition::xPhiMin |
( |
| ) |
const |
|
inline |
for backward compatibility, return the position of the lower edge of the diode in local-x(phi, row) direction.
The center postion is cached.
Definition at line 248 of file PixelDiodeTree.h.
◆ PixelDiodeTree
◆ m_diodeIdx
◆ m_diodeTree
◆ m_position
Vector2D InDetDD::PixelDiodeTree::DiodeProxyWithPosition::m_position {} |
|
protected |
◆ m_subMatrixIdx
The documentation for this struct was generated from the following file:
std::array< CellIndexType, 2 > computeIndex(PixelDiodeTree::IndexType sub_matrix_idx, PixelDiodeTree::IndexType diode_idx, const Vector2D &pos) const
Compute the 2D index (row, column) of a certain diode in a certain sub-matrix.
Vector2D computePosition(PixelDiodeTree::IndexType sub_matrix_idx, PixelDiodeTree::IndexType diode_idx, const std::array< CellIndexType, 2 > &idx) const
Compute the position of a certain diode in a certain sub-matrix.