Changeset 12066


Ignore:
Timestamp:
09/11/11 21:33:20 (13 years ago)
Author:
tbretz
Message:
Make the newly read drs calibration only valid at the end of the function.
File:
1 edited

Legend:

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

    r12056 r12066  
    167167        }
    168168
    169         fStep      = file.GetUInt("STEP")+1;
     169        fStep      = file.GetUInt("STEP");
    170170        fNumOffset = file.GetUInt("NBOFFSET");
    171171        fNumGain   = file.GetUInt("NBGAIN");
     
    199199                fGain[i] *= 1024;
    200200        }
     201
     202        // Now mark the stored DRS data as "officially valid"
     203        // However, this is not thread safe. It only ensures that
     204        // this data is not used before it is completely and correctly
     205        // read.
     206        fStep++;
    201207
    202208        return true;
Note: See TracChangeset for help on using the changeset viewer.