halfnormal_dist function

Create a half-normal distribution object for energy testing