The role of a microDiamond detector in the dosimetry of proton pencil beams