Accelerator and detector physics at the Bern medical cyclotron and its beam transport line