In a magnetic resonance device having a PET unit for acquiring positron emission tomography data and a gradient coil, the PET unit includes a carrier tube on which at least one PET detector is arranged. In at least one embodiment, the carrier tube is arranged inside the gradient coil and is displaceably mounted in such a way that access to the PET detector is made possible by its displacement. This allows easy access to the PET detector during maintenance activities.