Poisson Superfish is one of the powerful tools for beam simulation and free.
https://laacg.lanl.gov/laacg/services/download_sf.phtml
You can download it when you fill in the blank below:
https://laacg.lanl.gov/laacg/services/coderegis2.php
There are handy tools in the Poisson Super fish.
The Energy to particle velocity calculates particle velocity and energy by Beta and Gamma, which are intended Lorentz factor.
https://en.wikipedia.org/wiki/Lorentz_factor
Here is a result table from 100keV to 10.1MeV for electron beams.

Don't forget to put the path of C:\LANL at the environment variable.
SUPERFISH provides field data by reading the .af file.
Here is an example (
download here).
RMASS is defined as particle type.
The default parameter is -2 which means proton.
When you want to change rest-mass (Particle rest mass energy), put rmass=-1.