A method for calculating the dose due to capture gamma rays in accelerator mazes.