FACT++  1.0
void UIConnector::initHistograms ( )
private

Definition at line 1854 of file RawEventsViewer.cc.

References gray().

1855 {
1856 // QwtPlot* boardsTimeHisto;
1857 // QwtPlotHistogram boardsTimeHistoItem;
1858  grid1 = new QwtPlotGrid;
1859  grid1->enableX(false);
1860  grid1->enableY(true);
1861  grid1->enableXMin(false);
1862  grid1->enableYMin(false);
1863  grid1->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1864  grid1->attach(boardsTimeHisto);
1865 
1866  grid2 = new QwtPlotGrid;
1867  grid2->enableX(false);
1868  grid2->enableY(true);
1869  grid2->enableXMin(false);
1870  grid2->enableYMin(false);
1871  grid2->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1872  grid2->attach(startCellsHisto);
1873 
1874  grid3 = new QwtPlotGrid;
1875  grid3->enableX(false);
1876  grid3->enableY(true);
1877  grid3->enableXMin(false);
1878  grid3->enableYMin(false);
1879  grid3->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1880  grid3->attach(startTimeMarkHisto);
1881 
1882  grid4 = new QwtPlotGrid;
1883  grid4->enableX(false);
1884  grid4->enableY(true);
1885  grid4->enableXMin(false);
1886  grid4->enableYMin(false);
1887  grid4->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1888  grid4->attach(pixelValueCurve);
1889 
1890  grid6 = new QwtPlotGrid;
1891  grid6->enableX(false);
1892  grid6->enableY(true);
1893  grid6->enableXMin(false);
1894  grid6->enableYMin(false);
1895  grid6->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1896  grid6->attach(pixelAverageCurve);
1897 
1898  grid5 = new QwtPlotGrid;
1899  grid5->enableX(false);
1900  grid5->enableY(true);
1901  grid5->enableXMin(false);
1902  grid5->enableYMin(false);
1903  grid5->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
1904  grid5->attach(triggerDelayHisto);
1905 
1906  boardsTimeHisto->setAutoReplot(true);
1907  startCellsHisto->setAutoReplot(true);
1908  startTimeMarkHisto->setAutoReplot(true);
1909  pixelValueCurve->setAutoReplot(true);
1910  pixelAverageCurve->setAutoReplot(true);
1911  triggerDelayHisto->setAutoReplot(true);
1912  boardsTimeHisto->setTitle("Boards time values");
1913  startCellsHisto->setTitle("Start Cell values");
1914  startTimeMarkHisto->setTitle("Start Time Marks values");
1915  pixelValueCurve->setTitle("Current pixel values");
1916  pixelAverageCurve->setTitle("Average pixels values");
1917  triggerDelayHisto->setTitle("Trigger Delays");
1918 
1919  // boardsTimeHistoItem.setBrush(QBrush(Qt::red));
1920 // startCellHistoItem.setBrush(QBrush(Qt::red));
1921 // startTimeMarkHistoItem.setBrush(QBrush(Qt::red));
1922 // triggerDelayHistoItem.setBrush(QBrush(Qt::red));
1923 // pixelValueCurveItem.setBrush(QBrush(Qt::red));
1924 
1925  boardsTimeHistoItem.setPen(QColor(Qt::darkGreen));
1926  boardsTimeHistoItem.setStyle(QwtPlotCurve::Steps);
1927  startCellHistoItem.setPen(QColor(Qt::darkGreen));
1928  startCellHistoItem.setStyle(QwtPlotCurve::Steps);
1929  startTimeMarkHistoItem.setPen(QColor(Qt::darkGreen));
1930  startTimeMarkHistoItem.setStyle(QwtPlotCurve::Steps);
1931  triggerDelayHistoItem.setPen(QColor(Qt::darkGreen));
1932  triggerDelayHistoItem.setStyle(QwtPlotCurve::Steps);
1933 
1934  boardsTimeHistoItem.attach(boardsTimeHisto);
1935  startCellHistoItem.attach(startCellsHisto);
1936  startTimeMarkHistoItem.attach(startTimeMarkHisto);
1937  triggerDelayHistoItem.attach(triggerDelayHisto);
1938 
1939  //curve
1940 // pixelValueCurveItem.setSymbol(new QwtSymbol(QwtSymbol::Cross, Qt::NoBrush, QPen(Qt::black), QSize(5,5)));
1941  pixelValueCurveItem.setPen(QColor(Qt::black));
1942  pixelAverageCurveItem.setPen(QColor(Qt::black));
1943  aMeanCurveItem.setPen(QColor(Qt::darkGreen));
1944  vCorrCurveItem.setPen(QColor(Qt::red));
1945  meanCurveItem.setPen(QColor(Qt::blue));
1946  pixelValueCurveItem.setStyle(QwtPlotCurve::Lines);
1947  pixelAverageCurveItem.setStyle(QwtPlotCurve::Lines);
1948  aMeanCurveItem.setStyle(QwtPlotCurve::Lines);
1949  vCorrCurveItem.setStyle(QwtPlotCurve::Lines);
1950  meanCurveItem.setStyle(QwtPlotCurve::Lines);
1951 
1952 // pixelValueCurveItem.setCurveAttribute(QwtPlotCurve::Fitted);
1953  pixelValueCurveItem.attach(pixelValueCurve);
1954  pixelAverageCurveItem.attach(pixelAverageCurve);
1955 // aMeanCurveItem.attach(pixelValueCurve);
1956  // vCorrCurveItem.attach(pixelValueCurve);
1957 // meanCurveItem.attach(pixelValueCurve);
1958 
1959  //FIXME delete these pointers with the destructor
1960  curveZoom = new QwtPlotZoomer(pixelValueCurve->canvas());
1961  curveZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1962  curveZoom->setTrackerPen(QPen(Qt::gray));
1963  averageCurveZoom = new QwtPlotZoomer(pixelAverageCurve->canvas());
1964  averageCurveZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1965  averageCurveZoom->setTrackerPen(QPen(Qt::gray));
1966 
1967  boardsTimeHistoZoom = new QwtPlotZoomer(boardsTimeHisto->canvas());
1968  boardsTimeHistoZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1969  boardsTimeHistoZoom->setTrackerPen(QPen(Qt::gray));
1970 
1971  startCellHistoZoom = new QwtPlotZoomer(startCellsHisto->canvas());
1972  startCellHistoZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1973  startCellHistoZoom->setTrackerPen(QPen(Qt::gray));
1974 
1975  startTimeMarkHistoZoom = new QwtPlotZoomer(startTimeMarkHisto->canvas());
1976  startTimeMarkHistoZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1977  startTimeMarkHistoZoom->setTrackerPen(QPen(Qt::gray));
1978 
1979  triggerDelayHistoZoom = new QwtPlotZoomer(triggerDelayHisto->canvas());
1980  triggerDelayHistoZoom->setRubberBandPen(QPen(Qt::gray, 2, Qt::DotLine));
1981  triggerDelayHistoZoom->setTrackerPen(QPen(Qt::gray));
1982 
1983 
1984 }
QwtPlotCurve pixelValueCurveItem
QwtPlotCurve startCellHistoItem
QwtPlotZoomer * boardsTimeHistoZoom
QwtPlotCurve meanCurveItem
QwtPlotZoomer * triggerDelayHistoZoom
function gray(id, str)
Definition: index.js:108
QwtPlotZoomer * startCellHistoZoom
QwtPlotZoomer * curveZoom
QwtPlotGrid * grid5
QwtPlotGrid * grid4
QwtPlotGrid * grid2
QwtPlotGrid * grid1
QwtPlotCurve startTimeMarkHistoItem
QwtPlotGrid * grid3
QwtPlotZoomer * startTimeMarkHistoZoom
QwtPlotCurve aMeanCurveItem
QwtPlotCurve pixelAverageCurveItem
QwtPlotGrid * grid6
QwtPlotCurve vCorrCurveItem
QwtPlotZoomer * averageCurveZoom
QwtPlotCurve triggerDelayHistoItem
QwtPlotCurve boardsTimeHistoItem

+ Here is the call graph for this function: