Characterization and validation of a Monte Carlo code for independent dose calculation in proton therapy treatments with pencil beam scanning | Synapse