CSPadPixCoords::PixCoordsCSPad2x2V2 Class Reference
[CSPadPixCoords package]

PixCoordsCSPad2x2V2 class defines the CSPAD2x2 pixel coordinates. More...

#include <PixCoordsCSPad2x2V2.h>

Inheritance diagram for CSPadPixCoords::PixCoordsCSPad2x2V2:

CSPadPixCoords::PixCoords2x1V2 List of all members.

Public Member Functions

 PixCoordsCSPad2x2V2 (PSCalib::CSPad2x2CalibPars *cspad_calibpars=new PSCalib::CSPad2x2CalibPars(), bool tiltIsApplied=true, bool use_wide_pix_center=false)
 PixCoordsCSPad2x2V2 class fills and provides access to the CSPAD2x2 pixel coordinates.
virtual ~PixCoordsCSPad2x2V2 ()
 Destructor.
void printXYLimits ()
 Prints X and Y limits of the pixel coordinate map.
void printConstants ()
 Prints member data and partial coordinate map.
void printCoordArray (unsigned r1=10, unsigned r2=21, unsigned c1=15, unsigned c2=18)
 Prints the part of the 2-D coordinate array in the specified ranges of rows and columns.
double getPixCoor_um (AXIS axis, unsigned sect, unsigned row, unsigned col)
 Returns coordimate of the pixel in [um](micrometers) for specified axis, section, row, and column.
double getPixCoor_pix (AXIS axis, unsigned sect, unsigned row, unsigned col)
 Returns coordimate of the pixel in [pix](pixel size) for specified axis, section, row, and column.
double get_x_min ()
 Returns minimal x coordinate of the pixel in [um].
double get_x_max ()
 Returns maximal x coordinate of the pixel in [um].
double get_y_min ()
 Returns minimal y coordinate of the pixel in [um].
double get_y_max ()
 Returns maximal y coordinate of the pixel in [um].

Static Public Attributes

static const unsigned N2X1_IN_DET = 2
 Number of 2x1s in the CSPAD2x2.

Protected Member Functions

void fillPixelCoordinateArrays ()
 Protected method for filling pixel coordinate array in constructor.
void fillOneSectionInDet (uint32_t sect, double xcenter, double ycenter, double zcenter, double rotation)
 Protected method for filling pixel coordinate array for specified sensor.
void resetXYOriginAndMinMax ()
 Protected method which resets the origin of the pixel coordinate map to (0,0).

Detailed Description

PixCoordsCSPad2x2V2 class defines the CSPAD2x2 pixel coordinates.

Interface Description

Definition at line 141 of file PixCoordsCSPad2x2V2.h.


Constructor & Destructor Documentation

CSPadPixCoords::PixCoordsCSPad2x2V2::PixCoordsCSPad2x2V2 ( PSCalib::CSPad2x2CalibPars cspad_calibpars = new PSCalib::CSPad2x2CalibPars(),
bool  tiltIsApplied = true,
bool  use_wide_pix_center = false 
)

PixCoordsCSPad2x2V2 class fills and provides access to the CSPAD2x2 pixel coordinates.

Parameters:
[in] cspad_calibpars - pointer to the store of CSPAD2x2 calibration parameters
[in] tiltIsApplied - boolean key indicating if the tilt angle correction for 2x1 in the detector is applied.
[in] use_wide_pix_center - boolean parameter defining coordinate of the wide pixel; true-use wide pixel center as its coordinate, false-use ASIC-uniform pixel coordinate.

Definition at line 58 of file PixCoordsCSPad2x2V2.cpp.

References fillPixelCoordinateArrays(), and resetXYOriginAndMinMax().

CSPadPixCoords::PixCoordsCSPad2x2V2::~PixCoordsCSPad2x2V2 (  )  [virtual]

Destructor.

Definition at line 217 of file PixCoordsCSPad2x2V2.cpp.


Member Function Documentation

void CSPadPixCoords::PixCoordsCSPad2x2V2::fillOneSectionInDet ( uint32_t  sect,
double  xcenter,
double  ycenter,
double  zcenter,
double  rotation 
) [protected]

Protected method for filling pixel coordinate array for specified sensor.

Definition at line 97 of file PixCoordsCSPad2x2V2.cpp.

References CSPadPixCoords::PixCoords2x1V2::AXIS_X, CSPadPixCoords::PixCoords2x1V2::AXIS_Y, CSPadPixCoords::PixCoords2x1V2::COLS2X1, CSPadPixCoords::PixCoords2x1V2::get_coord_map_2x1(), CSPadPixCoords::PixCoords2x1V2::ROWS2X1, and CSPadPixCoords::PixCoords2x1V2::UM.

Referenced by fillPixelCoordinateArrays().

void CSPadPixCoords::PixCoordsCSPad2x2V2::fillPixelCoordinateArrays (  )  [protected]

Protected method for filling pixel coordinate array in constructor.

Definition at line 70 of file PixCoordsCSPad2x2V2.cpp.

References fillOneSectionInDet(), N2X1_IN_DET, CSPadPixCoords::PixCoords2x1V2::PIX_SIZE_UM, and CSPadPixCoords::rotation().

Referenced by PixCoordsCSPad2x2V2().

