- Timestamp:
- 08/06/11 16:53:36 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11805 r11820 1279 1279 1280 1280 const int16_t start = fEventData->StartPix[p]; 1281 if (fDrsRuns[0]==0 || start<0) 1281 1282 if (fDrsCalibBaseline->value()==0 || start<0) 1282 1283 d0->Reset(); 1283 if (fDrs Runs[1]==0|| start<0)1284 if (fDrsCalibGain->value()==0 || start<0) 1284 1285 d1->Reset(); 1285 if (fDrs Runs[2]==0 || start<0)1286 if (fDrsCalibTrgOffset->value()==0 || start<0) 1286 1287 d2->Reset(); 1287 1288 … … 1301 1302 continue; 1302 1303 1303 if (fDrs Runs[0]>0)1304 if (fDrsCalibBaseline->value()>0) 1304 1305 { 1305 1306 d0->SetBinContent(i+1, fDrsCalibration[1440*1024*0 + p*1024+(start+i)%1024]); … … 1307 1308 1308 1309 } 1309 if (fDrs Runs[1]>0)1310 if (fDrsCalibGain->value()>0) 1310 1311 { 1311 1312 d1->SetBinContent(i+1, fDrsCalibration[1440*1024*2 + p*1024+(start+i)%1024]); 1312 1313 d1->SetBinError(i+1, fDrsCalibration[1440*1024*3 + p*1024+(start+i)%1024]); 1313 1314 } 1314 if (fDrs Runs[2]>0)1315 if (fDrsCalibTrgOffset->value()>0) 1315 1316 { 1316 1317 d2->SetBinContent(i+1, fDrsCalibration[1440*1024*4 + p*1024 + i]); … … 1491 1492 } 1492 1493 1493 uint32_t fDrsRuns[3];1494 1494 vector<float> fDrsCalibration; 1495 1495 … … 1498 1498 if (d.size()==0) 1499 1499 { 1500 fDrs Runs[0] = 0;1501 fDrs Runs[1] = 0;1502 fDrs Runs[2] = 0;1500 fDrsCalibBaseline->setValue(0); 1501 fDrsCalibGain->setValue(0); 1502 fDrsCalibTrgOffset->setValue(0); 1503 1503 fDrsCalibration.assign(1024*1440*6, 0); 1504 1504 DisplayEventData(); … … 1511 1511 1512 1512 const uint32_t *run = d.ptr<uint32_t>(); 1513 fDrsRuns[0] = run[0]; 1514 fDrsRuns[1] = run[1]; 1515 fDrsRuns[2] = run[2]; 1513 1514 fDrsCalibBaseline->setValue(run[0]); 1515 fDrsCalibGain->setValue(run[1]); 1516 fDrsCalibTrgOffset->setValue(run[2]); 1516 1517 1517 1518 const float *dat = d.ptr<float>(sizeof(uint32_t)*3); -
trunk/FACT++/gui/design.ui
r11805 r11820 6927 6927 </property> 6928 6928 </spacer> 6929 </item> 6930 <item> 6931 <widget class="QLabel" name="label_184"> 6932 <property name="text"> 6933 <string>DRS Calib RunNo</string> 6934 </property> 6935 <property name="alignment"> 6936 <set>Qt::AlignCenter</set> 6937 </property> 6938 </widget> 6939 </item> 6940 <item> 6941 <widget class="Line" name="line_24"> 6942 <property name="orientation"> 6943 <enum>Qt::Horizontal</enum> 6944 </property> 6945 </widget> 6946 </item> 6947 <item> 6948 <widget class="QLabel" name="label_183"> 6949 <property name="text"> 6950 <string>Baseline</string> 6951 </property> 6952 </widget> 6953 </item> 6954 <item> 6955 <widget class="QSpinBox" name="fDrsCalibBaseline"> 6956 <property name="alignment"> 6957 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 6958 </property> 6959 <property name="readOnly"> 6960 <bool>true</bool> 6961 </property> 6962 <property name="buttonSymbols"> 6963 <enum>QAbstractSpinBox::NoButtons</enum> 6964 </property> 6965 <property name="prefix"> 6966 <string/> 6967 </property> 6968 <property name="maximum"> 6969 <number>9999</number> 6970 </property> 6971 </widget> 6972 </item> 6973 <item> 6974 <widget class="QLabel" name="label_182"> 6975 <property name="text"> 6976 <string>Gain</string> 6977 </property> 6978 </widget> 6979 </item> 6980 <item> 6981 <widget class="QSpinBox" name="fDrsCalibGain"> 6982 <property name="alignment"> 6983 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 6984 </property> 6985 <property name="readOnly"> 6986 <bool>true</bool> 6987 </property> 6988 <property name="buttonSymbols"> 6989 <enum>QAbstractSpinBox::NoButtons</enum> 6990 </property> 6991 <property name="prefix"> 6992 <string/> 6993 </property> 6994 <property name="maximum"> 6995 <number>9999</number> 6996 </property> 6997 </widget> 6998 </item> 6999 <item> 7000 <widget class="QLabel" name="label_181"> 7001 <property name="text"> 7002 <string>Trigger Offset</string> 7003 </property> 7004 </widget> 7005 </item> 7006 <item> 7007 <widget class="QSpinBox" name="fDrsCalibTrgOffset"> 7008 <property name="alignment"> 7009 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 7010 </property> 7011 <property name="readOnly"> 7012 <bool>true</bool> 7013 </property> 7014 <property name="buttonSymbols"> 7015 <enum>QAbstractSpinBox::NoButtons</enum> 7016 </property> 7017 <property name="prefix"> 7018 <string/> 7019 </property> 7020 <property name="maximum"> 7021 <number>9999</number> 7022 </property> 7023 </widget> 6929 7024 </item> 6930 7025 </layout>
Note:
See TracChangeset
for help on using the changeset viewer.