#include <PixCoordsCSPad.h>
Public Types | |
NQuadsInCSPad = 4 | |
N2x1InQuad = 8 | |
NCols2x1 = Psana::CsPad::ColumnsPerASIC | |
NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2 | |
enum | { NQuadsInCSPad = 4 } |
enum | { N2x1InQuad = 8 } |
enum | { NCols2x1 = Psana::CsPad::ColumnsPerASIC } |
enum | { NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2 } |
Public Member Functions | |
PixCoordsCSPad (PixCoordsQuad *pix_coords_quad, PSCalib::CSPadCalibPars *cspad_calibpar, bool tiltIsApplied=true) | |
PixCoordsCSPad class fills and provides access to the CSPad pixel coordinates. | |
virtual | ~PixCoordsCSPad () |
Destructor. | |
void | fillAllQuadCoordsInCSPad () |
void | fillOneQuadCoordsInCSPad (uint32_t quad) |
void | fillOneQuadTiltedCoordsInCSPad (uint32_t quad) |
void | setConstXYMinMax () |
void | fillArrsOfCSPadPixCoords () |
void | fillArrsOfCSPadPixCoordsFromCenterGlobal () |
Fill CSPAD pixel coordinate array using center_global type of constants from class PixCoordsCSPadV2. | |
double | getPixCoor_um (CSPadPixCoords::PixCoords2x1::COORDINATE icoor, unsigned quad, unsigned sect, unsigned row, unsigned col) |
Access methods return the CSPad pixel coordinate for indicated axis, quad, section, row, and column indexes. The pixel coordinates can be returned in um(micrometers), pix(pixels), or int(integer pixel index). | |
double | getPixCoor_pix (CSPadPixCoords::PixCoords2x1::COORDINATE icoor, unsigned quad, unsigned sect, unsigned row, unsigned col) |
double | getPixCoor_int (CSPadPixCoords::PixCoords2x1::COORDINATE icoor, unsigned quad, unsigned sect, unsigned row, unsigned col) |
double * | getPixCoorArrX_um () |
The group of methods which provide the direct access to coordinate arrays. | |
double * | getPixCoorArrY_um () |
double * | getPixCoorArrX_pix () |
double * | getPixCoorArrY_pix () |
uint32_t * | getPixCoorArrX_int () |
uint32_t * | getPixCoorArrY_int () |
Fills/holds/provides access to the arrays of the CSPad pixel coordinates, using the quad, section, row, and column indexes.
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 58 of file PixCoordsCSPad.h.
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
CSPadPixCoords::PixCoordsCSPad::PixCoordsCSPad | ( | PixCoordsQuad * | pix_coords_quad, | |
PSCalib::CSPadCalibPars * | cspad_calibpar, | |||
bool | tiltIsApplied = true | |||
) |
PixCoordsCSPad class fills and provides access to the CSPad pixel coordinates.
Fills/holds/provides access to the array of the quad coordinates, indexed by the quad, section, row, and column.
[in] | pix_coords_quad | Pointer to the object with quad pixel coordinates. |
[in] | cspad_calibpar | Pointer to the object with geometry calibration parameters. |
[in] | tiltIsApplied | Boolean key indicating if the tilt angle correction for 2x1 and Quads is applied |
Definition at line 45 of file PixCoordsCSPad.cpp.
References fillAllQuadCoordsInCSPad(), fillArrsOfCSPadPixCoords(), fillArrsOfCSPadPixCoordsFromCenterGlobal(), CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
CSPadPixCoords::PixCoordsCSPad::~PixCoordsCSPad | ( | ) | [virtual] |
void CSPadPixCoords::PixCoordsCSPad::fillAllQuadCoordsInCSPad | ( | ) |
Definition at line 73 of file PixCoordsCSPad.cpp.
References fillOneQuadCoordsInCSPad(), fillOneQuadTiltedCoordsInCSPad(), PSCalib::CSPadCalibPars::getRowSize_um(), and NQuadsInCSPad.
Referenced by PixCoordsCSPad().
void CSPadPixCoords::PixCoordsCSPad::fillArrsOfCSPadPixCoords | ( | ) |
Definition at line 204 of file PixCoordsCSPad.cpp.
References PSCalib::CSPadCalibPars::getColUmToPix(), PSCalib::CSPadCalibPars::getRowUmToPix(), N2x1InQuad, NCols2x1, NQuadsInCSPad, and NRows2x1.
Referenced by PixCoordsCSPad().
void CSPadPixCoords::PixCoordsCSPad::fillArrsOfCSPadPixCoordsFromCenterGlobal | ( | ) |
Fill CSPAD pixel coordinate array using center_global type of constants from class PixCoordsCSPadV2.
Definition at line 230 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1V2::AXIS_X, CSPadPixCoords::PixCoords2x1V2::AXIS_Y, PSCalib::CSPadCalibPars::getColUmToPix(), getPixCoor_um(), PSCalib::CSPadCalibPars::getRowUmToPix(), N2x1InQuad, NCols2x1, NQuadsInCSPad, and NRows2x1.
Referenced by PixCoordsCSPad().
void CSPadPixCoords::PixCoordsCSPad::fillOneQuadCoordsInCSPad | ( | uint32_t | quad | ) |
Definition at line 120 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1::getOrientation(), CSPadPixCoords::PixCoordsQuad::getPixCoorRotN90_um(), N2x1InQuad, NCols2x1, NRows2x1, and CSPadPixCoords::rotation().
Referenced by fillAllQuadCoordsInCSPad().
void CSPadPixCoords::PixCoordsCSPad::fillOneQuadTiltedCoordsInCSPad | ( | uint32_t | quad | ) |
Definition at line 150 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1::getOrientation(), CSPadPixCoords::PixCoordsQuad::getPixCoorRotN90_um(), N2x1InQuad, NCols2x1, NRows2x1, and CSPadPixCoords::rotation().
Referenced by fillAllQuadCoordsInCSPad().
double CSPadPixCoords::PixCoordsCSPad::getPixCoor_int | ( | CSPadPixCoords::PixCoords2x1::COORDINATE | icoor, | |
unsigned | quad, | |||
unsigned | sect, | |||
unsigned | row, | |||
unsigned | col | |||
) |
Definition at line 287 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
double CSPadPixCoords::PixCoordsCSPad::getPixCoor_pix | ( | CSPadPixCoords::PixCoords2x1::COORDINATE | icoor, | |
unsigned | quad, | |||
unsigned | sect, | |||
unsigned | row, | |||
unsigned | col | |||
) |
Definition at line 274 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
Referenced by CSPadPixCoords::CSPadInterpolImageProducer::get_address_of_4_neighbors(), and CSPadPixCoords::CSPadInterpolImageProducer::get_weight_of_4_neighbors().
double CSPadPixCoords::PixCoordsCSPad::getPixCoor_um | ( | CSPadPixCoords::PixCoords2x1::COORDINATE | icoor, | |
unsigned | quad, | |||
unsigned | sect, | |||
unsigned | row, | |||
unsigned | col | |||
) |
Access methods return the CSPad pixel coordinate for indicated axis, quad, section, row, and column indexes. The pixel coordinates can be returned in um(micrometers), pix(pixels), or int(integer pixel index).
Definition at line 261 of file PixCoordsCSPad.cpp.
References CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
Referenced by fillArrsOfCSPadPixCoordsFromCenterGlobal().
uint32_t* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrX_int | ( | ) | [inline] |
Definition at line 103 of file PixCoordsCSPad.h.
double* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrX_pix | ( | ) | [inline] |
Definition at line 101 of file PixCoordsCSPad.h.
double* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrX_um | ( | ) | [inline] |
The group of methods which provide the direct access to coordinate arrays.
Definition at line 99 of file PixCoordsCSPad.h.
uint32_t* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrY_int | ( | ) | [inline] |
Definition at line 104 of file PixCoordsCSPad.h.
double* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrY_pix | ( | ) | [inline] |
Definition at line 102 of file PixCoordsCSPad.h.
double* CSPadPixCoords::PixCoordsCSPad::getPixCoorArrY_um | ( | ) | [inline] |
Definition at line 100 of file PixCoordsCSPad.h.
void CSPadPixCoords::PixCoordsCSPad::setConstXYMinMax | ( | ) |
Definition at line 194 of file PixCoordsCSPad.cpp.
References PSCalib::CSPadCalibPars::getColSize_um(), and PSCalib::CSPadCalibPars::getRowSize_um().