Update TruthHitAnalysis.cxx: use the new generations() function from MagicNumbers.h
Tag @pclark @jchapman