Inclusive particle production in the transverse momentum range between 0.25 and 40 GeV/c at the CERN $$Sp\bar pS$$ collider