Changeset 11867


Ignore:
Timestamp:
08/09/11 20:15:35 (13 years ago)
Author:
tbretz
Message:
SetPtrAddress takes the number of elements not the number of bytes.
File:
1 edited

Legend:

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

    r11864 r11867  
    148148        float *base = data.data();
    149149
    150         file.SetPtrAddress("RunNumberBaseline",      base,   sizeof(float));
    151         file.SetPtrAddress("RunNumberGain",          base+1, sizeof(float));
    152         file.SetPtrAddress("RunNumberTriggerOffset", base+2, sizeof(float));
    153         file.SetPtrAddress("BaselineMean",           base+0*1024*1440+3, sizeof(float)*1024*1440);
    154         file.SetPtrAddress("BaselineRms",            base+1*1024*1440+3, sizeof(float)*1024*1440);
    155         file.SetPtrAddress("GainMean",               base+2*1024*1440+3, sizeof(float)*1024*1440);
    156         file.SetPtrAddress("GainRms",                base+3*1024*1440+3, sizeof(float)*1024*1440);
    157         file.SetPtrAddress("TriggerOffsetMean",      base+4*1024*1440+3, sizeof(float)*1024*1440);
    158         file.SetPtrAddress("TriggerOffsetRms",       base+5*1024*1440+3, sizeof(float)*1024*1440);
     150        file.SetPtrAddress("RunNumberBaseline",      base,   1);
     151        file.SetPtrAddress("RunNumberGain",          base+1, 1);
     152        file.SetPtrAddress("RunNumberTriggerOffset", base+2, 1);
     153        file.SetPtrAddress("BaselineMean",           base+0*1024*1440+3, 1024*1440);
     154        file.SetPtrAddress("BaselineRms",            base+1*1024*1440+3, 1024*1440);
     155        file.SetPtrAddress("GainMean",               base+2*1024*1440+3, 1024*1440);
     156        file.SetPtrAddress("GainRms",                base+3*1024*1440+3, 1024*1440);
     157        file.SetPtrAddress("TriggerOffsetMean",      base+4*1024*1440+3, 1024*1440);
     158        file.SetPtrAddress("TriggerOffsetRms",       base+5*1024*1440+3, 1024*1440);
    159159
    160160        if (!file.GetNextRow())
Note: See TracChangeset for help on using the changeset viewer.