Changeset 10601 for trunk/FACT++
- Timestamp:
- 05/06/11 09:48:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r10580 r10601 339 339 DimStampedInfo fDimFtmStaticData; 340 340 DimStampedInfo fDimFtmDynamicData; 341 DimStampedInfo fDimFtmCounter; 341 342 342 343 map<string, DimInfo*> fServices; … … 849 850 fFtmTime->setText(QString::number(sdata.fTimeStamp)); 850 851 fTriggerCounter->setText(QString::number(sdata.fTriggerCounter)); 852 } 853 854 void handleFtmCounter(const DimData &d) 855 { 856 if (d.size()==0) 857 return; 858 859 if (d.size()!=sizeof(uint32_t)*6) 860 { 861 cout << "Size mismatch: " << d.size() << " " << sizeof(uint32_t)*6 << endl; 862 return; 863 } 864 865 const uint32_t *sdata = reinterpret_cast<const uint32_t*>(d.ptr()); 866 867 fFtmCounterH->setValue(sdata[0]); 868 fFtmCounterS->setValue(sdata[1]); 869 fFtmCounterD->setValue(sdata[2]); 870 fFtmCounterF->setValue(sdata[3]); 871 fFtmCounterE->setValue(sdata[4]); 872 fFtmCounterR->setValue(sdata[5]); 851 873 } 852 874 … … 1388 1410 if (getInfo()==&fDimFtmTriggerCounter) 1389 1411 return PostInfoHandler(&FactGui::handleFtmTriggerCounter); 1412 1413 if (getInfo()==&fDimFtmCounter) 1414 return PostInfoHandler(&FactGui::handleFtmCounter); 1390 1415 1391 1416 if (getInfo()==&fDimFtmDynamicData) … … 1604 1629 fDimFtmFtuList ("FTM_CONTROL/FTU_LIST", (void*)NULL, 0, this), 1605 1630 fDimFtmStaticData ("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this), 1606 fDimFtmDynamicData ("FTM_CONTROL/DYNAMIC_DATA", (void*)NULL, 0, this) 1631 fDimFtmDynamicData ("FTM_CONTROL/DYNAMIC_DATA", (void*)NULL, 0, this), 1632 fDimFtmCounter ("FTM_CONTROL/COUNTER", (void*)NULL, 0, this) 1607 1633 { 1608 1634 fTriggerWidget->setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.