FACT++  1.0
void FactGui::handleFadEventData ( const DimData d)
inlineprivate

Definition at line 1303 of file FactGui.h.

References DimData::ptr().

Referenced by infoHandler().

1304  {
1305  if (!CheckSize(d, 4*1440*sizeof(float)))
1306  return;
1307 
1308  if (fEventsStop->isChecked())
1309  return;
1310 
1311  const float *ptr = d.ptr<float>();
1312 
1313  valarray<double> arr1(1440);
1314  valarray<double> arr2(1440);
1315  valarray<double> arr3(1440);
1316  valarray<double> arr4(1440);
1317 
1318  for (vector<PixelMapEntry>::const_iterator it=fPixelMap.begin(); it!=fPixelMap.end(); it++)
1319  {
1320  arr1[it->index] = ptr[0*1440+it->hw()];
1321  arr2[it->index] = ptr[1*1440+it->hw()];
1322  arr3[it->index] = ptr[2*1440+it->hw()];
1323  arr4[it->index] = ptr[3*1440+it->hw()];
1324  }
1325 
1326  fEventCanv1->SetData(arr1);
1327  fEventCanv2->SetData(arr2);
1328  fEventCanv3->SetData(arr3);
1329  fEventCanv4->SetData(arr4);
1330 
1331  fEventCanv1->updateCamera();
1332  fEventCanv2->updateCamera();
1333  fEventCanv3->updateCamera();
1334  fEventCanv4->updateCamera();
1335  }
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
PixelMap fPixelMap
Definition: FactGui.h:73
const T * ptr(uint32_t offset=0) const
Definition: DimData.h:32

+ Here is the call graph for this function:

+ Here is the caller graph for this function: