  We present analytical solution of relativistic hydrodynamics for a system
having cylindrical symmetry with boost-invariant longitudinal expansion and
Hubble-like transverse expansion. We also consider analytical solution for
Hubble-like spherically expanding system. For these two cases, we calculate
analytical expression for transverse momentum spectra of hadrons, at constant
temperature freeze-out hypersurface using Cooper-Frye prescription. We compare
our results for transverse momentum spectra with experimental results from
Large Hadron Collider and CERN SPS where one expects cylindrical and spherical
geometry of the fireball, respectively. In the case of low-energy collisions
with spherical geometry, we calculate rapidity spectra and compare with the
results from CERN SPS.
