Changeset 10962 for trunk/FACT++/gui/FactGui.h
- Timestamp:
- 06/09/11 19:56:48 (13 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.