Changeset 12472 for trunk/FACT++
- Timestamp:
- 11/09/11 16:48:35 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12468 r12472 1389 1389 fDrsCalibGain->setEnabled(fDrsCalibGain->value()>0); 1390 1390 fDrsCalibTrgOffset->setEnabled(fDrsCalibTrgOffset->value()>0); 1391 fDrsCalibROI->setEnabled(fDrsCalibROI->value()>0); 1391 1392 1392 1393 if (d0)//fDrsCalibBaseline->value()==0 || start<0) … … 1560 1561 } 1561 1562 1562 if (d.size()!=sizeof(EVENT)+dat.Roi*4*1440 )1563 if (d.size()!=sizeof(EVENT)+dat.Roi*4*1440+dat.Roi*4*160) 1563 1564 { 1564 1565 cerr << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << dat.Roi*4*1440+sizeof(EVENT) << " [roi=" << dat.Roi << "]" << endl; … … 1611 1612 void handleFadDrsCalibration(const DimData &d) 1612 1613 { 1614 const size_t sz = 1024*1440*6+1024*160*2; 1615 1613 1616 if (d.size()==0) 1614 1617 { 1615 fDrsCalibBaseline->setValue(0); 1616 fDrsCalibGain->setValue(0); 1617 fDrsCalibTrgOffset->setValue(0); 1618 fDrsCalibration.assign(1024*1440*6+1024*160*2, 0); 1618 fDrsCalibBaseline->setValue(-1); 1619 fDrsCalibGain->setValue(-1); 1620 fDrsCalibTrgOffset->setValue(-1); 1621 fDrsCalibROI->setValue(-1); 1622 fDrsCalibration.assign(sz, 0); 1619 1623 DisplayEventData(); 1620 1624 return; 1621 1625 } 1622 1626 1623 if (!CheckSize(d, 1024*1440*6*sizeof(float)+1024*160*2*sizeof(float)+3*sizeof(uint32_t)))1627 if (!CheckSize(d, sz*sizeof(float)+4*sizeof(uint32_t))) 1624 1628 // Do WHAT? 1625 1629 return; … … 1630 1634 fDrsCalibGain->setValue(run[1]); 1631 1635 fDrsCalibTrgOffset->setValue(run[2]); 1636 fDrsCalibROI->setValue(run[3]); 1632 1637 1633 1638 const float *dat = d.ptr<float>(sizeof(uint32_t)*4); 1634 fDrsCalibration.assign(dat, dat+ 1024*1440*6+1024*160*2);1639 fDrsCalibration.assign(dat, dat+sz); 1635 1640 1636 1641 DisplayEventData(); -
trunk/FACT++/gui/design.ui
r12455 r12472 8633 8633 <enum>QAbstractSpinBox::NoButtons</enum> 8634 8634 </property> 8635 <property name="specialValueText"> 8636 <string>n/a</string> 8637 </property> 8635 8638 <property name="prefix"> 8636 8639 <string/> 8637 8640 </property> 8641 <property name="minimum"> 8642 <number>-1</number> 8643 </property> 8638 8644 <property name="maximum"> 8639 8645 <number>9999</number> 8646 </property> 8647 <property name="value"> 8648 <number>-1</number> 8640 8649 </property> 8641 8650 </widget> … … 8694 8703 <enum>QAbstractSpinBox::NoButtons</enum> 8695 8704 </property> 8705 <property name="specialValueText"> 8706 <string>n/a</string> 8707 </property> 8696 8708 <property name="prefix"> 8697 8709 <string/> 8698 8710 </property> 8711 <property name="minimum"> 8712 <number>-1</number> 8713 </property> 8699 8714 <property name="maximum"> 8700 8715 <number>9999</number> 8716 </property> 8717 <property name="value"> 8718 <number>-1</number> 8701 8719 </property> 8702 8720 </widget> … … 8755 8773 <enum>QAbstractSpinBox::NoButtons</enum> 8756 8774 </property> 8775 <property name="specialValueText"> 8776 <string>n/a</string> 8777 </property> 8757 8778 <property name="prefix"> 8758 8779 <string/> 8759 8780 </property> 8781 <property name="minimum"> 8782 <number>-1</number> 8783 </property> 8760 8784 <property name="maximum"> 8761 8785 <number>9999</number> 8786 </property> 8787 <property name="value"> 8788 <number>-1</number> 8762 8789 </property> 8763 8790 </widget> … … 8788 8815 <enum>QAbstractSpinBox::NoButtons</enum> 8789 8816 </property> 8817 <property name="specialValueText"> 8818 <string>n/a</string> 8819 </property> 8790 8820 <property name="prefix"> 8791 8821 <string/> 8792 8822 </property> 8823 <property name="minimum"> 8824 <number>-1</number> 8825 </property> 8793 8826 <property name="maximum"> 8794 8827 <number>9999</number> 8828 </property> 8829 <property name="value"> 8830 <number>-1</number> 8795 8831 </property> 8796 8832 </widget>
Note:
See TracChangeset
for help on using the changeset viewer.