allpix::FieldTable

FieldTable is a linearized 5x5 matrix.

#include <DetectorField.hpp>

Inherits from std::array< double, 25 >

Public Functions

Name
std::pair< int, int > getCoordinates(const FieldTable::iterator & it)
Helper function to translate an iterator of the array into a coordinate of the 5x5 matrix.

Public Functions Documentation

function getCoordinates

inline std::pair< int, int > getCoordinates(
    const FieldTable::iterator & it
)

Helper function to translate an iterator of the array into a coordinate of the 5x5 matrix.

Parameters:

  • it Iterator to the array

Return: Pair of x and y coordinates.

The central pixel has coordinates 0,0, the others around positive or negative values, respectively. This allows to directly add these coordinates to any pixel index of the sensor.


Updated on 2025-05-10 at 19:40:38 +0000