#include <PixCoordsCSPad2x2.h>
Public Types | |
N2x1InDet = 2 | |
NCols2x1 = Psana::CsPad::ColumnsPerASIC | |
NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2 | |
enum | { N2x1InDet = 2 } |
enum | { NCols2x1 = Psana::CsPad::ColumnsPerASIC } |
enum | { NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2 } |
Public Member Functions | |
PixCoordsCSPad2x2 (PixCoords2x1 *pix_coords_2x1, bool tiltIsApplied=false) | |
PixCoordsCSPad2x2 class fills and provides access to the CSPad2x2 pixel coordinates. | |
PixCoordsCSPad2x2 (PixCoords2x1 *pix_coords_2x1, PSCalib::CSPad2x2CalibPars *cspad_calibpar, bool tiltIsApplied=false) | |
virtual | ~PixCoordsCSPad2x2 () |
void | fillPixelCoordinateArrays () |
void | fillOneSectionInDet (uint32_t sect, double xcenter, double ycenter, double zcenter, double rotation) |
void | fillOneSectionTiltedInDet (uint32_t sect, double xcenter, double ycenter, double zcenter, double rotation, double tilt) |
void | resetXYOriginAndMinMax () |
void | printXYLimits () |
double | getPixCoor_um (CSPadPixCoords::PixCoords2x1::COORDINATE icoor, unsigned sect, unsigned row, unsigned col) |
double | getPixCoor_pix (CSPadPixCoords::PixCoords2x1::COORDINATE icoor, unsigned sect, unsigned row, unsigned col) |
double | get_x_min () |
double | get_x_max () |
double | get_y_min () |
double | get_y_max () |
Use the same frame like in optical measurement, but in "matrix style" geometry: X axis goes along rows (from top to bottom) Y axis goes along columns (from left to right)
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 PixCoordsCSPad2x2.h.
anonymous enum |
anonymous enum |
anonymous enum |
CSPadPixCoords::PixCoordsCSPad2x2::PixCoordsCSPad2x2 | ( | PixCoords2x1 * | pix_coords_2x1, | |
bool | tiltIsApplied = false | |||
) |
PixCoordsCSPad2x2 class fills and provides access to the CSPad2x2 pixel coordinates.
Fills/holds/provides access to the array of the quad coordinates, indexed by the quad, section, row, and column.
[in] | pix_coords_2x1 | Pointer to the object with 2x1 section pixel coordinates. |
[in] | tiltIsApplied | Boolean key indicating if the tilt angle correction for 2x1 in 2x2 is applied. Currently is not used, because tilts for 2x1 in 2x2 are not presented in calibtration parameters. |
Definition at line 46 of file PixCoordsCSPad2x2.cpp.
References fillPixelCoordinateArrays(), printXYLimits(), resetXYOriginAndMinMax(), CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
CSPadPixCoords::PixCoordsCSPad2x2::PixCoordsCSPad2x2 | ( | PixCoords2x1 * | pix_coords_2x1, | |
PSCalib::CSPad2x2CalibPars * | cspad_calibpar, | |||
bool | tiltIsApplied = false | |||
) |
Definition at line 62 of file PixCoordsCSPad2x2.cpp.
References fillPixelCoordinateArrays(), printXYLimits(), resetXYOriginAndMinMax(), CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
CSPadPixCoords::PixCoordsCSPad2x2::~PixCoordsCSPad2x2 | ( | ) | [virtual] |
Definition at line 273 of file PixCoordsCSPad2x2.cpp.
void CSPadPixCoords::PixCoordsCSPad2x2::fillOneSectionInDet | ( | uint32_t | sect, | |
double | xcenter, | |||
double | ycenter, | |||
double | zcenter, | |||
double | rotation | |||
) |
Definition at line 125 of file PixCoordsCSPad2x2.cpp.
References CSPadPixCoords::PixCoords2x1::getOrientation(), CSPadPixCoords::PixCoords2x1::getPixCoorRotN90_um(), CSPadPixCoords::PixCoords2x1::getXCenterOffset_um(), CSPadPixCoords::PixCoords2x1::getYCenterOffset_um(), NCols2x1, and NRows2x1.
Referenced by fillPixelCoordinateArrays().
void CSPadPixCoords::PixCoordsCSPad2x2::fillOneSectionTiltedInDet | ( | uint32_t | sect, | |
double | xcenter, | |||
double | ycenter, | |||
double | zcenter, | |||
double | rotation, | |||
double | tilt | |||
) |
Definition at line 150 of file PixCoordsCSPad2x2.cpp.
References CSPadPixCoords::PixCoords2x1::getOrientation(), CSPadPixCoords::PixCoords2x1::getPixCoorRotN90_um(), CSPadPixCoords::PixCoords2x1::getXCenterOffset_um(), CSPadPixCoords::PixCoords2x1::getYCenterOffset_um(), NCols2x1, and NRows2x1.
Referenced by fillPixelCoordinateArrays().
void CSPadPixCoords::PixCoordsCSPad2x2::fillPixelCoordinateArrays | ( | ) |
Definition at line 78 of file PixCoordsCSPad2x2.cpp.
References fillOneSectionInDet(), fillOneSectionTiltedInDet(), PSCalib::CSPad2x2CalibPars::getRowSize_um(), N2x1InDet, and CSPadPixCoords::rotation().
Referenced by PixCoordsCSPad2x2().
double CSPadPixCoords::PixCoordsCSPad2x2::get_x_max | ( | ) | [inline] |
Definition at line 95 of file PixCoordsCSPad2x2.h.
double CSPadPixCoords::PixCoordsCSPad2x2::get_x_min | ( | ) | [inline] |
Definition at line 94 of file PixCoordsCSPad2x2.h.
double CSPadPixCoords::PixCoordsCSPad2x2::get_y_max | ( | ) | [inline] |
Definition at line 97 of file PixCoordsCSPad2x2.h.
double CSPadPixCoords::PixCoordsCSPad2x2::get_y_min | ( | ) | [inline] |
Definition at line 96 of file PixCoordsCSPad2x2.h.
double CSPadPixCoords::PixCoordsCSPad2x2::getPixCoor_pix | ( | CSPadPixCoords::PixCoords2x1::COORDINATE | icoor, | |
unsigned | sect, | |||
unsigned | row, | |||
unsigned | col | |||
) |
Definition at line 258 of file PixCoordsCSPad2x2.cpp.
References PSCalib::CSPad2x2CalibPars::getColUmToPix(), getPixCoor_um(), PSCalib::CSPad2x2CalibPars::getRowUmToPix(), CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
double CSPadPixCoords::PixCoordsCSPad2x2::getPixCoor_um | ( | CSPadPixCoords::PixCoords2x1::COORDINATE | icoor, | |
unsigned | sect, | |||
unsigned | row, | |||
unsigned | col | |||
) |
Access methods return the coordinate for indicated axis, quad, section, row, and column indexes after the quad rotation by n*90 degree. The pixel coordinates can be returned in um(micrometers) and pix(pixels).
Definition at line 242 of file PixCoordsCSPad2x2.cpp.
References CSPadPixCoords::PixCoords2x1::X, CSPadPixCoords::PixCoords2x1::Y, and CSPadPixCoords::PixCoords2x1::Z.
Referenced by getPixCoor_pix().
void CSPadPixCoords::PixCoordsCSPad2x2::printXYLimits | ( | ) |
Definition at line 234 of file PixCoordsCSPad2x2.cpp.
References CSPadPixCoords::logger.
Referenced by PixCoordsCSPad2x2().
void CSPadPixCoords::PixCoordsCSPad2x2::resetXYOriginAndMinMax | ( | ) |
Definition at line 211 of file PixCoordsCSPad2x2.cpp.
References N2x1InDet, NCols2x1, and NRows2x1.
Referenced by PixCoordsCSPad2x2().