Changeset 12468 for trunk


Ignore:
Timestamp:
11/09/11 16:31:17 (13 years ago)
Author:
tbretz
Message:
Updated mainly the length check for the DRS calibration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r12432 r12468  
    16161616            fDrsCalibGain->setValue(0);
    16171617            fDrsCalibTrgOffset->setValue(0);
    1618             fDrsCalibration.assign(1024*1440*6, 0);
     1618            fDrsCalibration.assign(1024*1440*6+1024*160*2, 0);
    16191619            DisplayEventData();
    16201620            return;
    16211621        }
    16221622
    1623         if (!CheckSize(d, 1024*1440*6*sizeof(float)+3*sizeof(uint32_t)))
     1623        if (!CheckSize(d, 1024*1440*6*sizeof(float)+1024*160*2*sizeof(float)+3*sizeof(uint32_t)))
    16241624            // Do WHAT?
    16251625            return;
     
    16311631        fDrsCalibTrgOffset->setValue(run[2]);
    16321632
    1633         const float *dat = d.ptr<float>(sizeof(uint32_t)*3);
    1634         fDrsCalibration.assign(dat, dat+1024*1440*6);
     1633        const float *dat = d.ptr<float>(sizeof(uint32_t)*4);
     1634        fDrsCalibration.assign(dat, dat+1024*1440*6+1024*160*2);
    16351635
    16361636        DisplayEventData();
     
    39523952        fDimRateScan           ("RATE_SCAN/DATA",                 (void*)NULL, 0, this),
    39533953        //-
    3954         fEventData(0), fDrsCalibration(1440*1024*6),
     3954        fEventData(0), fDrsCalibration(1440*1024*6+160*1024*2),
    39553955        fTimeStamp0(0)
    39563956    {
Note: See TracChangeset for help on using the changeset viewer.