initial version of stis calibration functions in c++