The cross section of a top-quark pair produced in association with a photon is measured in proton-proton collisions at a centre-of-mass energy of $\sqrt{s} = 8$ TeV with $20.2$ fb$^{-1}$ of data collected by the ATLAS detector at the Large Hadron Collider in 2012. The measurement is performed by selecting events that contain a photon with transverse momentum $p_\mathrm{T} > 15$ GeV, an isolated lepton with large transverse momentum, large missing transverse momentum, and at least four jets, where at least one is identified as originating from a $b$-quark. The production cross section is measured in a fiducial region close to the selection requirements. It is found to be $139 \pm 7 (\mathrm{stat.}) \pm 17 (\mathrm{syst.})$ fb, in good agreement with the theoretical prediction at next-to-leading order of $151 \pm 24$ fb. In addition, differential cross sections in the fiducial region are measured as a function of the transverse momentum and pseudorapidity of the photon.
The production of a prompt photon in association with a $Z$ boson is studied in proton-proton collisions at a centre-of-mass energy $\sqrt{s} =$ 13 TeV. The analysis uses a data sample with an integrated luminosity of 139 fb$^{-1}$ collected by the ATLAS detector at the LHC from 2015 to 2018. The production cross-section for the process $pp \rightarrow \ell^+\ell^-\gamma+X$ ($\ell = e, \mu$) is measured within a fiducial phase-space region defined by kinematic requirements on the photon and the leptons, and by isolation requirements on the photon. An experimental precision of 2.9% is achieved for the fiducial cross-section. Differential cross-sections are measured as a function of each of six kinematic variables characterising the $\ell^+\ell^-\gamma$ system. The data are compared with theoretical predictions based on next-to-leading-order and next-to-next-to-leading-order perturbative QCD calculations. The impact of next-to-leading-order electroweak corrections is also considered.