Changeset 11751 for trunk/FACT++/src


Ignore:
Timestamp:
08/02/11 20:49:53 (13 years ago)
Author:
tbretz
Message:
Added the missing factor 0.5 to convert ADC counts to rough mV
File:
1 edited

Legend:

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

    r11746 r11751  
    191191
    192192        // 0.5: Scale from ADC to Millivolt
    193         GetSampleStats(fStats.data()+1024*1440*2+3, 1./fNumOffset);//0.5);
     193        GetSampleStats(fStats.data()+1024*1440*2+3, 0.5/fNumOffset);//0.5);
    194194        reinterpret_cast<uint32_t*>(fStats.data())[1] = GetRunId();;
    195195    }
     
    200200
    201201        // 0.5: Scale from ADC to Millivolt
    202         GetSampleStats(fStats.data()+1024*1440*4+3, 1./fNumOffset);//0.5);
     202        GetSampleStats(fStats.data()+1024*1440*4+3, 0.5/fNumOffset);//0.5);
    203203        reinterpret_cast<uint32_t*>(fStats.data())[2] = GetRunId();;
    204204    }
Note: See TracChangeset for help on using the changeset viewer.