Changeset 11752 for trunk/FACT++


Ignore:
Timestamp:
08/03/11 10:18:36 (13 years ago)
Author:
tbretz
Message:
Changed artificial 0.5 to corect scale 2000/4096
File:
1 edited

Legend:

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

    r11751 r11752  
    172172        fNumOffset = fNumEntries;
    173173
    174         // 0.5: Scale from ADC to Millivolt
    175         GetSampleStats(fStats.data()+3, 0.5);
     174        // Scale ADC data from 12bit to 2000mV
     175        GetSampleStats(fStats.data()+3, 2000./4096);
    176176        reinterpret_cast<uint32_t*>(fStats.data())[0] = GetRunId();;
    177177    }
     
    190190            fGain[i] *= 1024;
    191191
    192         // 0.5: Scale from ADC to Millivolt
    193         GetSampleStats(fStats.data()+1024*1440*2+3, 0.5/fNumOffset);//0.5);
     192        // Scale ADC data from 12bit to 2000mV
     193        GetSampleStats(fStats.data()+1024*1440*2+3, 2000./4096/fNumOffset);//0.5);
    194194        reinterpret_cast<uint32_t*>(fStats.data())[1] = GetRunId();;
    195195    }
     
    199199        fNumTrgOff = fNumEntries*fNumOffset;
    200200
    201         // 0.5: Scale from ADC to Millivolt
    202         GetSampleStats(fStats.data()+1024*1440*4+3, 0.5/fNumOffset);//0.5);
     201        // Scale ADC data from 12bit to 2000mV
     202        GetSampleStats(fStats.data()+1024*1440*4+3, 2000./4096/fNumOffset);//0.5);
    203203        reinterpret_cast<uint32_t*>(fStats.data())[2] = GetRunId();;
    204204    }
Note: See TracChangeset for help on using the changeset viewer.