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

Definition at line 1775 of file FactGui.h.

References fOnTime, FTM::DimTriggerRates::fOnTimeCounter, FTM::DimTriggerRates::fTimeStamp, fTriggerCounter, FTM::DimTriggerRates::fTriggerCounter, and DimData::ref().

Referenced by infoHandler().

1776  {
1777  if (!CheckSize(d, sizeof(FTM::DimTriggerRates)))
1778  return;
1779 
1780  const FTM::DimTriggerRates &sdata = d.ref<FTM::DimTriggerRates>();
1781 
1782  fFtmTime->setText(QString::number(sdata.fTimeStamp/1000000., 'f', 6)+ " s");
1783  fTriggerCounter->setText(QString::number(sdata.fTriggerCounter));
1784 
1785  if (sdata.fTimeStamp>0)
1786  fTriggerCounterRate->setValue(1000000.*sdata.fTriggerCounter/sdata.fTimeStamp);
1787  else
1788  fTriggerCounterRate->setValue(0);
1789 
1790  // ----------------------------------------------
1791 
1792  fOnTime->setText(QString::number(sdata.fOnTimeCounter/1000000., 'f', 6)+" s");
1793 
1794  if (sdata.fTimeStamp>0)
1795  fOnTimeRel->setValue(100.*sdata.fOnTimeCounter/sdata.fTimeStamp);
1796  else
1797  fOnTimeRel->setValue(0);
1798 
1799  // ----------------------------------------------
1800 
1801  UpdateTriggerRate(sdata);
1802  UpdateRatesGraphs(sdata);
1803  UpdateRatesCam(sdata);
1804 
1805  fTriggerRates = sdata;
1806  }
void UpdateTriggerRate(const FTM::DimTriggerRates &sdata)
Definition: FactGui.h:1657
float fOnTime
Definition: HeadersFTM.h:194
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
uint32_t fTriggerCounter
Definition: HeadersFAD.h:177
void UpdateRatesGraphs(const FTM::DimTriggerRates &sdata)
Definition: FactGui.h:1732
FTM::DimTriggerRates fTriggerRates
Definition: FactGui.h:1655
void UpdateRatesCam(const FTM::DimTriggerRates &sdata)
Definition: FactGui.h:1700
const T & ref(uint32_t offset=0) const
Definition: DimData.h:35
uint32_t fTriggerCounter
Definition: HeadersFTM.h:587
uint64_t fOnTimeCounter
Definition: HeadersFTM.h:586

+ Here is the call graph for this function:

+ Here is the caller graph for this function: