CSPadPixCoords::PixCoordsCSPadV2 Class Reference
[CSPadPixCoords package]

PixCoordsCSPadV2 class defines the CSPad pixel coordinates in the detector. More...

#include <PixCoordsCSPadV2.h>

Inheritance diagram for CSPadPixCoords::PixCoordsCSPadV2:

CSPadPixCoords::PixCoords2x1V2 List of all members.

Public Member Functions

 PixCoordsCSPadV2 (PSCalib::CSPadCalibPars *cspad_calibpars=new PSCalib::CSPadCalibPars(), bool tiltIsApplied=true, bool use_wide_pix_center=false)
 PixCoordsCSPadV2 class fills and provides access to the CSPad pixel coordinates.
virtual ~PixCoordsCSPadV2 ()
 Destructor.
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).
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 * getPixCoorArr_um (AXIS axis)
 Returns pointer to the pixel coordimate array of entire CSPAD in [um](micrometers).
ndarray< double, 3 > getPixCoorNDArrShapedAsData_um (AXIS axis, CSPadConfigPars *cspad_configpars=new CSPadConfigPars())
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].
double get_z_min ()
 Returns minimal z coordinate of the pixel in [um].
double get_z_max ()
 Returns maximal z coordinate of the pixel in [um].

Static Public Attributes

static const unsigned N2X1_IN_DET = 32
 Number of 2x1s in the entire detector.

Detailed Description

PixCoordsCSPadV2 class defines the CSPad pixel coordinates in the detector.

Interface Description

Definition at line 163 of file PixCoordsCSPadV2.h.


Constructor & Destructor Documentation

CSPadPixCoords::PixCoordsCSPadV2::PixCoordsCSPadV2 ( PSCalib::CSPadCalibPars cspad_calibpars = new PSCalib::CSPadCalibPars(),
bool  tiltIsApplied = true,
bool  use_wide_pix_center = false 
)

PixCoordsCSPadV2 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.

Parameters:
[in] cspad_calibpars - pointer to the store of CSPAD 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 59 of file PixCoordsCSPadV2.cpp.

References fillPixelCoordinateArrays(), and resetXYOriginAndMinMax().

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

Destructor.

Definition at line 270 of file PixCoordsCSPadV2.cpp.


Member Function Documentation

void CSPadPixCoords::PixCoordsCSPadV2::fillOneSectionInDet ( uint32_t  sect,
double  xcenter,
double  ycenter,
double  zcenter,
double  rotation 
)

Protected method for filling pixel coordinate array for specified sensor.

Definition at line 110 of file PixCoordsCSPadV2.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::PixCoordsCSPadV2::fillPixelCoordinateArrays (  ) 

Protected method for filling pixel coordinate array in constructor.

Definition at line 71 of file PixCoordsCSPadV2.cpp.

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

Referenced by PixCoordsCSPadV2().

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

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

Definition at line 238 of file PixCoordsCSPadV2.h.

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

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

Definition at line 235 of file PixCoordsCSPadV2.h.

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

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

Definition at line 244 of file PixCoordsCSPadV2.h.

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

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

Definition at line 241 of file PixCoordsCSPadV2.h.

double CSPadPixCoords::PixCoordsCSPadV2::get_z_max (  )  [inline]

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

Definition at line 250 of file PixCoordsCSPadV2.h.

double CSPadPixCoords::PixCoordsCSPadV2::get_z_min (  )  [inline]

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

Definition at line 247 of file PixCoordsCSPadV2.h.

double CSPadPixCoords::PixCoordsCSPadV2::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 173 of file PixCoordsCSPadV2.cpp.

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

double CSPadPixCoords::PixCoordsCSPadV2::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 159 of file PixCoordsCSPadV2.cpp.

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

Referenced by getPixCoor_pix().

double * CSPadPixCoords::PixCoordsCSPadV2::getPixCoorArr_um ( AXIS  axis  ) 

Returns pointer to the pixel coordimate array of entire CSPAD in [um](micrometers).

Definition at line 180 of file PixCoordsCSPadV2.cpp.

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

ndarray< double, 3 > CSPadPixCoords::PixCoordsCSPadV2::getPixCoorNDArrShapedAsData_um ( AXIS  axis,
CSPadConfigPars cspad_configpars = new CSPadConfigPars() 
)

Returns the ndarray with data for specified axis and configuration parameters

Parameters:
[in] axis - enumerated axis
[in] cspad_configpars - pointer to the store of CSPAD configuration parameters

Definition at line 194 of file PixCoordsCSPadV2.cpp.

References CSPadPixCoords::PixCoords2x1V2::AXIS_X, CSPadPixCoords::PixCoords2x1V2::AXIS_Y, CSPadPixCoords::PixCoords2x1V2::AXIS_Z, CSPadPixCoords::PixCoords2x1V2::COLS2X1, CSPadPixCoords::CSPadConfigPars::getCSPadPixNDArrShapedAsData(), N2X1_IN_DET, and CSPadPixCoords::PixCoords2x1V2::ROWS2X1.

void CSPadPixCoords::PixCoordsCSPadV2::printConstants (  ) 

Prints member data and partial coordinate map.

Definition at line 229 of file PixCoordsCSPadV2.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::PixCoordsCSPadV2::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 246 of file PixCoordsCSPadV2.cpp.

References N2X1_IN_DET.

void CSPadPixCoords::PixCoordsCSPadV2::printXYLimits (  ) 

Prints X and Y limits of the pixel coordinate map.

Definition at line 214 of file PixCoordsCSPadV2.cpp.

void CSPadPixCoords::PixCoordsCSPadV2::resetXYOriginAndMinMax (  ) 

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

Definition at line 137 of file PixCoordsCSPadV2.cpp.

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

Referenced by PixCoordsCSPadV2().


Member Data Documentation

const unsigned CSPadPixCoords::PixCoordsCSPadV2::N2X1_IN_DET = 32 [static]

Number of 2x1s in the entire detector.

Definition at line 166 of file PixCoordsCSPadV2.h.

Referenced by fillPixelCoordinateArrays(), getPixCoorNDArrShapedAsData_um(), printCoordArray(), 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