Migration of HAPRAD2 to C++