Fixed: tof.in was being generated every time energy spectrum or depth
profile was created.