A Data-driven Analytic Model for Proton Acceleration by Large-scale Solar Coronal Shocks