Changeset 19692 for trunk/FACT++


Ignore:
Timestamp:
09/27/19 20:10:05 (5 years ago)
Author:
tbretz
Message:
The average curve errorneously took into account empty channels.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r19686 r19692  
    861861    for (vector<PixelMapEntry>::const_iterator it=fPixelMap.begin(); it!=fPixelMap.end(); it++)
    862862    {
     863        //if (it->index>=nPixels)
     864        //    continue;
     865
    863866        Meanvalues[it->index]     = pixelStatsData[0*1440+it->hw()];
    864867        RMSvalues[it->index]      = pixelStatsData[1*1440+it->hw()];
     
    20292032       for (int j=0;j<1440;j++) {
    20302033           currentPixel = j;
     2034           if (GLWindow->softwareMapping[j]>=GLWindow->nPixels)
     2035               continue;
    20312036           for (int i=0;i<GLWindow->nRoi;i++)
    20322037           {
     
    20362041       }
    20372042       for (int i=0;i<GLWindow->nRoi;i++)
    2038            yval[i] /= 1440;
     2043           yval[i] /= GLWindow->nPixels;
    20392044#if QWT_VERSION < 0x060000
    20402045       pixelAverageCurveItem.setData(xval, yval, GLWindow->nRoi);
Note: See TracChangeset for help on using the changeset viewer.