Abstract
The utilization of Z bosons, which are insensitive to the strong interaction, can constrain the initial energy, direction, and flavor of recoiling partons prior to their interaction with the quark-gluon plasma. This investigation focuses on charged particle yields in Z boson events, enabling a detailed exploration of in-medium modifications in both the recoiling parton showers and soft particles resulting from medium response. This presentation shows measurements of azimuthal angle distributions and fragmentation functions for charged particles associated with Z bosons in both lead-lead and proton-proton collisions at √SNN = 5.02 TeV, utilizing data collected by the CMS detector.