Ignore:
Timestamp:
11/12/11 01:25:54 (13 years ago)
Author:
tbretz
Message:
Implemented commands and buttons to start a drs calibration and to reset the secondary baseline.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataCalib.cc

    r12475 r12498  
    3131
    3232    fProcessing = false;
     33}
     34
     35bool DataCalib::ResetTrgOff(DimDescribedService &dim)
     36{
     37    if (fData.fStep!=3)
     38        return false;
     39
     40    for (int i=1024*1440*3+4; i<1440*1024*6+160*1024*2+4; i++)
     41        fStats[i] = 0;
     42
     43    reinterpret_cast<uint32_t*>(fStats.data())[0] = 0;
     44    reinterpret_cast<uint32_t*>(fStats.data())[3] = 0;
     45
     46    fData.fStep = 1;
     47    Update(dim);
     48    fData.fStep = 2;
     49
     50    return true;
    3351}
    3452
Note: See TracChangeset for help on using the changeset viewer.