ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::PixelDiodeTree::DiodeParam Struct Reference

Parameters of a diode. More...

#include <PixelDiodeTree.h>

Collaboration diagram for InDetDD::PixelDiodeTree::DiodeParam:

Public Member Functions

unsigned int addDiode (const Vector2D &width, AttributeType attribute=AttributeType{})

Public Attributes

std::vector< Vector2Dm_width
std::vector< Vector2Dm_invWidth
std::vector< AttributeTypem_attribute

Detailed Description

Parameters of a diode.

Definition at line 43 of file PixelDiodeTree.h.

Member Function Documentation

◆ addDiode()

unsigned int InDetDD::PixelDiodeTree::DiodeParam::addDiode ( const Vector2D & width,
AttributeType attribute = AttributeType{} )
inline

Definition at line 49 of file PixelDiodeTree.h.

49 {}) {
50 assert( m_width.size() == m_invWidth.size());
51 assert( m_width.size() == m_attribute.size());
52 assert( m_width.size() < std::numeric_limits<unsigned int>::max());
53 unsigned int idx = m_width.size();
54 m_width.push_back(width);
55 m_invWidth.push_back(Vector2D{static_cast<FloatType>(1.)/width[0], static_cast<FloatType>(1.)/width[1]});
56 m_attribute.push_back(attribute);
57 return idx;
58 }
const double width
AttributeType attribute(IndexType idx) const
Get the attribute associated to a sub-matrix.
Amg::Vector2D::Scalar FloatType
std::vector< Vector2D > m_width
std::vector< Vector2D > m_invWidth
std::vector< AttributeType > m_attribute

Member Data Documentation

◆ m_attribute

std::vector<AttributeType> InDetDD::PixelDiodeTree::DiodeParam::m_attribute

Definition at line 46 of file PixelDiodeTree.h.

◆ m_invWidth

std::vector<Vector2D > InDetDD::PixelDiodeTree::DiodeParam::m_invWidth

Definition at line 45 of file PixelDiodeTree.h.

◆ m_width

std::vector<Vector2D > InDetDD::PixelDiodeTree::DiodeParam::m_width

Definition at line 44 of file PixelDiodeTree.h.


The documentation for this struct was generated from the following file: