First and second sound in cylindrically trapped gases