The output ROOT file was never closed. Fix the bug.
Histogram MC kinetic energy in addition to momentum.