********** applyGains ********** .. doxygenclass:: applyGains