In Monte Carlo Framework, the path generator is specified with Hull-White model. For path pricer, it fetches the interest sequence from the input stream, calculates the payoff based on above formula and discounts it to time 0 for cap/floor price.