Analytical description of hadron production in hadron-hadron and nuclear-nuclear collisions in the mid-rapidity region