ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::SiElementPropertiesTable Class Referencefinal

#include <SiElementPropertiesTable.h>

Collaboration diagram for InDet::SiElementPropertiesTable:

Public Member Functions

 SiElementPropertiesTable (const SCT_ID &idHelper, const InDetDD::SiDetectorElementCollection &elements, float epsilonWidth, const bool doEndcapEtaNeighbours=false)
 ~SiElementPropertiesTable ()=default
const std::vector< IdentifierHash > * neighbours (const IdentifierHash &waferID) const
float halfWidth (IdentifierHash hashID) const

Private Attributes

std::vector< SiElementPropertiesm_properties

Detailed Description

Definition at line 25 of file SiElementPropertiesTable.h.

Constructor & Destructor Documentation

◆ SiElementPropertiesTable()

InDet::SiElementPropertiesTable::SiElementPropertiesTable ( const SCT_ID & idHelper,
const InDetDD::SiDetectorElementCollection & elements,
float epsilonWidth,
const bool doEndcapEtaNeighbours = false )

Definition at line 19 of file SiElementPropertiesTable.cxx.

23 {
24 size_t maxSCT = idHelper.wafer_hash_max();
25 m_properties.reserve(maxSCT);
26 for (size_t i = 0; i < maxSCT; ++i){
27 IdentifierHash hash(i);
28 const InDetDD::SiDetectorElement* element = elements[hash];
29 if (element != nullptr){
30 m_properties.emplace_back(hash, idHelper,*element,epsilonWidth,doEndcapEtaNeighbours);
31 }
32 }
33}
std::vector< SiElementProperties > m_properties
size_type wafer_hash_max() const
Definition SCT_ID.cxx:621

◆ ~SiElementPropertiesTable()

InDet::SiElementPropertiesTable::~SiElementPropertiesTable ( )
default

Member Function Documentation

◆ halfWidth()

float InDet::SiElementPropertiesTable::halfWidth ( IdentifierHash hashID) const
inline

Definition at line 51 of file SiElementPropertiesTable.h.

52{
53 return (m_properties[(unsigned int)waferID]).halfWidth();
54}

◆ neighbours()

const std::vector< IdentifierHash > * InDet::SiElementPropertiesTable::neighbours ( const IdentifierHash & waferID) const
inline

Definition at line 45 of file SiElementPropertiesTable.h.

46{
47 return (m_properties[(unsigned int)waferID]).neighbours();
48}

Member Data Documentation

◆ m_properties

std::vector<SiElementProperties> InDet::SiElementPropertiesTable::m_properties
private

Definition at line 39 of file SiElementPropertiesTable.h.


The documentation for this class was generated from the following files: