ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixLayout< T > Class Template Reference

#include <ITkPixLayout.h>

Collaboration diagram for ITkPixLayout< T >:

Public Member Functions

 ITkPixLayout ()
T & operator() (const uint16_t col, const uint16_t row)
operator() (const uint16_t col, const uint16_t row) const
int nHits () const

Private Attributes

std::array< T, 153600 > m_pixels = {}

Detailed Description

template<class T>
class ITkPixLayout< T >

Definition at line 18 of file ITkPixLayout.h.

Constructor & Destructor Documentation

◆ ITkPixLayout()

template<class T>
ITkPixLayout< T >::ITkPixLayout ( )
inline

Definition at line 22 of file ITkPixLayout.h.

22{};

Member Function Documentation

◆ nHits()

template<class T>
int ITkPixLayout< T >::nHits ( ) const
inline

Definition at line 38 of file ITkPixLayout.h.

38 {
39
40 //count hits
41 int hits = 0;
42 for (const auto& pixel : m_pixels) if (pixel) hits++;
43 return hits;
44
45 }
std::array< T, 153600 > m_pixels

◆ operator()() [1/2]

template<class T>
T & ITkPixLayout< T >::operator() ( const uint16_t col,
const uint16_t row )
inline

Definition at line 24 of file ITkPixLayout.h.

24 {
25
26 //Columns are stored after one another
27 return m_pixels[ col * 384 + row ];
28
29 }

◆ operator()() [2/2]

template<class T>
T ITkPixLayout< T >::operator() ( const uint16_t col,
const uint16_t row ) const
inline

Definition at line 31 of file ITkPixLayout.h.

31 {
32
33 //Columns are stored after one another
34 return m_pixels[ col * 384 + row ];
35
36 }

Member Data Documentation

◆ m_pixels

template<class T>
std::array<T, 153600> ITkPixLayout< T >::m_pixels = {}
private

Definition at line 50 of file ITkPixLayout.h.

50{};

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