1988 RMS_window->fWhite = pixel;
1989 Mean_window->fWhite = pixel;
1990 Max_window->fWhite = pixel;
1991 PosOfMax_window->fWhite = pixel;
1994 RMS_window->fWhitePatch = RMS_window->pixelsPatch[pixel];
1995 Mean_window->fWhitePatch = Mean_window->pixelsPatch[pixel];
1996 Max_window->fWhitePatch = Max_window->pixelsPatch[pixel];
1997 PosOfMax_window->fWhitePatch = PosOfMax_window->pixelsPatch[pixel];
2001 RMS_window->fWhitePatch = -1;
2002 Mean_window->fWhitePatch = -1;
2003 Max_window->fWhitePatch = -1;
2004 PosOfMax_window->fWhitePatch = -1;
2008 int softwarePix = pixel;
2010 pixel = GLWindow->hardwareMapping[pixel];
2012 HwIDBox->setValue(pixel);
2014 if (!GLWindow->nRoi)
2017 int currentPixel = pixel;
2019 for (
int i=0;
i<GLWindow->nRoi;
i++)
2022 yval[
i] = GLWindow->eventData[GLWindow->nRoi*currentPixel +
i];
2026 int realNumSamples = GLWindow->nRoi;
2027 if (GLWindow->nRoiTM != 0)
2030 const int pixelIdInPatch = mapEntry.
pixel();
2031 const int patchId = mapEntry.
patch();
2032 const int boardId = mapEntry.
board();
2033 const int crateId = mapEntry.
crate();
2034 if (pixelIdInPatch == 8)
2037 int xIndex = GLWindow->nRoi;
2038 int arrayIndex = GLWindow->nRoi;
2039 if (GLWindow->offSetRoi < 0)
2040 TMIndex -= GLWindow->offSetRoi;
2041 if (GLWindow->offSetRoi > 0)
2042 xIndex += GLWindow->offSetRoi;
2043 for (
int i=TMIndex;
i<GLWindow->nRoiTM;
i++, xIndex++, arrayIndex++)
2045 xval[arrayIndex] = xIndex;
2046 yval[arrayIndex] = GLWindow->eventData[GLWindow->nRoi*1440 + GLWindow->nRoiTM*(40*crateId + 4*boardId + patchId) +
i];
2048 realNumSamples += GLWindow->nRoiTM - TMIndex;
2053 #if QWT_VERSION < 0x060000 2061 for (
int i=0;
i<GLWindow->nRoi;
i++)
2063 for (
int j=0;j<1440;j++) {
2065 for (
int i=0;
i<GLWindow->nRoi;
i++)
2068 yval[
i] += GLWindow->eventData[GLWindow->nRoi*currentPixel +
i];
2071 for (
int i=0;
i<GLWindow->nRoi;
i++)
2073 #if QWT_VERSION < 0x060000 2079 QStack< QRectF > stack;
QwtPlotCurve pixelValueCurveItem
void on_autoScaleColor_clicked()
int crate() const
Bias supply channel.
QwtPlotZoomer * curveZoom
QwtPlotCurve pixelAverageCurveItem
QwtPlotZoomer * averageCurveZoom
QRectF scaleBoundingRectangle(QRectF rectangle, float scale)