Ignore:
Timestamp:
11/29/11 16:36:30 (13 years ago)
Author:
lyard
Message:
viewer bugfix
File:
1 edited

Legend:

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

    r12669 r12670  
    717717        if (!inputFile->HasKey(*it)){
    718718            cout << "Warning: header keyword " << *it << " missing." << endl;
    719             return;}
     719            }
    720720        }
    721721        catch (std::runtime_error e)
     
    11561156        fDrsCalib.Apply(eventData, rawEventData, startPix, nRoi);
    11571157        DrsCalibrate::RemoveSpikes(eventData, nRoi);
    1158         for (int i=0;i<1024;i++)
    1159             eventData[i] = eventData[i+1024];
     1158//        for (int i=0;i<1024;i++)
     1159//            eventData[i] = eventData[i+1024];
    11601160        //TODO apply calibration to the Time markers
    11611161    }
     
    23652365    for (int i=start;i<end;i++)
    23662366    {
     2367        if (i==863)//keep crazy pixel out of the autoscale
     2368            continue;
    23672369        for (int j=10;j<GLWindow->nRoi-50;j++)
    23682370        {
     
    23902392    }
    23912393//    cout << "min: " << min << " max: " << max << " average: " << average << endl;
    2392     double minRange = (double)(min+(VALUES_SPAN/2))/(double)VALUES_SPAN;
    2393     double maxRange = (double)(max+(VALUES_SPAN/2))/(double)VALUES_SPAN;
    2394     double midRange = (double)(average+(VALUES_SPAN/2))/(double)VALUES_SPAN;
     2394    double minRange = (double)(min+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);
     2395    double maxRange = (double)(max+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);
     2396    double midRange = (double)(average+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);
    23952397    if (GLWindow->logScale)
    23962398    {
Note: See TracChangeset for help on using the changeset viewer.