double CSPadPixCoords::PixCoordsCSPad2x2V2::get_x_max (  )  [inline]

Returns maximal x coordinate of the pixel in [um].

Definition at line 195 of file PixCoordsCSPad2x2V2.h.

double CSPadPixCoords::PixCoordsCSPad2x2V2::get_x_min (  )  [inline]

Returns minimal x coordinate of the pixel in [um].

Definition at line 192 of file PixCoordsCSPad2x2V2.h.

double CSPadPixCoords::PixCoordsCSPad2x2V2::get_y_max (  )  [inline]

Returns maximal y coordinate of the pixel in [um].

Definition at line 201 of file PixCoordsCSPad2x2V2.h.

double CSPadPixCoords::PixCoordsCSPad2x2V2::get_y_min (  )  [inline]

Returns minimal y coordinate of the pixel in [um].

Definition at line 198 of file PixCoordsCSPad2x2V2.h.

double CSPadPixCoords::PixCoordsCSPad2x2V2::getPixCoor_pix ( AXIS  axis,
unsigned  sect,
unsigned  row,
unsigned  col 
)

Returns coordimate of the pixel in [pix](pixel size) for specified axis, section, row, and column.

Parameters:
[in] axis - enumerated axes, can be set to PC2X2::AXIS_X or PC2X2::AXIS_Y
[in] sect - section index [0,1] (two 2x1 sensors in CSPAD2x2)
[in] row - row index [0,184]
[in] col - column index [0,387]

Definition at line 157 of file PixCoordsCSPad2x2V2.cpp.

References getPixCoor_um(), and CSPadPixCoords::PixCoords2x1V2::UM_TO_PIX.

double CSPadPixCoords::PixCoordsCSPad2x2V2::getPixCoor_um ( AXIS  axis,
unsigned  sect,
unsigned  row,
unsigned  col 
)

Returns coordimate of the pixel in [um](micrometers) for specified axis, section, row, and column.

Parameters:
[in] axis - enomerated axes, can be PC2X2::AXIS_X or PC2X2::AXIS_Y
[in] sect - section index [0,1]
[in] row - row index [0,184]
[in] col - column index [0,387]

Definition at line 143 of file PixCoordsCSPad2x2V2.cpp.

References CSPadPixCoords::PixCoords2x1V2::AXIS_X, CSPadPixCoords::PixCoords2x1V2::AXIS_Y, and CSPadPixCoords::PixCoords2x1V2::AXIS_Z.

Referenced by getPixCoor_pix().

void CSPadPixCoords::PixCoordsCSPad2x2V2::printConstants (  ) 

Prints member data and partial coordinate map.

Definition at line 177 of file PixCoordsCSPad2x2V2.cpp.

References CSPadPixCoords::PixCoords2x1V2::COLS2X1, CSPadPixCoords::PixCoords2x1V2::COLS2X1HALF, CSPadPixCoords::PixCoords2x1V2::PIX_SIZE_COLS, CSPadPixCoords::PixCoords2x1V2::PIX_SIZE_ROWS, CSPadPixCoords::PixCoords2x1V2::PIX_SIZE_UM, CSPadPixCoords::PixCoords2x1V2::PIX_SIZE_WIDE, CSPadPixCoords::PixCoords2x1V2::ROWS2X1, CSPadPixCoords::PixCoords2x1V2::SIZE2X1, and CSPadPixCoords::PixCoords2x1V2::UM_TO_PIX.

void CSPadPixCoords::PixCoordsCSPad2x2V2::printCoordArray ( unsigned  r1 = 10,
unsigned  r2 = 21,
unsigned  c1 = 15,
unsigned  c2 = 18 
)

Prints the part of the 2-D coordinate array in the specified ranges of rows and columns.

Definition at line 194 of file PixCoordsCSPad2x2V2.cpp.

References N2X1_IN_DET.

void CSPadPixCoords::PixCoordsCSPad2x2V2::printXYLimits (  ) 

Prints X and Y limits of the pixel coordinate map.

Definition at line 164 of file PixCoordsCSPad2x2V2.cpp.

void CSPadPixCoords::PixCoordsCSPad2x2V2::resetXYOriginAndMinMax (  )  [protected]

Protected method which resets the origin of the pixel coordinate map to (0,0).

Definition at line 123 of file PixCoordsCSPad2x2V2.cpp.

References CSPadPixCoords::PixCoords2x1V2::COLS2X1, N2X1_IN_DET, and CSPadPixCoords::PixCoords2x1V2::ROWS2X1.

Referenced by PixCoordsCSPad2x2V2().


Member Data Documentation

const unsigned CSPadPixCoords::PixCoordsCSPad2x2V2::N2X1_IN_DET = 2 [static]

Number of 2x1s in the CSPAD2x2.

Definition at line 144 of file PixCoordsCSPad2x2V2.h.

Referenced by CSPadPixCoords::CSPad2x2ImageProducer::cspad_image_fill(), fillPixelCoordinateArrays(), CSPadPixCoords::CSPad2x2ImageProducer::getCalibPars(), printCoordArray(), CSPadPixCoords::CSPad2x2ImageProducer::procCSPad2x2DataForType(), resetXYOriginAndMinMax(), test02(), and test03().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7