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

Class SegGeometryEpix100V1 defines the Epix100 V1 sensor pixel coordinates in its local frame. More...

#include <SegGeometryEpix100V1.hh>

Inherits geometry::SegGeometry.

Public Member Functions

virtual void print_seg_info (const bitword_t &pbits=0)
 Implementation of interface methods.
 
virtual const gsize_t size ()
 Returns size of the coordinate arrays.
 
virtual const gsize_t rows ()
 Returns number of rows in segment.
 
virtual const gsize_t cols ()
 Returns number of cols in segment.
 
virtual const gsize_t * shape ()
 Returns shape of the segment {rows, cols}.
 
virtual const pixel_coord_t pixel_scale_size ()
 Returns pixel size in um for indexing.
 
virtual const pixel_area_t * pixel_area_array ()
 Returns pointer to the array of pixel areas.
 
virtual const pixel_coord_t * pixel_size_array (AXIS axis)
 Returns pointer to the array of pixel size in um for AXIS.
 
virtual const pixel_coord_t * pixel_coord_array (AXIS axis)
 Returns pointer to the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_coord_t pixel_coord_min (AXIS axis)
 Returns minimal value in the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_coord_t pixel_coord_max (AXIS axis)
 Returns maximal value in the array of segment pixel coordinates in um for AXIS.
 
virtual const pixel_mask_t * pixel_mask_array (const bitword_t &mbits=0377)
 Returns pointer to the array of pixel mask: 1/0 = ok/masked.
 
- Public Member Functions inherited from geometry::SegGeometry
 SegGeometry ()
 Enumerator for X, Y, and Z axes.
 
virtual ~SegGeometry ()
 Virtual destructor; does nothing.
 

Static Public Member Functions

static geometry::SegGeometry * instance (const bool &use_wide_pix_center=false)
 Return the single shared SegGeometryEpix100V1, creating it with use_wide_pix_center on the first call; later calls ignore the argument.
 

Static Public Attributes

static const gsize_t ROWS = 704
 Number of pixel rows in segment.
 
static const gsize_t COLS = 768
 Number of pixel columns in segment.
 
static const gsize_t ROWSHALF = 352
 Half number of pixel rows in segment.
 
static const gsize_t COLSHALF = 384
 Half number of pixel columns in segment.
 
static const gsize_t SIZE = COLS*ROWS
 Number of pixels in segment.
 
static const gsize_t NCORNERS = 4
 Number of corners.
 
static const pixel_coord_t PIX_SCALE_SIZE
 Pixel scale size [um] for indexing

 
static const pixel_coord_t PIX_SIZE_COLS
 Pixel size [um] in column direction.
 
static const pixel_coord_t PIX_SIZE_ROWS
 Pixel size [um] in row direction.
 
static const pixel_coord_t PIX_SIZE_WIDE
 Wide pixel length [um].
 
static const pixel_coord_t PIX_SIZE_DEPTH
 Pixel size [um] in depth.
 
static const double UM_TO_PIX
 Conversion factor between um and pix.
 

Detailed Description

Class SegGeometryEpix100V1 defines the Epix100 V1 sensor pixel coordinates in its local frame.

2x1 sensor coordinate frame:

(Xmin,Ymax) ^ Y (Xmax,Ymax)
(0,0) | (0,767)
+----------------------------+
| | |
| | |
| | |
| | |
| | |
| | |
| | |
--|-------------+--------------|----> X
| | |
| | |
| | |
| | |
| | |
| | |
| | |
+----------------------------+
(703,0) | (703,767)
(Xmin,Ymin) (Xmax,Ymin)

Pixel (r,c)=(0,0) is in the top left corner of the matrix which has coordinates (Xmin,Ymax) Here we assume that segment has 704 rows and 768 columns. Epix100 has a pixel size 50x50um, Epix10k has a pixel size 100x100um, This assumption differs from the DAQ map, where rows and cols are interchanged: /reg/g/psdm/sw/external/lusi-xtc/2.12.0a/x86_64-rhel5-gcc41-opt/pdsdata/cspad/ElementIterator.hh, Detector.hh

Interface Description
  • Instatiation
    SG *seg_geom = new SG();
    or
    bool use_wide_pix_center = true;
    SG *seg_geom = new SG(use_wide_pix_center);

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

