FACT++  1.0
void UIConnector::newFileLoaded ( )
slot

Definition at line 1323 of file RawEventsViewer.cc.

References str.

1324 {
1325  ostringstream str;
1326 
1327  //extract the file name only (no path) from the full name
1328  str << "File: ";
1329  if (currentFile.size() > 2)
1330  str << currentFile.substr(currentFile.find_last_of("//")+1, currentFile.size()) << "\n";
1331  else
1332  str << "--\n";
1333  str << "Calibration: ";
1334  if (currentCalibFile.size() > 2)
1335  str << currentCalibFile.substr(currentCalibFile.find_last_of("//")+1, currentCalibFile.size()) << "\n";
1336  else
1337  str << "--\n";
1338 // fileLoadedLabel->setText(QString(str.str().c_str()));
1339 // str.str("");
1340  str << "Run number: " << GLWindow->runNumber << "\n";
1341 // runNumberLabel->setText(QString(str.str().c_str()));
1342 // str.str("");
1343  str << "Number of Events: " << GLWindow->nRows << "\n";
1344 
1345  displayingEventBox->setMaximum(GLWindow->nRows-1);
1346 
1347  str << "Number of Slices: " << GLWindow->nRoi << "\n";// << "/1024";
1348 // numberOfSlicesLabel->setText(QString(str.str().c_str()));
1349 // str.str("");
1350  str << "Number of Time Marks: " << GLWindow->nTM << "\n";
1351 // numberOfTimeMarksLabel->setText(QString(str.str().c_str()));
1352 
1353 // str.str("");
1354  str << "Run Type: " << GLWindow->runType << "\n";
1355 // runTypeLabel->setText(QString(str.str().c_str()));
1356 // str.str("");
1357  str << "Time of 1st data: " << GLWindow->firstDataTime << "\n";
1358 // firstTimeLabel->setText(QString(str.str().c_str()));
1359 // str.str("");
1360  str << "Time of last data: " << GLWindow->lastDataTime << "\n";
1361 // lastTimeLabel->setText(QString(str.str().c_str()));
1362 // str.str("");
1363  str << "SVN revision: " << GLWindow->revision << '\n';
1364  str << "Number of boards: " << GLWindow->nBoards << '\n';
1365  str << "Number of pixels: " << GLWindow->nPixels << '\n';
1366  str << "Number of Slices TM: " << GLWindow->nRoiTM << '\n';
1367  str << "Time system: " << GLWindow->timeSystem << '\n';
1368  str << "Date: " << GLWindow->creationDate << '\n';
1369  str << "Night: " << GLWindow->nightInt << '\n';
1370  str << "Camera: " << GLWindow->camera << '\n';
1371  str << "DAQ: " << GLWindow->daq << '\n';
1372  str << "ADC Count: " << GLWindow->adcCount << '\n';
1373  str << "NB Evts OK:" << GLWindow->nbOk << '\n';
1374  str << "NB Evts Rejected: " << GLWindow->nbRej << '\n';
1375  str << "NB Evts Bad: " << GLWindow->nbBad << '\n';
1376  extraInfoLabel->setText(QString(str.str().c_str()));
1377 
1378  /*
1379  if (GLWindow->calibrationLoaded)
1380  {
1381  drawCalibrationCheckBox->setEnabled(true);
1382  }*/
1383 
1384 
1385 }
char str[80]
Definition: test_client.c:7
std::string currentFile
std::string currentCalibFile