extract_beam_stats function

Extract beam stats for a specific set