Validation code for electron track analysis