FACT++  1.0
void FactGui::on_fBiasDispRefVolt_stateChanged ( int  = 0)
inlineprivatevirtual

Implements MainWindow.

Definition at line 3452 of file FactGui.h.

References PixelMapEntry::hv(), i, and PixelMap::index().

3453  {
3454  // FIXME: Display patches for which ref==cur
3455 
3456  valarray<double> dat(0., 1440);
3457  fBiasCamV->setTitle("Applied BIAS voltage");
3458 
3459  if (fVecBiasVolt.size()>0 && fVecBiasDac.size()>0)
3460  {
3461  for (int i=0; i<1440; i++)
3462  {
3463  const PixelMapEntry &entry = fPixelMap.index(i);
3464 
3465  dat[i] = fVecBiasVolt[entry.hv()];
3466  fBiasCamV->highlightPixel(i, fVecBiasDac[entry.hv()]!=fVecBiasDac[entry.hv()+416]);
3467  }
3468 
3469  fBiasCamV->SetData(dat);
3470  }
3471 
3472  fBiasCamV->updateCamera();
3473  }
vector< float > fVecBiasVolt
Definition: FactGui.h:2450
int i
Definition: db_dim_client.c:21
PixelMap fPixelMap
Definition: FactGui.h:73
int hv() const
Definition: PixelMap.h:42
const PixelMapEntry & index(int idx) const
Definition: PixelMap.h:107
vector< int16_t > fVecBiasDac
Definition: FactGui.h:2451

+ Here is the call graph for this function: