Legacy C++ tomography code