FACT++  1.0
void RawDataViewer::eventStepping ( bool  plus)
private

Definition at line 922 of file RawEventsViewer.cc.

References _softwareOrdering, ApplyCalibration(), eventNum, eventStep, fits::GetRow(), i, inputFile, nRoi, nRoiTM, nRows, rawEventData, rowNum, selectedPixel, signalCurrentEvent(), signalCurrentPixel(), and BasicGlCamera::softwareMapping.

Referenced by minusEvent(), nextSlice(), plusEvent(), and previousSlice().

923 {
924  if (plus)
925  rowNum += eventStep;
926  else
927  rowNum -= eventStep;
928  if (rowNum >= nRows)
929  rowNum -= nRows;
930  if (rowNum < 0)
931  rowNum += nRows;
932 
933  if (inputFile == NULL)
934  return;
936  if (_softwareOrdering)
937  {//remap pixels data according to hardware id
938  if (nRoiTM != 0)
939  cout << "Warning: did not expect Time Markers data from Monte-Carlo simulations. These will not be mapped properly." << endl;
940  //first copy the data
941  int16_t* tempData = new int16_t[1440*nRoi];
942  for (int i=0;i<1440*nRoi;i++)
943  tempData[i] = rawEventData[i];
944  //copy back the data and re-map it on the fly
945  for (int i=0;i<1440;i++)
946  for (int j=0;j<nRoi;j++)
947  rawEventData[i*nRoi + j] = tempData[softwareMapping[i]*nRoi + j];
948 
949  delete[] tempData;
950  }
951 // cout << "Getting row " << rowNum << endl;
952 
953 
955 
958 }
int16_t * rawEventData
void signalCurrentPixel(int pixel)
int i
Definition: db_dim_client.c:21
void signalCurrentEvent(int event)
static int softwareMapping[NPIX]
virtual bool GetRow(size_t row, bool check=true)
Definition: fits.h:827

+ Here is the call graph for this function:

+ Here is the caller graph for this function: