27 std::vector<double> pars = dataWS->getInstrument()->getNumberParameter(parameter);
38 return ny_pixels * pixel_x + pixel_y;
46 double &
x,
double &
y) {
51 x = (nx_pixels / 2.0 - 0.5 - pixel_x) * pixel_size_x / 1000.0;
52 y = (pixel_y - ny_pixels / 2.0 + 0.5) * pixel_size_y / 1000.0;
68 pixel_x = -
x / pixel_size_x * 1000.0 + nx_pixels / 2.0 - 0.5;
69 pixel_y =
y / pixel_size_y * 1000.0 + ny_pixels / 2.0 - 0.5;
Exception for errors associated with the instrument definition.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
void getDefaultBeamCenter(const API::MatrixWorkspace_sptr &dataWS, double &pixel_x, double &pixel_y)
double readInstrumentParameter(const std::string ¶meter, const API::MatrixWorkspace_sptr &dataWS)
File change history is stored at: https://github.com/mantidproject/mantid Code Documentation is avail...
int getDetectorFromPixel(const int &pixel_x, const int &pixel_y, const API::MatrixWorkspace_sptr &dataWS)
void getPixelFromCoordinate(const double &x, const double &y, const API::MatrixWorkspace_sptr &dataWS, double &pixel_x, double &pixel_y)
void getCoordinateFromPixel(const double &pixel_x, const double &pixel_y, const API::MatrixWorkspace_sptr &dataWS, double &x, double &y)