Changeset 16941 for trunk/FACT++


Ignore:
Timestamp:
06/28/13 14:32:01 (11 years ago)
Author:
tbretz
Message:
Moved the conversion from dac to volt to its own function - for later easier replacement of the calibration.
File:
1 edited

Legend:

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

    r16732 r16941  
    949949    }
    950950
     951    double ConvertDacToVolt(uint16_t ch, uint16_t dac)
     952    {
     953        return dac*90./4096 - fChannelCalibration[ch];
     954    }
     955
    951956    // --------------------------------------------------------------------
    952957
     
    15111516        vector<float> volt(kNumChannels);
    15121517        for (float ch=0; ch<kNumChannels; ch++)
    1513             volt[ch] = fDacActual[ch]*90./4096 - fChannelCalibration[ch];
     1518            volt[ch] = ConvertDacToVolt(ch, fDacActual[ch]);
    15141519        fDimVolt.setTime(now);
    15151520        fDimVolt.setQuality(rc);
Note: See TracChangeset for help on using the changeset viewer.