PSCalib Namespace Reference


Classes

class  CalibFileFinder
 CalibFileFinder class finds the pass to calibration file. More...
class  CalibPars
class  CalibParsStore
 class CalibParsStore has a static factory method Create for CalibPars More...
class  CSPad2x2CalibIntensity
 CSPad2x2CalibIntensity class loads/holds/provides access to the CSPAD2x2 geometry calibration parameters. More...
class  CSPad2x2CalibPars
 CSPad2x2CalibPars class loads/holds/provides access to the CSPad2x2 geometry calibration parameters. More...
class  CSPadCalibIntensity
 CSPadCalibIntensity class loads/holds/provides access to the CSPAD geometry calibration parameters. More...
class  CSPadCalibPars
 CSPadCalibPars class loads/holds/provides access to the CSPad geometry calibration parameters. More...
class  Exception
 Base class for exception classes for PSCalib package. More...
class  NotDetInfoError
 Exception thrown when Source address is not DetInfo. More...
class  GenericCalibPars
 GenericCalibPars class loads/holds/provides access to the pnCCD geometry calibration parameters. More...
class  GeometryAccess
 Class supports universal detector geometry description. More...
class  GeometryObject
 Class supports elementary building block for hierarchial geometry description. More...
class  PnccdCalibPars
 PnccdCalibPars class loads/holds/provides access to the pnCCD geometry calibration parameters. More...
class  SegGeometry
 Abstract base class SegGeometry defines the interface to access segment pixel coordinates. More...
class  SegGeometryCspad2x1V1
 Class SegGeometryCspad2x1V1 defines the cspad 2x1 V1 sensor pixel coordinates in its local frame. More...
class  SegGeometryEpix100V1
 Class SegGeometryEpix100V1 defines the Epix100 V1 sensor pixel coordinates in its local frame. More...
class  SegGeometryMatrixV1
class  SegGeometryStore
 class SegGeometryStore has a static factory method Create for SegGeometry object More...

Enumerations

enum  CALIB_TYPE {
  PEDESTALS = 0, PIXEL_STATUS, PIXEL_RMS, PIXEL_GAIN,
  PIXEL_MASK, PIXEL_BKGD, COMMON_MODE
}
 Abstract base class CalibPars defining interface to access calibration parameters. More...

Functions

template<typename T>
ndarray< const T, 3 > data2x2ToTwo2x1 (const ndarray< const T, 3 > &data2x2)
 Converts cspad2x2 ndarray data2x2[185,388,2] to two2x1[2,185,388].
template<typename T>
ndarray< const T, 3 > two2x1ToData2x2 (const ndarray< const T, 3 > &two2x1)
 Converts cspad2x2 ndarray two2x1[2,185,388] to data2x2[185,388,2].
template<typename T>
void two2x1ToData2x2 (T *A)
 Converts cspad2x2 ndarray two2x1[2,185,388] to data2x2[185,388,2].
void rotation_ang (const double *x, const double *y, unsigned size, double angle_deg, double *xrot, double *yrot)
 Global method for x and y arrays rotation.
void rotation_cs (const double *x, const double *y, unsigned size, double C, double S, double *xrot, double *yrot)
 Global method for x and y arrays rotation.
double min_of_arr (const double *arr, unsigned size)
 Global method, returns minimal value of the array of specified length.
double max_of_arr (const double *arr, unsigned size)
 Global method, returns maximal value of the array of specified length.
bool matrix_pars (const std::string &segname, size_t &rows, size_t &cols, float &pix_size_rows, float &pix_size_cols)
 Class SegGeometryMatrixV1 defines the matrix V1 (pnCCD, 512x512) sensor pixel coordinates in its local frame.Splits the string segname like MTRX:384:384:100:100 and returns values.

Variables

static const size_t N2X1 = 2
 module GlobalMethods.h has Global Methods
static const size_t ROWS2X1 = 185
static const size_t COLS2X1 = 388
static const size_t SIZE2X1 = COLS2X1*ROWS2X1
static const size_t SIZE2X2 = N2X1*SIZE2X1
static const double DEG_TO_RAD = 3.141592653589793238463 / 180
const char logger [] = "PSCalib"
const char logger [] = "PSCalib"
const char logger [] = "PSCalib"
const char logger [] = "PSCalib"
const char logger [] = "PSCalib"
const char logger [] = "PSCalib"


