Skip to content

Commit

Permalink
Added missing files. This refs #5801
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Oct 8, 2012
1 parent b59fb91 commit ca16da7
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,25 @@ RefMatrixWSImageView::RefMatrixWSImageView( QString wps_name)
ws = AnalysisDataService::Instance().retrieveWS<IEventWorkspace>(wps_name.toStdString());

double total_ymin = 0;
double total_ymax = 256;
double total_ymax = 255;

std::vector<double> xaxis = ws->readX(0);
int sz = xaxis.size();

double total_xmin = xaxis[0];
double total_xmax = xaxis[sz-1];

//retrieve data now
std::vector<double> yaxis = ws->readY(256);

std::cout << yaxis.size() << std::endl;
float *data = new float[total_ymax * sz];

for (int px=0; px<=total_xmax; px++)
{
//retrieve data now
std::vector<double> yaxis = ws->readY(px);
for (int tof=0; tof<=sz; tof++)
{
data[px*sz + tof] = yaxis[tof];
}
}



Expand Down

0 comments on commit ca16da7

Please sign in to comment.