Changeset 10962
- Timestamp:
- 06/09/11 19:56:48 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r10959 r10962 1166 1166 // fPatch converts from software id to software patch id 1167 1167 for (int i=0; i<1440; i++) 1168 dat[i] = sdata.fRatePatch[fPatch[i]]; 1168 { 1169 const int isw = fPatch[i]; 1170 const int ihw = fPatchMapHW[isw]; 1171 dat[i] = sdata.fRatePatch[ihw]; 1172 } 1169 1173 1170 1174 c = fRatesCanv->GetCanvas(); … … 1925 1929 1926 1930 ostringstream str; 1927 str << " HW=" << ihw << " Patch=" << idx << " (Crate=" << crate << " Board=" << board << " Patch=" << patch << ")";1931 str << " (hw=" << ihw << ") Patch=" << idx << " (hw=" << fPatchMapHW[idx] << "; Crate=" << crate << " Board=" << board << " Patch=" << patch << ")"; 1928 1932 1929 1933 tipText += str.str().c_str(); … … 1974 1978 fPatchRate->setValue(cam.GetData(isw)); 1975 1979 1980 // Loop over the software idx of all pixels 1976 1981 for (unsigned int i=0; i<fPatch.size(); i++) 1977 1982 if (fPatch[i]==isw) … … 2064 2069 2065 2070 Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PIXELS_EXCEPT", ihw); 2071 } 2072 2073 void on_fThresholdDisableOthers_clicked() 2074 { 2075 const uint16_t isw = fThresholdIdx->value(); 2076 const uint16_t ihw = fPatchMapHW[isw]; 2077 2078 Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PATCHES_EXCEPT", ihw); 2066 2079 } 2067 2080 -
trunk/FACT++/gui/MainWindow.cc
r10959 r10962 245 245 } 246 246 247 void MainWindow::on_fThresholdDisableOthers_clicked()248 {249 Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PATCHES_EXCEPT",250 uint16_t(fThresholdIdx->value()));251 }252 253 247 void MainWindow::on_fEnableTrigger_stateChanged(int b) 254 248 { -
trunk/FACT++/gui/MainWindow.h
r10953 r10962 85 85 86 86 // Tab: Rates 87 v oid on_fPixelEnable_stateChanged(int);88 v oid on_fThresholdVal_valueChanged(int);87 virtual void on_fPixelEnable_stateChanged(int) { } 88 virtual void on_fThresholdVal_valueChanged(int) { } 89 89 virtual void on_fThresholdIdx_valueChanged(int) { } 90 90 virtual void on_fThresholdCrate_valueChanged(int) { } … … 93 93 virtual void on_fPixelIdx_valueChanged(int) { } 94 94 95 void on_fPixelDisableOthers_clicked(); 96 virtual void on_fThresholdDisableOthers_clicked(); 95 void on_fPixelEnableAll_clicked(); 96 void on_fPixelDisableAll_clicked(); 97 98 virtual void on_fPixelDisableOthers_clicked() { } 99 virtual void on_fThresholdDisableOthers_clicked() { } 97 100 98 101 virtual void on_fRatePatch1_valueChanged(int) { }
Note:
See TracChangeset
for help on using the changeset viewer.