A Fast Discrete Transform for Beam Digitization