Analytic model for soft and hard hadronic collisions