Cylindrical two-dimensional electron gas in a transverse magnetic field