Advancing the modeling in particle therapy: From track structure to treatment planning