SegGeometry of a rectangular rows x cols matrix with uniform pixel sizes; the defaults (512 x 512, 75 um) are for pnCCD per the comment above.
More...
#include <SegGeometryMatrixV1.hh>
Inherits geometry::SegGeometry.
|
| static geometry::SegGeometry * | instance (const std::string &segname="MTRX:512:512:75:75") |
| | Parse segname ("MTRX:rows:cols:rowsize:colsize") and return the instance stored for that exact name, creating a SegGeometryMatrixV1(rows, cols, rowsize, colsize) on first use.
|
| |
SegGeometry of a rectangular rows x cols matrix with uniform pixel sizes; the defaults (512 x 512, 75 um) are for pnCCD per the comment above.
The pixel coordinate arrays are built in the constructor.
◆ MapInstance
Map from segment name to SegGeometry pointer.
instance(segname) keeps its instances in a namespace-level map of this type defined in SegGeometryMatrixV1.cc.
◆ SegGeometryMatrixV1()
Fills-in the map of perfect segment coordinates, defined through the chip geometry.
- Parameters
-
| [in] | rows | - number of rows |
| [in] | cols | - number of columns |
| [in] | pix_size_rows | - pixel size in rows in micrometers [um] |
| [in] | pix_size_cols | - pixel size in columns in micrometers [um] |
| [in] | pix_size_depth | - pixel size in depth in micrometers [um] |
| [in] | pix_scale_size | - pixel size parameter taken as a 2-d image grid parameter |
◆ ~SegGeometryMatrixV1()
| virtual geometry::SegGeometryMatrixV1::~SegGeometryMatrixV1 |
( |
| ) |
|
|
virtual |
Destructor with an empty body; the arrays allocated by the class are not freed.
◆ cols()
| virtual const gsize_t geometry::SegGeometryMatrixV1::cols |
( |
| ) |
|
|
inlinevirtual |
◆ instance()
| static geometry::SegGeometry * geometry::SegGeometryMatrixV1::instance |
( |
const std::string & |
segname = "MTRX:512:512:75:75" | ) |
|
|
static |
Parse segname ("MTRX:rows:cols:rowsize:colsize") and return the instance stored for that exact name, creating a SegGeometryMatrixV1(rows, cols, rowsize, colsize) on first use.
Returns 0 (after printing a message and logging an ERROR) if segname does not contain "MTRX".
◆ pixel_area_array()
| virtual const pixel_area_t * geometry::SegGeometryMatrixV1::pixel_area_array |
( |
| ) |
|
|
virtual |
◆ pixel_coord_array()
| virtual const pixel_coord_t * geometry::SegGeometryMatrixV1::pixel_coord_array |
( |
AXIS |
axis | ) |
|
|
virtual |
Returns pointer to the array of segment pixel coordinates in um for AXIS.
Implements geometry::SegGeometry.
◆ pixel_coord_max()
| virtual const pixel_coord_t geometry::SegGeometryMatrixV1::pixel_coord_max |
( |
AXIS |
axis | ) |
|
|
virtual |
Returns maximal value in the array of segment pixel coordinates in um for AXIS.
Implements geometry::SegGeometry.
◆ pixel_coord_min()
| virtual const pixel_coord_t geometry::SegGeometryMatrixV1::pixel_coord_min |
( |
AXIS |
axis | ) |
|
|
virtual |
Returns minimal value in the array of segment pixel coordinates in um for AXIS.
Implements geometry::SegGeometry.
◆ pixel_mask_array()
| virtual const pixel_mask_t * geometry::SegGeometryMatrixV1::pixel_mask_array |
( |
const bitword_t & |
mbits = 0377 | ) |
|
|
virtual |
Returns pointer to the array of pixel mask: 1/0 = ok/masked.
- Parameters
-
| [in] | mbits | - mask control bits;
|
Implements geometry::SegGeometry.
◆ pixel_scale_size()
| virtual const pixel_coord_t geometry::SegGeometryMatrixV1::pixel_scale_size |
( |
| ) |
|
|
inlinevirtual |
◆ pixel_size_array()
| virtual const pixel_coord_t * geometry::SegGeometryMatrixV1::pixel_size_array |
( |
AXIS |
axis | ) |
|
|
virtual |
Returns pointer to the array of pixel size in um for AXIS.
- Parameters
-
| [in] | axis | Axis from the enumerated list for X, Y, and Z axes |
Implements geometry::SegGeometry.
◆ print_seg_info()
| virtual void geometry::SegGeometryMatrixV1::print_seg_info |
( |
const bitword_t & |
pbits = 0 | ) |
|
|
virtual |
Implementation of interface methods.
Prints segment info for selected bits
Implements geometry::SegGeometry.
◆ rows()
| virtual const gsize_t geometry::SegGeometryMatrixV1::rows |
( |
| ) |
|
|
inlinevirtual |
◆ shape()
| virtual const gsize_t * geometry::SegGeometryMatrixV1::shape |
( |
| ) |
|
|
inlinevirtual |
◆ size()
| virtual const gsize_t geometry::SegGeometryMatrixV1::size |
( |
| ) |
|
|
inlinevirtual |
◆ NCORNERS
| const gsize_t geometry::SegGeometryMatrixV1::NCORNERS = 4 |
|
static |
◆ PIX_SCALE_SIZE_DEF
| const pixel_coord_t geometry::SegGeometryMatrixV1::PIX_SCALE_SIZE_DEF |
|
static |
Pixel scale size [um] for indexing
◆ PIX_SIZE_COLS_DEF
| const pixel_coord_t geometry::SegGeometryMatrixV1::PIX_SIZE_COLS_DEF |
|
static |
Pixel size [um] in column direction.
◆ PIX_SIZE_DEPTH_DEF
| const pixel_coord_t geometry::SegGeometryMatrixV1::PIX_SIZE_DEPTH_DEF |
|
static |
Pixel size [um] in depth.
◆ PIX_SIZE_ROWS_DEF
| const pixel_coord_t geometry::SegGeometryMatrixV1::PIX_SIZE_ROWS_DEF |
|
static |
Pixel size [um] in row direction.
The documentation for this class was generated from the following file: