A Surface Science Station (S 3 ) on the Alcator C-Mod tokamak is used to study and optimize the location and rate of boron film deposition in-situ during electron cyclotron (EC) discharge plasmas using 2.45 GHz radio-frequency (RF) heating and a mixture of helium and diborane (B 2 D 6 ) gasses. The radial profile of boron deposition is measured with a pair of quartz microbalances (QMB) on S . A maximum boron deposition rate of 0.82 g/cm 2 /min is obtained, which corresponds to 3.5 nm/min if the film density is that of solid boron. These deposition rates are sufficient for boron film applications between tokamak discharges. However the deposition does not peak at the EC resonance as previously assumed. Rather, deposition peaks near the upper hybrid (UH) resonance, ~5 cm outboard of the EC resonance. This has implications for RF absorption, with the RF waves being no longer damped on the electrons at the EC resonance. The previously inferred radial locations of critical erosion zones in Alcator C-Mod also need to be reevaluated. The boron deposition profile versus major radius follows the ion flux/density profile, implying that the boron deposition is primarily ionic. The application of a vertical magnetic field (B V ~0.01 T) was found to narrow the plasma density and boron deposition profiles near the UH resonance, thus better localizing the deposition. A Monte Carlo simulation is developed to model the boron deposition on the different QMB/tokamak surfaces. The model requires a relatively high boron ion gyroradius of ~5 mm, indicating a B +1 ion temperature of ~2 eV, to match the deposition on QMB surfaces with different orientation to B T . Additionally, the boron ion trajectories become de-magnetized at high neutral gas throughput (~0.5 Pa m ) and pressure (~2 Pa) when the largest absolute deposition rates are measured, resulting in deposition patterns, which are independent of surface orientation to B T in optimized conditions.