A computational method for calculating the dose, Linear Energy Transfer and Relative Biological Effectiveness of proton treatment planning and optimization.