Merge tofdev with true time into rec hit

This is gio, trying to merge Gianluca's developments into the new branch created exactly to handle this merge: merge-tofdev-with-true-time-into-recHit