FACT++  1.0
void FactGui::UpdateRatesCam ( const FTM::DimTriggerRates sdata)
inlineprivate

Definition at line 1700 of file FactGui.h.

References fBoardRate, FTM::DimTriggerRates::fBoardRate, fPatchRate, FTM::DimTriggerRates::fPatchRate, PixelMapEntry::hw(), i, and PixelMap::index().

1701  {
1702  if (fThresholdIdx->value()>=0)
1703  {
1704  const int isw = fThresholdIdx->value();
1705  const int ihw = fPatchMapHW[isw];
1706  fPatchRate->setValue(sdata.fPatchRate[ihw]);
1707  fBoardRate->setValue(sdata.fBoardRate[ihw/4]);
1708  }
1709 
1710  const bool b = fBoardRatesEnabled->isChecked();
1711 
1712  valarray<double> dat(0., 1440);
1713 
1714  // fPatch converts from software id to software patch id
1715  for (int i=0; i<1440; i++)
1716  {
1717  const int ihw = fPixelMap.index(i).hw()/9;
1718  dat[i] = b ? sdata.fBoardRate[ihw/4] : sdata.fPatchRate[ihw];
1719  }
1720 
1721  fRatesCanv->SetData(dat);
1722  fRatesCanv->updateCamera();
1723  }
float fPatchRate[160]
Definition: HeadersFTM.h:191
int i
Definition: db_dim_client.c:21
float fBoardRate[40]
Definition: HeadersFTM.h:589
float fBoardRate[40]
Definition: HeadersFTM.h:190
PixelMap fPixelMap
Definition: FactGui.h:73
const PixelMapEntry & index(int idx) const
Definition: PixelMap.h:107
int hw() const
Definition: PixelMap.h:39
float fPatchRate[160]
Definition: HeadersFTM.h:590
vector< int > fPatchMapHW
Definition: FactGui.h:76

+ Here is the call graph for this function: