Converts .mid files to .root files with time stamps of begin and end of run