Function Documentation

template<typename T>
ndarray<const T, 3> PSCalib::data2x2ToTwo2x1 ( const ndarray< const T, 3 > &  data2x2  ) 

Converts cspad2x2 ndarray data2x2[185,388,2] to two2x1[2,185,388].

Parameters:
[in] data2x2 - input ndarray shaped as [185,388,2]

Definition at line 54 of file GlobalMethods.h.

References COLS2X1, N2X1, and ROWS2X1.

template<typename T>
ndarray<const T, 3> PSCalib::two2x1ToData2x2 ( const ndarray< const T, 3 > &  two2x1  ) 

Converts cspad2x2 ndarray two2x1[2,185,388] to data2x2[185,388,2].

Parameters:
[in] two2x1 - input ndarray shaped as [2,185,388]

Definition at line 79 of file GlobalMethods.h.

References COLS2X1, N2X1, and ROWS2X1.

template<typename T>
void PSCalib::two2x1ToData2x2 ( T *  A  ) 

Converts cspad2x2 ndarray two2x1[2,185,388] to data2x2[185,388,2].

Parameters:
[in] A - pointer to input array with data shaped as [2,185,388]

Definition at line 102 of file GlobalMethods.h.

References COLS2X1, N2X1, and ROWS2X1.

void PSCalib::rotation_ang ( const double *  x,
const double *  y,
unsigned  size,
double  angle_deg,
double *  xrot,
double *  yrot 
)

Global method for x and y arrays rotation.

Definition at line 40 of file SegGeometry.cpp.

References DEG_TO_RAD, and rotation_cs().

void PSCalib::rotation_cs ( const double *  x,
const double *  y,
unsigned  size,
double  C,
double  S,
double *  xrot,
double *  yrot 
)

Global method for x and y arrays rotation.

Definition at line 50 of file SegGeometry.cpp.

Referenced by rotation_ang().

double PSCalib::min_of_arr ( const double *  arr,
unsigned  size 
)

Global method, returns minimal value of the array of specified length.

Definition at line 60 of file SegGeometry.cpp.

Referenced by SegGeometryMatrixV1::pixel_coord_min(), SegGeometryEpix100V1::pixel_coord_min(), and SegGeometryCspad2x1V1::pixel_coord_min().

double PSCalib::max_of_arr ( const double *  arr,
unsigned  size 
)

Global method, returns maximal value of the array of specified length.

Definition at line 68 of file SegGeometry.cpp.

Referenced by SegGeometryMatrixV1::pixel_coord_max(), SegGeometryEpix100V1::pixel_coord_max(), and SegGeometryCspad2x1V1::pixel_coord_max().


Variable Documentation

const size_t PSCalib::ROWS2X1 = 185 [static]

Definition at line 41 of file GlobalMethods.h.

Referenced by data2x2ToTwo2x1(), and two2x1ToData2x2().

const size_t PSCalib::COLS2X1 = 388 [static]

Definition at line 42 of file GlobalMethods.h.

Referenced by data2x2ToTwo2x1(), and two2x1ToData2x2().

const size_t PSCalib::SIZE2X1 = COLS2X1*ROWS2X1 [static]

Definition at line 43 of file GlobalMethods.h.

const size_t PSCalib::SIZE2X2 = N2X1*SIZE2X1 [static]

Definition at line 44 of file GlobalMethods.h.

Referenced by GeometryObject::evaluate_pixel_coords().

const double PSCalib::DEG_TO_RAD = 3.141592653589793238463 / 180 [static]

Definition at line 111 of file SegGeometry.h.

Referenced by rotation_ang().

const char PSCalib::logger[] = "PSCalib"

Definition at line 41 of file CSPad2x2CalibIntensity.cpp.

const char PSCalib::logger[] = "PSCalib"

Definition at line 41 of file CSPad2x2CalibPars.cpp.

const char PSCalib::logger[] = "PSCalib"

Definition at line 41 of file CSPadCalibIntensity.cpp.

const char PSCalib::logger[] = "PSCalib"

Definition at line 41 of file CSPadCalibPars.cpp.

const char PSCalib::logger[] = "PSCalib"

Definition at line 53 of file GenericCalibPars.cpp.

const char PSCalib::logger[] = "PSCalib"

Definition at line 41 of file PnccdCalibPars.cpp.


Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7