Device for measuring radiation