Clone the repository and run
source tofpet3d_setup.sh
make
See https://tofpet3d.readthedocs.io
tofpet3d is based on code by P. Solevi and J. Gillam, with modifications by P. Ferrario (Donostia International Physics Center, IFIC/Universitat de Valencia) and J. Renner (IGFAE at University of Santiago de Compostela).