Changeset 12157
- Timestamp:
- 09/29/11 10:40:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12156 r12157 5 5 * Author: lyard 6 6 */ 7 //FIXME replace with FACT++ Time class 8 #include <boost/date_time/local_time/local_time.hpp> 7 9 8 10 … … 26 28 #include "src/Configuration.h" 27 29 #include "externals/fits.h" 30 28 31 29 32 using namespace std; … … 729 732 cout << "Missing column " << "SoftTrig" << " Aborting load..." << endl; 730 733 nRoi = nRows = 0;return;} 731 if (!inputFile->SetPtrAddress("PCTime", &pcTime)){734 if (!inputFile->SetPtrAddress("PCTime", pcTime)){ 732 735 cout << "Missing column " << "PCTime" << " Aborting load..." << endl; 733 736 nRoi = nRows = 0;return;} … … 1314 1317 } 1315 1318 autoScalePressed(); 1316 1319 pixelChanged(viewer->selectedPixel); 1317 1320 1318 1321 } … … 1704 1707 //retrieve the data that we want to display 1705 1708 str.str(""); 1706 str << "PC Time: " << viewer->pcTime; 1709 boost::posix_time::ptime hrTime( boost::gregorian::date(1970, boost::gregorian::Jan, 1), 1710 boost::posix_time::seconds(viewer->pcTime[0]) + boost::posix_time::microsec(viewer->pcTime[1])); 1711 // cout << boost::posix_time::to_iso_extended_string(hrTime) << endl; 1712 str << "PC Time: " << boost::posix_time::to_iso_extended_string(hrTime); 1713 // str << "PC Time: " << viewer->pcTime[0]; 1714 // str << " " << viewer->pcTime[1]; 1707 1715 QString qstr = qstr.fromStdString(str.str()); 1708 1716 emit updateCurrentPCTime(qstr); … … 2182 2190 return; 2183 2191 2184 //if (hwID == pixel)2185 //return;2192 // if (hwID == pixel) 2193 // return; 2186 2194 for (int i=0;i<viewer->nRoi;i++) 2187 2195 {
Note:
See TracChangeset
for help on using the changeset viewer.