1466 RMS_window->SetData(GLWindow->RMSvalues);
1467 Mean_window->SetData(GLWindow->Meanvalues);
1468 PosOfMax_window->SetData(GLWindow->PosOfMaxvalues);
1469 Max_window->SetData(GLWindow->Maxvalues);
1470 threeD_Window->setData(GLWindow->eventData);
1472 if (RMS_window->isVisible())
1473 RMS_window->updateGL();
1474 if (Mean_window->isVisible())
1475 Mean_window->updateGL();
1476 if (PosOfMax_window->isVisible())
1477 PosOfMax_window->updateGL();
1478 if (Max_window->isVisible())
1479 Max_window->updateGL();
1487 displayingEventBox->setValue(GLWindow->rowNum);
1494 boost::posix_time::ptime hrTime( boost::gregorian::date(1970, boost::gregorian::Jan, 1),
1495 boost::posix_time::seconds(GLWindow->pcTime[0]) + boost::posix_time::microsec(GLWindow->pcTime[1]));
1498 str <<
"PC Time: " << boost::posix_time::to_iso_extended_string(hrTime);
1499 PCTimeLabel->setText(QString(str.str().c_str()));
1502 str <<
"Software Trigger: " << GLWindow->softTrig;
1503 softwareTriggerLabel->setText(QString(str.str().c_str()));
1506 str <<
"Trigger Type: " << GLWindow->triggerType;
1507 triggerTypeLabel->setText(QString(str.str().c_str()));
1511 if (autoScaleColor->isChecked())
1512 emit GLWindow->colorPaletteHasChanged();
1514 boardsTimeList->clear();
1515 startPixelsList->clear();
1516 startTimeMarksList->clear();
1517 triggerDelayList->clear();
1518 std::map<int, int> boardsHistoMap;
1523 if (i<10) str <<
" ";
1524 if (i<100) str <<
" ";
1525 if (i<1000) str <<
" ";
1526 str <<
": " << GLWindow->boardTime[
i];
1527 boardsTimeList->addItem(QString(str.str().c_str()));
1528 if (boardsHistoMap.find(GLWindow->boardTime[i]) != boardsHistoMap.end())
1529 boardsHistoMap[GLWindow->boardTime[i]]++;
1531 boardsHistoMap[GLWindow->boardTime[i]] = 1;
1533 std::map<int, int> pixelHistoMap;
1534 for (
int i=0;i <
NPIX; i++)
1538 if (i<10) str <<
" ";
1539 if (i<100) str <<
" ";
1540 if (i<1000) str <<
" ";
1541 str <<
": " << GLWindow->startPix[
i];
1542 startPixelsList->addItem(QString(str.str().c_str()));
1543 if (pixelHistoMap.find(GLWindow->startPix[i]) != pixelHistoMap.end())
1544 pixelHistoMap[GLWindow->startPix[i]]++;
1546 pixelHistoMap[GLWindow->startPix[i]] = 1;
1549 std::map<int, int> timeMarksMap;
1550 for (
int i=0;i <
NTMARK; i++)
1554 if (i<10) str <<
" ";
1555 if (i<100) str <<
" ";
1556 if (i<1000) str <<
" ";
1557 str <<
": " << GLWindow->startTM[
i];
1558 startTimeMarksList->addItem(QString(str.str().c_str()));
1559 if (timeMarksMap.find(GLWindow->startTM[i]) != timeMarksMap.end())
1560 timeMarksMap[GLWindow->startTM[i]]++;
1562 timeMarksMap[GLWindow->startTM[i]] = 1;
1564 std::map<int,int> delayMap;
1565 triggerDelayList->addItem(QString(
"Patch | Slice:Delay Slice:Delay..."));
1566 for (
int i=0;i<
NTMARK; i++)
1570 for (
int j=0;j<GLWindow->nRoi;j++)
1572 int value = GLWindow->eventData[1440*GLWindow->nRoi + i*GLWindow->nRoi + j];
1573 if (delayMap.find(value) != delayMap.end())
1576 delayMap[value] = 1;
1577 str << j <<
":" << value <<
" ";
1579 triggerDelayList->addItem(QString(str.str().c_str()));
1582 std::map<int,int>::iterator it = boardsHistoMap.begin();
1584 int previousValue = it->first-10;
1585 for (
unsigned int i=0;i<boardsHistoMap.size();i++)
1587 if (previousValue != it->first-1)
1589 xval[nsamples] = previousValue+1;
1592 xval[nsamples] = it->first-1;
1596 xval[nsamples] = it->first;
1597 yval[nsamples] = it->second;
1598 previousValue = it->first;
1601 xval[nsamples] = previousValue;
1604 if (nsamples > 4090)
1606 cout <<
"Error: Maximum number of samples reached for histograms. skipping what's remaining" << endl;
1610 xval[nsamples] = it==boardsHistoMap.begin() ? 0 : (--it)->
first+1;
1614 #if QWT_VERSION < 0x060000 1620 it = pixelHistoMap.begin();
1622 previousValue = it->first-10;
1623 for (
unsigned int i=0;i<pixelHistoMap.size();i++)
1625 if (previousValue != it->first-1)
1627 xval[nsamples] = previousValue+1;
1630 xval[nsamples] = it->first-1;
1634 xval[nsamples] = it->first;
1635 yval[nsamples] = it->second;
1636 previousValue = it->first;
1639 xval[nsamples] = previousValue;
1642 if (nsamples > 4090)
1644 cout <<
"Error: Maximum number of samples reached for histograms. skipping what's remaining" << endl;
1648 xval[nsamples] = it==pixelHistoMap.begin() ? 0 : (--it)->
first+1;
1652 #if QWT_VERSION < 0x060000 1658 it = timeMarksMap.begin();
1660 previousValue = it->first-10;
1661 for (
unsigned int i=0;i<timeMarksMap.size();i++)
1663 if (previousValue != it->first-1)
1665 xval[nsamples] = previousValue+1;
1668 xval[nsamples] = it->first-1;
1672 xval[nsamples] = it->first;
1673 yval[nsamples] = it->second;
1674 previousValue = it->first;
1677 xval[nsamples] = previousValue;
1680 if (nsamples > 4090)
1682 cout <<
"Error: Maximum number of samples reached for histograms. skipping what's remaining" << endl;
1686 xval[nsamples] = it==timeMarksMap.begin() ? 0 : (--it)->
first+1;
1690 #if QWT_VERSION < 0x060000 1696 it = delayMap.begin();
1698 previousValue = it->first-10;
1699 for (
unsigned int i=0;i<delayMap.size();i++)
1701 if (previousValue != it->first-1)
1703 xval[nsamples] = previousValue+1;
1706 xval[nsamples] = it->first-1;
1710 xval[nsamples] = it->first;
1711 yval[nsamples] = it->second;
1712 previousValue = it->first;
1715 xval[nsamples] = previousValue;
1718 if (nsamples > 4090)
1720 cout <<
"Error: Maximum number of samples reached for histograms. skipping what's remaining" << endl;
1724 xval[nsamples] = it==delayMap.begin() ? 0 : (--it)->
first+1;
1728 #if QWT_VERSION < 0x060000 1828 QStack< QRectF > stack;
QwtPlotCurve startCellHistoItem
QwtPlotZoomer * boardsTimeHistoZoom
QwtPlotZoomer * triggerDelayHistoZoom
bool updateSpinnerDisplay
int64_t first
Size of this column in the tile.
QwtPlotZoomer * startCellHistoZoom
QwtPlotCurve startTimeMarkHistoItem
QwtPlotZoomer * startTimeMarkHistoZoom
QRectF scaleBoundingRectangle(QRectF rectangle, float scale)
QwtPlotCurve triggerDelayHistoItem
QwtPlotCurve boardsTimeHistoItem