- Timestamp:
- 07/28/11 11:32:26 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11675 r11682 1190 1190 1191 1191 for (int i=0; i<fEventData->Roi; i++) 1192 h->SetBinContent(i+1, fEventData->Adc_Data[p*fEventData->Roi+i]*0.5);1193 1194 if (fAdc AutoScale->isChecked())1192 h->SetBinContent(i+1, reinterpret_cast<float*>(fEventData->Adc_Data)[p*fEventData->Roi+i]); 1193 1194 if (fAdcDynamicScale->isChecked()) 1195 1195 { 1196 1196 h->SetMinimum(-1111); 1197 1197 h->SetMaximum(-1111); 1198 1199 else 1198 } 1199 if (fAdcManualScale->isChecked()) 1200 1200 { 1201 1201 if (h->GetMinimumStored()==-1111) … … 1204 1204 h->SetMaximum(1025); 1205 1205 } 1206 if (fAdcAutoScale->isChecked()) 1207 { 1208 const double min = h->GetMinimumStored(); 1209 const double max = h->GetMaximumStored(); 1210 1211 h->SetMinimum(); 1212 h->SetMaximum(); 1213 1214 h->SetMinimum(h->GetMinimum()<min ? h->GetMinimum() : min); 1215 h->SetMaximum(h->GetMaximum()>max ? h->GetMaximum() : max); 1216 1217 } 1206 1218 1207 1219 c->Modified(); … … 1226 1238 } 1227 1239 1228 if (d.size()!=sizeof(EVENT)+dat.Roi* 2*1440)1229 { 1230 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << dat.Roi* 2*1440+sizeof(EVENT)<< endl;1240 if (d.size()!=sizeof(EVENT)+dat.Roi*4*1440) 1241 { 1242 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << dat.Roi*4*1440+sizeof(EVENT) << " [roi=" << dat.Roi << "]" << endl; 1231 1243 return; 1232 1244 } … … 2073 2085 SetLedColor(fStatusFADLed, kLedGray, time); 2074 2086 2075 for (int i=0; i<40; i++) 2076 SetLedColor(fFadLED[i], kLedGray, time); 2087 // Timing problem - sometimes they stay gray :( 2088 //for (int i=0; i<40; i++) 2089 // SetLedColor(fFadLED[i], kLedGray, time); 2077 2090 2078 2091 /* -
trunk/FACT++/gui/design.ui
r11672 r11682 6846 6846 </item> 6847 6847 <item> 6848 <widget class="QCheckBox" name="fAdcAutoScale"> 6848 <spacer name="verticalSpacer_51"> 6849 <property name="orientation"> 6850 <enum>Qt::Vertical</enum> 6851 </property> 6852 <property name="sizeType"> 6853 <enum>QSizePolicy::Fixed</enum> 6854 </property> 6855 <property name="sizeHint" stdset="0"> 6856 <size> 6857 <width>20</width> 6858 <height>10</height> 6859 </size> 6860 </property> 6861 </spacer> 6862 </item> 6863 <item> 6864 <widget class="QRadioButton" name="fAdcManualScale"> 6849 6865 <property name="text"> 6850 <string>AutoScale</string> 6866 <string>Manual scale</string> 6867 </property> 6868 <property name="checked"> 6869 <bool>true</bool> 6870 </property> 6871 </widget> 6872 </item> 6873 <item> 6874 <widget class="QRadioButton" name="fAdcDynamicScale"> 6875 <property name="text"> 6876 <string>Dynamic scale</string> 6877 </property> 6878 </widget> 6879 </item> 6880 <item> 6881 <widget class="QRadioButton" name="fAdcAutoScale"> 6882 <property name="text"> 6883 <string>Auto min/max</string> 6851 6884 </property> 6852 6885 </widget> … … 7221 7254 <enum>QAbstractSpinBox::NoButtons</enum> 7222 7255 </property> 7223 <property name="currentSection">7224 <enum>QDateTimeEdit::HourSection</enum>7225 </property>7226 <property name="displayFormat">7227 <string>hh:mm:ss</string>7228 </property>7229 <property name="calendarPopup">7230 <bool>false</bool>7231 </property>7232 <property name="timeSpec">7233 <enum>Qt::OffsetFromUTC</enum>7234 </property>7235 7256 <property name="time"> 7236 7257 <time> … … 7239 7260 <second>0</second> 7240 7261 </time> 7262 </property> 7263 <property name="currentSection"> 7264 <enum>QDateTimeEdit::HourSection</enum> 7265 </property> 7266 <property name="displayFormat"> 7267 <string>hh:mm:ss</string> 7268 </property> 7269 <property name="calendarPopup"> 7270 <bool>false</bool> 7271 </property> 7272 <property name="timeSpec"> 7273 <enum>Qt::OffsetFromUTC</enum> 7241 7274 </property> 7242 7275 </widget> … … 7363 7396 <enum>QAbstractSpinBox::NoButtons</enum> 7364 7397 </property> 7365 <property name="currentSection">7366 <enum>QDateTimeEdit::HourSection</enum>7367 </property>7368 <property name="displayFormat">7369 <string>hh:mm:ss</string>7370 </property>7371 <property name="calendarPopup">7372 <bool>false</bool>7373 </property>7374 <property name="timeSpec">7375 <enum>Qt::OffsetFromUTC</enum>7376 </property>7377 7398 <property name="time"> 7378 7399 <time> … … 7381 7402 <second>0</second> 7382 7403 </time> 7404 </property> 7405 <property name="currentSection"> 7406 <enum>QDateTimeEdit::HourSection</enum> 7407 </property> 7408 <property name="displayFormat"> 7409 <string>hh:mm:ss</string> 7410 </property> 7411 <property name="calendarPopup"> 7412 <bool>false</bool> 7413 </property> 7414 <property name="timeSpec"> 7415 <enum>Qt::OffsetFromUTC</enum> 7383 7416 </property> 7384 7417 </widget>
Note:
See TracChangeset
for help on using the changeset viewer.