Parameter based 4D dose calculations for proton therapy