Skip to content

Cannot set FrAdcData slope in python and default is 0.

As of ldas-tools-framecpp-swig 2.6.9/10 (can't quite remember which) the DEFAULT_SLOPE for FrAdcData seems to be set to 0., rather than 1., which means when reading data from an FrAdcData structure and applying the default slope/gain, the result is all zeros.

To compound the problem there seems to be no way to assign the slope of an FrAdcData structure from within python, so if you write and then read an FrAdcData object entirely in Python, you end up with zeros.