Author
Mikhail S. Dubrovin

Member Function Documentation

◆ cols()

virtual const gsize_t geometry::SegGeometryEpix100V1::cols ( )
inlinevirtual

Returns number of cols in segment.

Implements geometry::SegGeometry.

◆ instance()

static geometry::SegGeometry * geometry::SegGeometryEpix100V1::instance ( const bool &  use_wide_pix_center = false)
static

Return the single shared SegGeometryEpix100V1, creating it with use_wide_pix_center on the first call; later calls ignore the argument.

◆ pixel_area_array()

virtual const pixel_area_t * geometry::SegGeometryEpix100V1::pixel_area_array ( )
virtual

Returns pointer to the array of pixel areas.

Implements geometry::SegGeometry.

◆ pixel_coord_array()

virtual const pixel_coord_t * geometry::SegGeometryEpix100V1::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::SegGeometryEpix100V1::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::SegGeometryEpix100V1::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::SegGeometryEpix100V1::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;
  • 1 - mask edges,
  • 2 - mask two central columns,

Implements geometry::SegGeometry.

◆ pixel_scale_size()

virtual const pixel_coord_t geometry::SegGeometryEpix100V1::pixel_scale_size ( )
inlinevirtual

Returns pixel size in um for indexing.

Implements geometry::SegGeometry.

◆ pixel_size_array()

virtual const pixel_coord_t * geometry::SegGeometryEpix100V1::pixel_size_array ( AXIS  axis)
virtual

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

Parameters
[in]axisAxis from the enumerated list for X, Y, and Z axes

Implements geometry::SegGeometry.

◆ print_seg_info()

virtual void geometry::SegGeometryEpix100V1::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::SegGeometryEpix100V1::rows ( )
inlinevirtual

Returns number of rows in segment.

Implements geometry::SegGeometry.

◆ shape()

virtual const gsize_t * geometry::SegGeometryEpix100V1::shape ( )
inlinevirtual

Returns shape of the segment {rows, cols}.

Implements geometry::SegGeometry.

◆ size()

virtual const gsize_t geometry::SegGeometryEpix100V1::size ( )
inlinevirtual

Returns size of the coordinate arrays.

Implements geometry::SegGeometry.

Member Data Documentation

◆ COLS

const gsize_t geometry::SegGeometryEpix100V1::COLS = 768
static

Number of pixel columns in segment.

◆ COLSHALF

const gsize_t geometry::SegGeometryEpix100V1::COLSHALF = 384
static

Half number of pixel columns in segment.

◆ NCORNERS

const gsize_t geometry::SegGeometryEpix100V1::NCORNERS = 4
static

Number of corners.

◆ PIX_SCALE_SIZE

const pixel_coord_t geometry::SegGeometryEpix100V1::PIX_SCALE_SIZE
static

Pixel scale size [um] for indexing

◆ PIX_SIZE_COLS

const pixel_coord_t geometry::SegGeometryEpix100V1::PIX_SIZE_COLS
static

Pixel size [um] in column direction.

◆ PIX_SIZE_DEPTH

const pixel_coord_t geometry::SegGeometryEpix100V1::PIX_SIZE_DEPTH
static

Pixel size [um] in depth.

◆ PIX_SIZE_ROWS

const pixel_coord_t geometry::SegGeometryEpix100V1::PIX_SIZE_ROWS
static

Pixel size [um] in row direction.

◆ PIX_SIZE_WIDE

const pixel_coord_t geometry::SegGeometryEpix100V1::PIX_SIZE_WIDE
static

Wide pixel length [um].

◆ ROWS

const gsize_t geometry::SegGeometryEpix100V1::ROWS = 704
static

Number of pixel rows in segment.

◆ ROWSHALF

const gsize_t geometry::SegGeometryEpix100V1::ROWSHALF = 352
static

Half number of pixel rows in segment.

◆ SIZE

const gsize_t geometry::SegGeometryEpix100V1::SIZE = COLS*ROWS
static

Number of pixels in segment.

◆ UM_TO_PIX

const double geometry::SegGeometryEpix100V1::UM_TO_PIX
static

Conversion factor between um and pix.


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