lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
geometry::SegGeometry Class Referenceabstract

Abstract interface to one segment's geometry: size, rows, cols, shape, pixel scale size, the pixel area, size, coordinate (per AXIS) and mask arrays, and the coordinate minimum and maximum. More...

#include <SegGeometry.hh>

Inherited by geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

Public Member Functions

 SegGeometry ()
 Enumerator for X, Y, and Z axes.
 
virtual ~SegGeometry ()
 Virtual destructor; does nothing.
 
virtual void print_seg_info (const unsigned &pbits=0)=0
 Prints segment info for selected bits.
 
virtual const gsize_t size ()=0
 Returns segment size - total number of pixels in segment.
 
virtual const gsize_t rows ()=0
 Returns number of rows in segment.
 
virtual const gsize_t cols ()=0
 Returns number of cols in segment.
 
virtual const gsize_t * shape ()=0
 Returns shape of the segment {rows, cols}.
 
virtual const pixel_coord_t pixel_scale_size ()=0
 Returns pixel size in um for indexing.
 
virtual const pixel_area_t * pixel_area_array ()=0
 Returns pointer to the array of pixel areas normalized on minimal pixel area.
 
virtual const pixel_coord_t * pixel_size_array (AXIS axis)=0
 Returns pointer to the array of pixel size in um for AXIS.
 
virtual const pixel_coord_t * pixel_coord_array (AXIS axis)=0
 Returns pointer to the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_coord_t pixel_coord_min (AXIS axis)=0
 Returns minimal value in the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_coord_t pixel_coord_max (AXIS axis)=0
 Returns maximal value in the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_mask_t * pixel_mask_array (const unsigned &mbits=0377)=0
 Returns pointer to the array of pixel mask.
 

Detailed Description

Abstract interface to one segment's geometry: size, rows, cols, shape, pixel scale size, the pixel area, size, coordinate (per AXIS) and mask arrays, and the coordinate minimum and maximum.

Everything except the constructor and destructor is pure virtual.

Constructor & Destructor Documentation

◆ SegGeometry()

geometry::SegGeometry::SegGeometry ( )

Enumerator for X, Y, and Z axes.

◆ ~SegGeometry()

virtual geometry::SegGeometry::~SegGeometry ( )
virtual

Virtual destructor; does nothing.

Member Function Documentation

◆ cols()

virtual const gsize_t geometry::SegGeometry::cols ( )
pure virtual

◆ pixel_area_array()

virtual const pixel_area_t * geometry::SegGeometry::pixel_area_array ( )
pure virtual

Returns pointer to the array of pixel areas normalized on minimal pixel area.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

◆ pixel_coord_array()

virtual const pixel_coord_t * geometry::SegGeometry::pixel_coord_array ( AXIS  axis)
pure virtual

Returns pointer to the array of segment pixel coordinates in um for AXIS.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

◆ pixel_coord_max()

virtual const pixel_coord_t geometry::SegGeometry::pixel_coord_max ( AXIS  axis)
pure virtual

Returns maximal value in the array of segment pixel coordinates in um for AXIS.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

◆ pixel_coord_min()

virtual const pixel_coord_t geometry::SegGeometry::pixel_coord_min ( AXIS  axis)
pure virtual

Returns minimal value in the array of segment pixel coordinates in um for AXIS.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

◆ pixel_mask_array()

virtual const pixel_mask_t * geometry::SegGeometry::pixel_mask_array ( const unsigned &  mbits = 0377)
pure virtual

◆ pixel_scale_size()

virtual const pixel_coord_t geometry::SegGeometry::pixel_scale_size ( )
pure virtual

◆ pixel_size_array()

virtual const pixel_coord_t * geometry::SegGeometry::pixel_size_array ( AXIS  axis)
pure virtual

Returns pointer to the array of pixel size in um for AXIS.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.

◆ print_seg_info()

virtual void geometry::SegGeometry::print_seg_info ( const unsigned &  pbits = 0)
pure virtual

◆ rows()

virtual const gsize_t geometry::SegGeometry::rows ( )
pure virtual

◆ shape()

virtual const gsize_t * geometry::SegGeometry::shape ( )
pure virtual

◆ size()

virtual const gsize_t geometry::SegGeometry::size ( )
pure virtual

Returns segment size - total number of pixels in segment.

Implemented in geometry::SegGeometryCspad2x1V1, geometry::SegGeometryEpix100V1, geometry::SegGeometryEpix10kaV1, and geometry::SegGeometryMatrixV1.


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