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

Class SegGeometryCspad2x1V1 defines the cspad 2x1 V1 sensor pixel coordinates in its local frame. More...

#include <SegGeometryCspad2x1V1.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 SegGeometryCspad2x1V1, creating it with use_wide_pix_center on the first call; later calls ignore the argument.
 

Static Public Attributes

static const gsize_t ROWS = 185
 Number of pixel rows in 2x1.
 
static const gsize_t COLS = 388
 Number of pixel columnss in 2x1.
 
static const gsize_t COLSHALF = 194
 Half number of pixel columnss in 2x1.
 
static const gsize_t SIZE = COLS*ROWS
 Number of pixels in 2x1.
 
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 SegGeometryCspad2x1V1 defines the cspad 2x1 V1 sensor pixel coordinates in its local frame.

2x1 sensor coordinate frame:

(Xmin,Ymax) ^ Y (Xmax,Ymax)
(0,0) | (0,387)
+----------------------------+
| | |
| | |
| | |
--|-------------+--------------|----> X
| | |
| | |
| | |
+----------------------------+
(184,0) | (184,387)
(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 2x1 has 185 rows and 388 columns. 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
    SG2X1 *seg_geom_2x1 = new SG2X1();
    or
    bool use_wide_pix_center = true;
    SG2X1 *seg_geom_2x1 = new SG2X1(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::SegGeometryCspad2x1V1::cols ( )
inlinevirtual

Returns number of cols in segment.

Implements geometry::SegGeometry.

◆ instance()

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

Return the single shared SegGeometryCspad2x1V1, 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::SegGeometryCspad2x1V1::pixel_area_array ( )
virtual

Returns pointer to the array of pixel areas.

Implements geometry::SegGeometry.

◆ pixel_coord_array()

virtual const pixel_coord_t * geometry::SegGeometryCspad2x1V1::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::SegGeometryCspad2x1V1::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::SegGeometryCspad2x1V1::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::SegGeometryCspad2x1V1::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,
  • 4 - mask non-bounded pixels,
  • 8 - mask nearest neighbours of nonbonded pixels.

Implements geometry::SegGeometry.

◆ pixel_scale_size()

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

Returns pixel size in um for indexing.

Implements geometry::SegGeometry.

◆ pixel_size_array()

virtual const pixel_coord_t * geometry::SegGeometryCspad2x1V1::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::SegGeometryCspad2x1V1::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::SegGeometryCspad2x1V1::rows ( )
inlinevirtual

Returns number of rows in segment.

Implements geometry::SegGeometry.

◆ shape()

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

Returns shape of the segment {rows, cols}.

Implements geometry::SegGeometry.

◆ size()

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

Returns size of the coordinate arrays.

Implements geometry::SegGeometry.

Member Data Documentation

◆ COLS

const gsize_t geometry::SegGeometryCspad2x1V1::COLS = 388
static

Number of pixel columnss in 2x1.

◆ COLSHALF

const gsize_t geometry::SegGeometryCspad2x1V1::COLSHALF = 194
static

Half number of pixel columnss in 2x1.

◆ NCORNERS

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

Number of corners.

◆ PIX_SCALE_SIZE

const pixel_coord_t geometry::SegGeometryCspad2x1V1::PIX_SCALE_SIZE
static

Pixel scale size [um] for indexing

◆ PIX_SIZE_COLS

const pixel_coord_t geometry::SegGeometryCspad2x1V1::PIX_SIZE_COLS
static

Pixel size [um] in column direction.

◆ PIX_SIZE_DEPTH

const pixel_coord_t geometry::SegGeometryCspad2x1V1::PIX_SIZE_DEPTH
static

Pixel size [um] in depth.

◆ PIX_SIZE_ROWS

const pixel_coord_t geometry::SegGeometryCspad2x1V1::PIX_SIZE_ROWS
static

Pixel size [um] in row direction.

◆ PIX_SIZE_WIDE

const pixel_coord_t geometry::SegGeometryCspad2x1V1::PIX_SIZE_WIDE
static

Wide pixel length [um].

◆ ROWS

const gsize_t geometry::SegGeometryCspad2x1V1::ROWS = 185
static

Number of pixel rows in 2x1.

◆ SIZE

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

Number of pixels in 2x1.

◆ UM_TO_PIX

const double geometry::SegGeometryCspad2x1V1::UM_TO_PIX
static

Conversion factor between um and pix.


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