1 Introduction

Measurements of \(W^{\pm }\) and \(Z\) bosonFootnote 1 production at hadron colliders provide a benchmark for the understanding of quantum chromodynamics (QCD) and electroweak (EW) processes. Predictions for the differential and fiducial cross sections are available up to next-to-next-to-leading-order (NNLO) accuracy in QCD and include EW corrections at next-to-leading-order (NLO) accuracy [1,2,3]. The rapidity distribution of EW boson production is sensitive to the underlying QCD dynamics and, in particular, to the parton distribution functions (PDFs) which define the initial kinematics of the hard process. Therefore, measurements of weak-boson production offer an excellent opportunity to test models of parton dynamics.

The ATLAS, CMS and LHCb collaborations have measured \(W^{\pm }\) and \(Z\) boson production in proton–proton (\(pp\)) collisions at centre-of-mass energies of \(\sqrt{s} = 7\), 8 and 13 TeV [4,5,6,7]. These measurements provide precision tests of the QCD theory and PDFs, which can be complemented with measurements at the additional centre-of-mass energy \(\sqrt{s} = 5.02\) TeV.

This paper describes measurements of the production cross sections times leptonic branching ratios for the inclusive \(W^+\rightarrow \ell ^+\nu \), \(W^-\rightarrow \ell ^-\nu \) and \(Z\rightarrow \ell ^{+}\ell ^{-}\) \((\ell = e,~\mu )\) processes. Integrated and differential cross sections are measured in a fiducial phase space defined by detector acceptance and lepton kinematics. For \(W^{\pm }\) bosons the decay lepton charge asymmetry is also determined. All measurements are performed with \(pp\) collision data corresponding to an integrated luminosity of \(25.0~\mathrm {pb^{-1}}\), collected at \(\sqrt{s} = 5.02\) TeV with the ATLAS detector. The data were recorded during the autumn of 2015. The peak instantaneous luminosity delivered by the LHC was \(L = 3.8 \times 10^{32}\) \(\mathrm {cm^{-2}\mathrm {s^{-1}}}\) and the mean number of \(pp\) interactions per bunch crossing (hard scattering and pile-up events) was 1.5. Therefore, this dataset is characterised by a relatively low pile-up contribution as compared to the measurements of weak-boson production performed at higher centre-of-mass energies by ATLAS.

In addition, the measurement of \(W^{\pm }\) and \(Z\) boson production in \(pp\) collisions at the centre-of-mass energy \(\sqrt{s} = 5.02\) TeV is an important reference for weak-boson production in heavy-ion collisions. The LHC has provided both proton–lead (p+Pb) and lead–lead (Pb+Pb) collisions at the centre-of-mass energy per nucleon pair \(\sqrt{s_{\mathrm {NN}}}=5.02\) TeV. Published results from the ATLAS and CMS collaborations are currently available for \(W^{\pm }\) and \(Z\) boson production [8,9,10,11] in Pb+Pb collisions at \(\sqrt{s_{\mathrm {NN}}}=2.76\) TeV and \(Z\) boson production [12, 13] in the p+Pb system at \(\sqrt{s_{\mathrm {NN}}}=5.02\) TeV.

2 The ATLAS detector

The ATLAS experiment [14] is a multipurpose particle detector with a forward–backward symmetric cylindrical geometry.Footnote 2 It consists of an inner tracking detector surrounded by a thin superconducting solenoid, electromagnetic and hadronic calorimeters, and a muon spectrometer incorporating three large superconducting air-core toroid magnets with eight coils each.

The inner-detector system (ID) is immersed in a 2 T axial magnetic field and provides charged-particle tracking in the pseudorapidity range \(|\eta | < 2.5\). At small radii, a high-granularity silicon pixel detector covers the interaction region and typically provides four measurements per track. It is followed by the silicon microstrip tracker, which usually provides eight measurement points per track. These silicon detectors are complemented by a gas-filled straw-tube transition radiation tracker, which enables track reconstruction up to \(|\eta | = 2.0\). The transition radiation tracker also provides electron identification information based on the fraction of hits (out of \(\sim 35\) in total) with an energy deposit above a threshold indicative of transition radiation.

The calorimeter system covers the pseudorapidity range \(|\eta | < 4.9\). Within the region \(|\eta |< 3.2\), electromagnetic (EM) calorimetry is provided by high-granularity lead/liquid-argon (LAr) calorimeters, with an additional thin LAr presampler covering \(|\eta |<1.8\) to correct for upstream energy-loss fluctuations. The EM calorimeter is divided into a barrel section covering \(|\eta |<1.475\) and two endcap sections covering \(1.375<|\eta |<3.2\). For \(|\eta |<2.5\) it is divided into three layers in depth, which are finely segmented in \(\eta \) and \(\phi \). Hadronic calorimetry is provided by a steel/scintillator-tile calorimeter, segmented into three barrel structures within \(|\eta | < 1.7\) and two copper/LAr hadronic endcap calorimeters covering \(1.5<|\eta |<3.2\). The solid-angle coverage is completed with forward copper/LAr and tungsten/LAr calorimeter modules in \(3.1<|\eta |<4.9\), optimised for electromagnetic and hadronic measurements, respectively.

The muon spectrometer (MS) comprises separate trigger and high-precision tracking chambers measuring the deflection of muons in the magnetic field generated by the toroid magnets. The precision chamber system covers the region \(|\eta | < 2.7\) with three layers of monitored drift tubes, complemented by cathode strip chambers in the forward region. The muon trigger system covers the range \(|\eta | < 2.4\) with resistive plate chambers in the barrel, and thin gap chambers in the endcap regions.

In 2015, the ATLAS detector had a two-level trigger system [15]. The level-1 trigger is implemented in hardware and uses a subset of detector information to reduce the event rate to a value of at most 75 kHz. This is followed by a software-based high-level trigger which reduces the event rate to about 1 kHz.

3 Simulated event samples

Samples of Monte Carlo (MC) simulated events are used to evaluate the selection efficiency for signal events and the contribution of several background processes to the analysed dataset. All of the samples are processed with the Geant4-based simulation [16, 17] of the ATLAS detector. Dedicated efficiency and calibration studies with data are used to derive correction factors to account for residual differences between experiment and simulation, as is subsequently described.

The processes of interest, specifically events containing \(W^{\pm }\) or \(Z\) bosons, were generated with the Powheg-Box v2 MC program [18] interfaced to the Pythia 8.186 parton shower model [19]. The CT10 PDF set [20] was used in the matrix element, while the CTEQ6L1 PDF set [21] was used with the AZNLO [22] set of generator-parameter values (tune) for the modelling of non-perturbative effects in the initial-state parton shower. The Photos++ v3.52 program [23] was used for QED radiation from electroweak vertices and charged leptons. Samples of top-quark pair (\(t\bar{t}\)) and single-top-quark production were generated with the Powheg-Box v2 generator, which uses NLO matrix element calculations together with the CT10f4 PDF set [24]. Top-quark spin correlations were preserved for all top-quark processes. The parton shower, fragmentation, and underlying event were simulated using Pythia 6.428 [25] with the CTEQ6L1 PDF set and the corresponding Perugia 2012 tune (P2012) [26]. The top-quark mass was set to 172.5 GeV. The EvtGen v1.2.0 program [27] was used to model bottom and charm hadron decays for all versions of Pythia. Diboson processes were simulated using the Sherpa v2.1.1 generator [28]. They were calculated for up to one (ZZ) or zero (WW, WZ) additional partons at NLO QCD accuracy and up to three additional partons at LO. In addition, the Sherpa diboson sample cross section is scaled to account for the cross section change when the \(G_\mu \) scheme [29] is used instead of the native one for the EW parameters, resulting in an effective value of \(\alpha \approx 1/132\). Multiple overlaid \(pp\) collisions were simulated with the soft QCD processes of Pythia v8.186 using the A2 tune [30] and the MSTW2008LO PDF set [31]. For the comparison with data in differential distributions and the evaluation of single-boson EW backgrounds for the cross-section calculations, the single-boson simulations are normalised to the results of NNLO QCD calculations obtained with a modified version of DYNNLO 1.5 [2, 3] optimised for speed of computation, with uncertainties of 3%. The simulations of all other processes are normalised to the predictions of NLO QCD calculations, with uncertainties of 10% for the diboson and top-quark processes.

4 Object definitions and event selection

This section describes the reconstruction of electrons, muons and hadronic recoil objects, and the selection of W and Z bosons. Candidate events are required to have at least one primary vertex reconstructed from at least three tracks with \(p_{\text {T}} \) > 400 MeV and to pass a trigger selection, which requires a single electron or muon candidate with a \(p_{\text {T}} \) threshold of 15 GeV or 14 GeV, respectively. In addition, a loose likelihood-based identification requirement [32, 33] is applied in the electron trigger.

Electron candidates are required to have \(p_{\text {T}} >20~(25)\) GeV in the Z (W) boson analysis and \(|\eta | < 2.47\). Candidates within the transition region between barrel and endcap calorimeters (\(1.37< |\eta | < 1.52\)) are rejected. In addition, medium likelihood-based identification and tight isolation requirements are applied [32, 33]. Muon candidates must satisfy \(p_{\text {T}} >20~(25)\) GeV in the Z (W) boson analysis and \(|\eta | < 2.4\) and pass the requirements of medium identification and tight isolation [34]; both criteria were optimised for 2015 analysis conditions.

Additional requirements are imposed on the significance of the transverse impact parameter, \(d_0\), such that \(|d_0|/\sigma _{d_0}<5~(3)\) for electron (muon) candidates. To ensure that lepton candidates originate from the primary vertex, a requirement is also placed on the longitudinal impact parameter, \(z_0\), multiplied by the sine of the track polar angle, \(\theta \), such that the absolute value is smaller than 0.5 mm.

Events with Z boson candidates are selected by requiring exactly two opposite-charge electrons or muons, at least one of which is matched to a lepton selected at trigger level. The dilepton invariant mass must satisfy the fiducial requirement \(66<m_{\ell \ell }<116\) GeV.

Events with W boson candidates are selected by requiring exactly one electron or muon that is matched to a lepton selected at trigger level. The (anti-)neutrinos from \(W^\pm \rightarrow \ell ^\pm \nu \) decays escape direct detection. A measure of the neutrino transverse momentum, \(p_{\mathrm {T}}^\nu \), can be inferred from information about the hadronic system recoiling against the W boson. The hadronic recoil is the vector sum of all calorimeter energy clusters excluding the deposits from the decay muon or electron, and is further described below. The transverse projection of the recoil onto the r\(\phi \) plane, \(\vec {u}_{\mathrm {T}}\), is used together with the decay lepton transverse momentum \(\vec {p}_{\mathrm {T}}^{\,\ell }\) for the calculation of the missing transverse momentum vector,

$$\begin{aligned} \vec {E}_{\text {T}}^{\text { miss}}= & {} - \left( \vec {u}_{\mathrm {T}}+ \vec {p}_{\mathrm {T}}^{\,\ell }\right) , \end{aligned}$$

whose magnitude is denoted \(E_{\text {T}}^{\text {miss}}\). The transverse mass of the lepton-\(E_{\text {T}}^{\text {miss}}\) system is defined as \(m_{\mathrm {T}}= \sqrt{2 p_{\mathrm {T}}^\ell E_{\text {T}}^{\text {miss}} \left( 1-\cos {\Delta \phi _{\ell ,E_{\text {T}}^{\text {miss}}}}\right) }\) where \(\Delta \phi _{\ell ,E_{\text {T}}^{\text {miss}}}\) is the azimuthal angle between \(\vec {p}_{\mathrm {T}}^{\,\ell }\) and \(\vec {E}_{\text {T}}^{\text { miss}}\). The W boson candidate events are selected by requiring \(E_{\text {T}}^{\text {miss}} > 25\) GeV and \(m_{\mathrm {T}}> 40\) GeV. These event selection requirements are optimised to reduce background contributions from multi-jet processes.

The general structure of the algorithm used for hadronic recoil reconstruction is introduced in Ref. [35], where three-dimensional topological clusters [36] calibrated at the hadronic scale are used as inputs to the algorithm. In this measurement, the hadronic recoil is reconstructed using particle flow objects [37] as inputs. The ATLAS particle flow algorithm provides an improved \(E_{\text {T}}^{\text {miss}}\) resolution compared to the algorithm using only topological clusters, and makes the measurement less sensitive to pile-up by separating the charged-hadron contribution from the neutral hadronic activity [37]. The charged activity is measured by the ID and the related tracks from charged hadrons can be matched to a vertex. From all charged hadrons, only calorimetric clusters associated with a track originating from the reconstructed primary vertex are retained as input to the hadronic recoil algorithm. The neutral hadronic activity is represented by clusters without an associated track, and is also used in the recoil algorithm.

5 Detector performance corrections

5.1 Lepton calibration and efficiency

The electron energy calibration is primarily obtained from the simulation by employing multivariate techniques [38]. The signal \(Z\rightarrow ee\) MC simulation is used for deriving the data energy scale calibration and resolution corrections for the simulation. The energy resolution is corrected with additional factors no larger than about 1% in the barrel and up to 2% in the endcap region of the detector in order to account for a slightly worse resolution observed in the data. The energy scale is corrected by applying a per-electron energy scale factor to the data derived from a comparison of the electron-pair invariant mass between the simulation and the data. This procedure was found to be sensitive to the pile-up distribution in data due to different settings used for the signal readout from the EM calorimeters [39]. Therefore, a special set of scale correction factors was derived for this dataset.

Measurements of muon momenta can be biased by the detector alignment and resolution, distortions of the magnetic field or imprecise estimates of the amount of passive material in the detector. Corrections of the muon momentum scale and resolution, which are applied to the simulation, are derived as a function of the muon \(\eta \) and \(\phi \) using \(Z\rightarrow \mu ^{+}\mu ^{-}\) events [34]. The correction factors are chosen such that they minimise the \(\chi ^2\) between the muon-pair invariant mass distributions in data and simulation.

Electron candidates used for the analysis are required to satisfy selection criteria related to reconstruction, identification, isolation and trigger. For each of these requirements, the efficiency of the selection is measured in data with the tag-and-probe method in \(Z\rightarrow e^{+}e^{-}\) events, as described in Ref. [33], and compared with the simulation. Data-to-simulation ratios of efficiencies are used as scale factors to correct the simulation for the observed differences. Measurements are performed as a function of the electron \(p_{\text {T}}\) and \(\eta \) for electrons selected in the analysis. All uncertainties related to efficiency are classified as either correlated or uncorrelated, and are propagated accordingly to the final measurement uncertainty.

The electron reconstruction efficiency is in the range 95–99% both in the data and simulation and is typically measured with a precision of 2%. The data-to-simulation ratio is up to 2% (5%) different from unity in the barrel (endcap) calorimeter and is measured typically with 2% precision for \(p_{\text {T}}\) in the range \(\sim \)30 to 50 GeV and 5% for \(p_{\text {T}} >60\) GeV. The efficiency of an electron to further pass the medium identification definition varies from 85 to 95% and is measured with 2% precision. This efficiency differs from the efficiency measured in the MC simulation by up to 5%. The isolation efficiency is measured with a precision of 5% and agrees with the simulated value within 2%. Data-to-simulation correction factors for identification and isolation efficiencies are measured with a precision of 2–6%. Finally, the trigger efficiency data-to-simulation ratio is found to deviate from unity by 0.5–3% and is measured with a precision of up to 2%.

Various selection requirements related to muon trigger, reconstruction, identification and isolation are imposed on muon candidates used in the analysis. The efficiency of the selection criteria is measured in data with the tag-and-probe method in \(Z\rightarrow \mu ^{+}\mu ^{-}\) events [15, 34] and compared with the simulation. Ratios of the efficiencies determined in data and simulation are applied as scale factors to correct the simulated events. For muons with \(p_{\text {T}} >20\) GeV, the correction factors measured as a function of muon \(p_{\text {T}}\) have typically an uncertainty of 1–2% and do not deviate from a constant value by more than 3%. Therefore, the \(p_{\text {T}}\) dependence of the scale factors is neglected, and they are evaluated only as a function of muon \(\eta \).

The muon trigger efficiency in the endcap region of the detector (\(1.05<|\eta |<2.4\)) is measured to be around 90%, and the values obtained in data and simulation agree well. However, in the barrel region (\(|\eta |<1.05\)) the trigger efficiency determined in the simulation varies from 70 to 85%, while the efficiency measured in data is lower by 5–15%, which results in sizeable scale factors. The combined reconstruction and identification efficiency for medium-quality muons typically exceeds 99% in both the data and simulation with good agreement between the two measurements. The efficiency of the isolation selection is found to be 97–98% in the MC simulation and it differs from the efficiency measured in the data by about 2% in the most central (\(|\eta |<0.6\)) and most forward detector regions (\(1.74<|\eta |<2.4\)).

All measurements of lepton efficiency corrections are limited in their precision by the number of \(Z\rightarrow \ell ^{+}\ell ^{-}\) candidates available in the \(\sqrt{s} = 5.02\) TeV dataset.

Figure 1 summarises the reconstruction, identification, isolation and trigger efficiencies for electron and muon candidates obtained from the tag-and-probe method.

Fig. 1
figure 1

Efficiencies of reconstruction, identification, isolation and trigger requirements as a function of lepton pseudorapidity for a electrons and b muons measured using the tag-and-probe method. The efficiency of each selection is defined with respect to leptons selected in the previous step

Figure 2 shows the invariant mass distribution of the dilepton system for electron and muon candidates from \(Z\rightarrow \ell ^{+}\ell ^{-}\) boson decays after applying scale factors to the MC simulation. The data points are compared with simulation including Z boson signal and background components. The electron candidates in the data, shown on the left panel, are calibrated using calorimeter settings and calibration correction factors optimised for low-pile-up conditions. Good agreement between the data and the simulation is found for both channels.

Fig. 2
figure 2

Detector-level invariant mass distribution of a dielectron and b dimuon pairs from Z boson decays together with EW background contributions. Background contributions are too small to be visible on a linear scale. Only the statistical uncertainties of the data are shown

5.2 Recoil calibration

In events with W or Z boson production, the hadronic recoil gives a measure of the boson transverse momentum. The calibration of the recoil is performed using dilepton events from decays of Z bosons produced in pp collisions at \(\sqrt{s} = 5.02\) TeV, as information about the Z boson transverse momentum can be obtained with high precision from the measurements of lepton momenta and compared with the measurement from hadronic recoil. The recoil resolution is studied using \(u_{\perp }\), the projection of \(\vec {u}_{\mathrm {T}}\) onto the axis – in the transverse plane – perpendicular to the Z boson \(\vec {p}_{\mathrm {T}}\). The resolution is given by the standard deviation of the \(u_{\perp }\) distribution, \(\sigma _{u_{\perp }}\). The transverse momentum scale response of the recoil can be studied using the bias defined as \(u_{\parallel } + p_{\text {T}} ^Z\), where \(u_{\parallel }\) is the projection of \(\vec {u}_{\mathrm {T}}\) onto the axis defined by \(\vec {p}_{\mathrm {T}}^Z\), and is quantified via the average of the bias distribution. Differences between the responses in data and simulation are less than \({\sim } 2\) GeV, while up to \({\sim } 20\%\) differences in the resolution are observed.

Following the procedure described in Ref. [35], in situ corrections to the resolution and the scale of \(u_{\mathrm {T}}\) are obtained in Z events and are applied to the W boson event candidates, as a function of \(p_{\text {T}} ^W\). The corrections applied to the simulation are obtained as a function of \(p_{\text {T}} ^Z\):

$$\begin{aligned} u^{W,\text {corr}}_{\parallel }= & {} \left\langle u^{Z}_{\parallel } + p_{\text {T}} ^Z \right\rangle ^{\text {data}} - \left\langle u^{Z}_{\parallel } + p_{\text {T}} ^Z \right\rangle ^{\text {MC}} + \left\langle u^{Z,\text {data}}_{\parallel } \right\rangle \nonumber \\&+ \left( u^{W,\text {MC}}_{\parallel } - \left\langle u^{Z,\text {data}}_{\parallel } \right\rangle \right) \cdot \frac{\sigma _{u_{\perp }}^{\text {data}}}{\sigma _{u_{\perp }}^{\text {MC}}}; \end{aligned}$$
(1)
$$\begin{aligned} u^{W,\text {corr}}_{\perp }= & {} u^{W,\text {MC}}_{\perp } \cdot \frac{\sigma _{u_{\perp }}^{\text {data}}}{\sigma _{u_{\perp }}^{\text {MC}}}. \end{aligned}$$
(2)

Equation (1) describes corrections applied to the recoil response in simulation. It includes a shift which brings the average value of \(u_{\parallel }\) in the simulation closer to the one in data, taking into account differences in the bias. In addition, it corrects the response distribution for resolution differences (last term in the equation). The resolution correction is directly described by Eq. (2) where it is applied to the \(u_{\perp }\) distribution in the simulation. The impact of the calibration on the scale and resolution in events where a Z boson decays to a dimuon pair is shown in Fig. 3. The distributions are shown for the simulation before and after applying the corrections and for data. Agreement of the distributions from simulation with data distributions is improved after applying the calibration, and residual differences are covered by the systematic uncertainties described in Sect. 8.

Fig. 3
figure 3

Distributions of a \(u_{\parallel } + p_{\text {T}} ^Z\) and b \(u_{\perp }\) in data and \(Z\rightarrow \mu ^{+}\mu ^{-}\) MC simulation before (squares) and after (circles) recoil calibration. The shaded band in the ratio panels represents the statistical uncertainty of the data sample, while the error bars represent the systematic uncertainty associated with the calibration procedure

6 Background determination

6.1 W channels

The reported cross-section measurements correspond to inclusive Drell–Yan production of single vector bosons which decay leptonically. Background processes that contribute to the \(W^{\pm }\)  boson production measurement are EW processes producing \(W^\pm \rightarrow \tau ^\pm \nu \), \(Z\rightarrow \ell ^{+}\ell ^{-}\), \(Z\rightarrow \tau ^{+}\tau ^{-}\) decays, EW diboson (WW, WZ, ZZ) production, as well as top-quark production and multi-jet processes. The multi-jet background includes various processes such as semileptonic decays of heavy-flavour hadrons or in-flight decays of kaons and pions for the muon channel, as well as photon conversions or misidentified hadrons for the electron channel. The background contributions from EW and top-quark production are evaluated using simulated event samples, while the multi-jet contribution is estimated with a data-driven method similar to the one described in Ref. [5].

Although multi-jet background events are well rejected by the lepton isolation requirements, their contribution to the signal region is still sizeable because of the very large production cross sections for multi-jet processes. This contribution is estimated from template fits to data in kinematic distributions: lepton \(p_{\text {T}}\), \(E_{\text {T}}^{\text {miss}}\) and \(m_{\mathrm {T}}\). The fits are performed in a phase-space region defined by the full event selection with a looser lepton \(p_{\text {T}}\) requirement of \(p_{\text {T}} > 20\) GeV and with the requirements on \(E_{\text {T}}^{\text {miss}}\) and \(m_{\mathrm {T}}\) removed. An additional requirement on the transverse component of the hadronic recoil, \(u_{\mathrm {T}}< 30\) GeV, is placed to ensure better agreement of the event kinematics between the fit region and the signal region.

Template distributions for signal, EW and top-quark background processes are constructed by applying the fit-region selection to samples of simulated events. Templates enriched in contributions from multi-jet processes are built using events in data with non-isolated leptons selected by inverting the isolation requirement described in Sect. 4. The normalisation factors of template distributions for signal, EW and top-quark backgrounds, as well as the multi-jet background, are extracted from a fit to the data. The fits are repeated with multi-jet background templates constructed from different intervals in a track-based (muon channel) or calorimeter-based (electron channel) isolation variable. Finally, a linear extrapolation to the signal region is performed as a function of the selected isolation variable, accounting also for the difference in kinematic selections between the fit region and the signal region. Examples of post-fit template \(E_{\text {T}}^{\text {miss}}\) distributions, which are used to extract multi-jet yields in the electron and muon channels, are presented in Fig. 4.

Following this procedure, multi-jet background processes are estimated to contribute around 0.9% of the \(W^+\rightarrow e^+\nu \) sample and 1.4% of the \(W^-\rightarrow e^-\nu \) sample, while in the muon channel they represent around 0.1% of the \(W^+\rightarrow \mu ^+\nu \) sample and 0.2% of the \(W^-\rightarrow \mu ^-\nu \) sample.

Fig. 4
figure 4

Distributions of \(E_{\text {T}}^{\text {miss}}\) used to extract multi-jet yields in the a electron and b muon channels after performing the template fits. Only the statistical uncertainties of the data are shown

The largest background contributions to the decay modes studied come from the production of single EW bosons decaying via other decay channels. The \(Z\rightarrow e^{+}e^{-}\) background represents 0.1% of the \(W^+\rightarrow e^+\nu \) sample and 0.2% of the \(W^-\rightarrow e^-\nu \) sample, while the \(Z\rightarrow \mu ^{+}\mu ^{-}\) background amounts to 2.8% and 3.8% in the \(W^+\rightarrow \mu ^+\nu \) and \(W^-\rightarrow \mu ^-\nu \) samples, respectively. The \(W^\pm \rightarrow \tau ^\pm \nu \) background contributes around 1.8% to the samples selected in both channels and the \(Z\rightarrow \tau ^{+}\tau ^{-}\) background contributes approximately 0.1%. Contributions from top-quark production (\(t\bar{t}\) and single top quarks) are estimated to be at the level of 0.1–0.2% in both channels. Similarly, diboson processes represent approximately 0.1% of the selected event samples.

Fig. 5
figure 5

Distribution of detector-level lepton pseudorapidity for a \(W^+\rightarrow e^+\nu \) and b \(W^-\rightarrow e^-\nu \). Only the statistical uncertainties of the data are shown

Fig. 6
figure 6

Distribution of detector-level lepton pseudorapidity for a \(W^+\rightarrow \mu ^+\nu \) and b \(W^-\rightarrow \mu ^-\nu \). Only the statistical uncertainties of the data are shown

Figures 5 and 6 show detector-level lepton pseudorapidity distributions for positive and negative electron and muon candidates from W boson decays. Good agreement is found between the data and the sum of signal and background contributions.

6.2 Z channels

Background contributions to the Z boson sample are expected from \(Z\rightarrow \tau ^{+}\tau ^{-}\), diboson and W boson decay processes, top-quark pair production, and the multi-jet background. The EW and top-quark contributions are evaluated from dedicated simulation samples, whereas the upper limit on the amount of the multi-jet background is estimated.

Diboson background contributes 0.08% in the muon channel and 0.14% in the electron channel. The \(Z\rightarrow \tau ^{+}\tau ^{-}\) background is found to be at the level of 0.07% in both decay channels. The top-quark background is at the level of 0.06% in the electron channel and 0.08% in the muon channel. The W boson background is found to be below 0.01% in both channels.

The contribution of the multi-jet background in the muon channel is estimated from samples that simulate \(b\bar{b}\) and \(c\bar{c}\) production. The study yields an estimate at the level of \(<0.01\%\). A previous ATLAS measurement at \(\sqrt{s}=7\) TeV [4] estimated the multi-jet contribution at the level of 0.02–0.15% for the electron channel and 0.09% for the muon channel. As it is expected that this contribution increases with pile-up and since that measurement was done with higher pile-up than the current analysis, the multi-jet background is considered to be negligible in this analysis.

Fig. 7
figure 7

Detector-level lepton-pair rapidity distributions in the a electron and b muon channels. Background contributions are negligible using a linear scale. Only the statistical uncertainties of the data are shown

Figure 7 shows detector-level dilepton rapidity distributions for electron and muon candidates from Z boson decays. Good agreement is found between the data and the sum of signal and background contributions.

Table 1 summarises background contributions to the \(W^+\), \(W^-\) and Z boson candidate samples.

Table 1 Background contributions as a percentage of the total for the \(W^+\), \(W^-\) and Z candidate samples in the electron (muon) channels

7 Measurement procedure

The integrated and differential W and Z boson production cross sections are measured within a fiducial phase space defined as follows:

  • for W production : \(p_{\mathrm {T}}^\ell >25\) GeV, \(p_{\mathrm {T}}^\nu >25\) GeV, \(|\eta _{\ell }|<2.5\), \(m_{\mathrm {T}}>40\) GeV.

  • for Z production : \(p_{\mathrm {T}}^\ell >20\) GeV, \(|\eta _{\ell }|<2.5\), \(66<m_{\ell \ell }<116\) GeV.

Integrated fiducial cross sections in the electron and muon channels are calculated using:

$$\begin{aligned} \sigma ^\mathrm {fid}_{W^\pm \rightarrow \ell ^\pm \nu [Z\rightarrow \ell ^{+}\ell ^{-}]} = \frac{N_{W[Z]} - B_{W[Z]}}{{C_{W[Z]}}\cdot L_\mathrm {int}}, \end{aligned}$$
(3)

where \(N_{W[Z]}\) and \(B_{W[Z]}\) are the number of selected events in data and the expected number of background events, respectively. The integrated luminosity of the sample is \(L_\mathrm {int}=25.0\pm 0.5\,\hbox {pb}^{-1}\), determined with the method described in Ref. [40]. A correction for the event detection efficiency is applied with the factor \(C_{W[Z]}\) , which is obtained from the signal simulation described in Sect. 3 as:

$$\begin{aligned} {C_{W[Z]}}= \frac{N^\mathrm {MC, sel}_{W[Z]}}{N^\mathrm {MC, fid}_{W[Z]}}. \end{aligned}$$

Here, \(N^\mathrm {MC, sel}_{W[Z]}\) is the number of events which pass the signal selection at the detector level, corrected for the observed differences between data and simulation such as in reconstruction, identification, isolation, and trigger efficiencies. The denominator \(N^\mathrm {MC, fid}_{W[Z]}\) is computed applying the fiducial requirements to the generator-level leptons originating from W and Z boson decays. The measurement is corrected for QED final-state radiation effects by applying these requirements to the lepton momenta before photon radiation. The \(C_{W[Z]}\) factors also account for the difference in acceptance between detector-level requirements on lepton \(|\eta |\) and the fiducial selection of \(|\eta _{\ell }|<2.5\).

The procedure described above is extended to the measurement of differential cross sections as a function of the decay lepton pseudorapidity in W boson production, and as a function of the lepton-pair rapidity in Z boson production. The dependence of cross sections on these kinematic variables is particularly sensitive to the choice of PDFs. For the measurement of differential cross sections, the formula given in Eq. (3) is adjusted so that the cross sections are divided by the width of the corresponding interval in absolute pseudorapidity or rapidity. For W production, following Ref. [4], the lepton \(|\eta |\) boundaries are defined as:

  • 0 – 0.21 – 0.42 – 0.63 – 0.84 – 1.05 – 1.37 – 1.52 – 1.74 – 1.95 – 2.18 – 2.50;

for Z boson production, the lepton-pair \(|y_{\ell \ell }|\) boundaries are defined as:

  • 0 – 0.5 – 1.0 – 1.5 – 2.0 – 2.5.

For the measurement of these cross sections, the \(C_{W[Z]}\) factors are computed separately for each lepton \(|\eta |\) or \(|y_{\ell \ell }|\) interval by applying the corresponding requirements on the reconstructed lepton kinematics in the numerator, and on the generator-level kinematics in the denominator. Migrations between rapidity intervals are negligible due to the very good angular resolution with which charged-particle tracks associated with leptons are reconstructed, and the good lepton momentum and energy resolutions. The \(C_{W[Z]}\) factors for the measurements of integrated and differential cross sections are summarised in Table 2.

The uncertainty associated with the \(C_{W[Z]}\) correction is dominated by experimental systematic uncertainties, described in Sect. 8. For the differential \(C_W\) factors, the relative size of statistical and systematic uncertainties added in quadrature varies in the range 1.1–2.5% (1.7–3%), while the uncertainties in differential \(C_Z\) factors are in the range 1.6–3.5% (0.9–1.2%) in the electron (muon) channel.

Uncertainties in \(C_{W[Z]}\) of theoretical origin comprise uncertainties induced by the PDFs, by the description of the W and Z boson transverse momentum distributions, by the implementation of the NLO QCD matrix element and its matching to the parton shower, and by the modelling of the parton shower, hadronisation and underlying event. These uncertainties are discussed in Ref. [4], where they are evaluated to be smaller than 0.2% and thus are negligible at the present level of precision. The size of acceptance corrections included in the integrated correction factors is 7% (3%) for the W boson measurements and 14% (5%) for the Z boson measurements in the electron (muon) channel. In the case of differential W boson measurements, only the \(C_W\) factor in the interval \(2.18< |\eta _{\ell }| <2.5\) includes an acceptance correction of 9% for \(W^\pm \rightarrow e^\pm \nu \) processes and 40% for \(W^\pm \rightarrow \mu ^\pm \nu \) processes. On the other hand, all differential \(C_Z\) factors include an acceptance correction which varies from 6% to 28% for the \(Z\rightarrow e^{+}e^{-}\) channel and up to 53% for the \(Z\rightarrow \mu ^{+}\mu ^{-}\) channel.

Table 2 Correction factors \(C_{W[Z]}\) used to calculate integrated and differential W and Z boson production cross sections. The integrated \(C_{W[Z]}\) factors are shown with the sum in quadrature of statistical and systematic uncertainties. For the differential \(C_{W[Z]}\) factors, the spread of values across lepton \(|\eta |\) or \(|y_{\ell \ell }|\) intervals is shown, while their uncertainties are described in the text

8 Measurement uncertainties

8.1 Lepton calibration and efficiency corrections

Uncertainties in the determination of lepton trigger, reconstruction, identification and isolation efficiency scale factors affect the measurements through the correction factors \(C_{W[Z]}\).

The uncertainties of the electron efficiency measurements are divided into contributions correlated across electron \(\eta \) and \(p_{\text {T}}\) intervals and uncorrelated ones, and are propagated to the cross-section measurements accordingly. For the \(W^\pm \rightarrow e^\pm \nu \) channels the efficiency determination contributes a systematic uncertainty of 0.8% to the fiducial cross-section measurements, while for the \(Z\rightarrow e^{+}e^{-}\) channel this contribution is 1.3%. Systematic effects related to the electron \(p_{\text {T}}\) scale and resolution are subdominant, yielding an uncertainty at the level of 0.3% for the \(W^\pm \rightarrow e^\pm \nu \) channels and less than 0.2% for the \(Z\rightarrow e^{+}e^{-}\) channel. Uncertainties in the modelling of the electron charge identification are at the level of 0.1%, and neglected for the cross section measurements. Their impact on the asymmetry measurements is however sizeable and included in the final results.

In the muon channels, the statistical components of the scale factor uncertainties are propagated to the measurements via MC pseudo-experiments, while systematic components are propagated as a single variation fully correlated across all muon \(|\eta |\) intervals. The single largest contribution to the systematic uncertainty of fiducial cross-section measurements in the \(W^\pm \rightarrow \mu ^\pm \nu \) channels is 1.4% and comes from the determination of the muon trigger efficiency. For measurements in the \(Z\rightarrow \mu ^{+}\mu ^{-}\) channel the largest systematic uncertainty is contributed by the muon isolation efficiency measurement and amounts to 0.7%. Uncertainties coming from the muon \(p_{\text {T}}\) scale and resolution are below 0.2% for both \(W^\pm \rightarrow \mu ^\pm \nu \) channels and the \(Z\rightarrow \mu ^{+}\mu ^{-}\) channel.

8.2 Hadronic recoil corrections

The uncertainty assigned to the hadronic recoil calibration is conservatively defined from the full size of the corrections, which are derived using events with \(Z\) boson production. In these events, the impact of the correction on the \(u_{\perp }\) and \(u_{\parallel }+p_{\text {T}} ^Z\) distributions varies between a few percent and \({\sim }20\%\) in the range \([-15, +15]\) GeV, which dominates the reported cross-section measurements. After applying this correction to events with \(W^{+}\) and \(W^{-}\) production, the resulting uncertainties on the cross-section measurements are at the level of 0.5% for both the muon and electron channels.

8.3 Background evaluation

Uncertainties in the evaluation of EW and top-quark backgrounds in the \(W^\pm \rightarrow e^\pm \nu \) and \(W^\pm \rightarrow \mu ^\pm \nu \) channels are estimated by varying the respective normalisation cross sections. For single-boson production, the size of the cross-section variations is obtained from higher-order QCD calculations, while for diboson and top-quark processes the uncertainty in the cross sections is conservatively taken as 10%. The resulting uncertainties in the measurements in both the \(W^\pm \rightarrow e^\pm \nu \) and \(W^\pm \rightarrow \mu ^\pm \nu \) channels are below 0.2%. Uncertainties related to the multi-jet background evaluation arise from the statistical precision of the multi-jet templates and uncertainty in the normalisations of the subtracted EW and top-quark contamination. These contributions are propagated through linear extrapolations over the isolation variables to the signal region. The related uncertainties in the measurements are evaluated to be 0.7–0.8% in the \(W^\pm \rightarrow e^\pm \nu \) channels and not more than 0.2% in the \(W^\pm \rightarrow \mu ^\pm \nu \) channels.

In both the \(Z\rightarrow \mu ^{+}\mu ^{-}\) and \(Z\rightarrow e^{+}e^{-}\) channels, the uncertainty associated with the background subtraction is negligible, since all individual background contributions are below 0.2% of the selected data sample.

8.4 Luminosity calibration

Luminosity measurements in ATLAS are calibrated using dedicated van der Meer scans [40]. The analysis of data from the scan performed in \(pp\) collisions at \(\sqrt{s}=5.02\) TeV, which uses the LUCID-2 detector for the baseline luminosity measurements [41], yields a relative systematic uncertainty of 1.9% in the measured luminosity. The largest sources of uncertainty are systematic effects related to the van der Meer scan procedure and the long-term stability of the luminosity calibration

9 Results

9.1 Channel combination

Results of measurements in the electron and muon channels are summarised in Table 3 for \(W^+\) boson production, Table 4 for \(W^-\) boson production and Table 5 for Z boson production. In these tables, the statistical uncertainty is defined from the variance of the background-subtracted number of observed events, and the systematic uncertainty includes all uncertainty components described above, except for the luminosity uncertainty, which is given separately. The systematic uncertainties coming from lepton efficiency corrections are measured as a function of lepton \({\eta }\) and \(p_{\text {T}}\), and include a significant statistical component due to the number of \(Z\) events used to derive the corrections. This statistical component is substantially reduced for the integrated cross sections compared to the differential ones.

The data tables provided in this paper contain compact summaries of the measurement uncertainties. A complete breakdown of systematic uncertainties and their correlated components is provided in HEPData [42].

Table 3 Measured fiducial \(W^+\rightarrow \ell ^+\nu \) differential and integrated cross sections for electron and muon channels
Table 4 Measured fiducial \(W^-\rightarrow \ell ^-\nu \) differential and integrated cross sections for electron and muon channels
Table 5 Measured fiducial \(Z\rightarrow \ell ^{+}\ell ^{-}\) differential and integrated cross sections for electron and muon channels

The electron and muon channel measurements are combined using the Best Linear Unbiased Estimate (BLUE) method [43], accounting for the correlations of the systematic uncertainties across the channels and measurement bins. The \(|\eta _\ell |\) and \(|y_{\ell \ell }|\) distributions for the electron channel, muon channel and combined results are shown in Figs. 8 and 9 for W and Z bosons, respectively, and the results are listed in Tables 6, 7 and 8. In the interval \(1.37<|\eta _\ell |<1.52\), only the muon channel measurements for W boson production are used. The combination yields \(\chi ^2/\)d.o.f\(=19.3/10\) for the \(W^+\) boson results, \(\chi ^2/\)d.o.f\(=15.1/10\) for the \(W^-\) boson results, and \(\chi ^2/\)d.o.f\(=3.0/5\) for the Z boson results. A simultaneous combination of all measurements, accounting for the correlation of the experimental systematic uncertainties between the W and Z measurement results for a given lepton flavour, gives \(\chi ^2/\)d.o.f \(=37.5/25\), corresponding to a probability of 5.2%. In view of this remaining discrepancy and of the general trend of the muon channel cross sections to be higher than the electron channel ones, the systematic uncertainties in the efficiency corrections are scaled such that \(\chi ^2/\)d.o.f=1; the correction uncertainties are scaled by a common factor, preserving the uncertainty correlations as a function of lepton \(p_{\text {T}}\) and \(\eta \) for this source. Tables 6, 7 and 8 include this scaling. The measured ratio of fiducial \(W^+\) and \(W^-\) production cross sections, as well as ratios of fiducial \(W^{\pm }\) and \(Z\) production cross sections, are summarised in Table 9.

Fig. 8
figure 8

Differential a \(W^+\) and b \(W^-\) boson production cross sections as a function of absolute decay lepton pseudorapidity, for the electron, muon and combined results. Statistical and systematic errors are shown as corresponding bars and shaded bands. The luminosity uncertainty is not included. The lower panel shows the ratio of channels to the combined differential cross section in each bin. In the lower panel, error bars represent statistical uncertainties in the ratio, while the shaded band represents systematic uncertainties in the combined differential cross sections

Fig. 9
figure 9

Differential Z boson production cross section as a function of absolute lepton-pair rapidity, for the electron, muon and combined results. Statistical and systematic errors are shown as corresponding bars and shaded bands. The luminosity uncertainty is not included. The lower panel shows the ratio of channels to the combined differential cross section in each bin. In the lower panel, error bars represent statistical uncertainties in the ratio, while the shaded band represents systematic uncertainties in the combined differential cross sections

Table 6 Combined fiducial \(W^+\rightarrow \ell ^+\nu \) differential and integrated cross sections
Table 7 Combined fiducial \(W^-\rightarrow \ell ^-\nu \) differential and integrated cross sections
Table 8 Combined fiducial \(Z\rightarrow \ell ^{+}\ell ^{-}\) differential and integrated cross sections
Table 9 Ratios of integrated W and Z production cross sections

The measurements of differential \(W^+\) and \(W^-\) production cross sections allow the extraction of the W boson charge asymmetry, as a function of the absolute pseudorapidity of the decay lepton:

$$\begin{aligned} A_\ell (|\eta _\ell |) = \frac{\text {d}\sigma _{W^+} / \text {d}|\eta _\ell | - \text {d}\sigma _{W^-} / \text {d}|\eta _\ell |}{\text {d}\sigma _{W^+} / \text {d}|\eta _\ell | + \text {d}\sigma _{W^-} / \text {d}|\eta _\ell |}. \end{aligned}$$

Uncertainties in \(A_\ell \) are calculated considering all sources of correlated and uncorrelated systematic uncertainties in the differential cross sections. The resulting dependence of \(A_\ell \) on \(|\eta _\ell |\) measured in the electron and muon channels is presented in Fig. 10 together with the combined values, while the combined results are summarised with the corresponding uncertainties in Table 10. Good agreement between the two channels is found.

Table 10 Charge asymmetry for W bosons as a function of absolute pseudorapidity of the decay lepton
Fig. 10
figure 10

Charge asymmetry for W bosons as a function of absolute decay lepton pseudorapidity, for the electron, muon and combined results. Statistical and systematic errors are shown as corresponding bars and shaded bands (not visible for most points). The lower panel shows the ratio of channels to the combined charge asymmetry in each bin. In the lower panel, error bars represent statistical uncertainties in the ratio, while the shaded band represents systematic uncertainties in the combined charge asymmetry

9.2 Comparison with theoretical predictions

The measured cross sections are compared with theoretical predictions obtained using a modified version of DYNNLO 1.5 [2, 3] optimised for speed of computation. The calculation is performed at \(O(\alpha _{\text {S}} ^2)\) in QCD and at leading order in the EW theory, with parameters set according to the \(G_\mu \) scheme [29]. The input parameters (the Fermi constant \(G_\text {F}\), the masses and widths of \(W\) and \(Z\) bosons, and the CKM matrix elements) are taken from Ref. [44]. The DYNNLO predictions are calculated using the NNLO PDF sets from CT14nnlo [45], NNPDF3.1 [46], MMHT14nnlo68cl [47], HERAPDF2.0 [48] and ABMP16 [49]. All considered PDF sets except HERAPDF2.0 are evaluated from global fits which include to varying extents the LHC measurements of W / Z boson, Drell–Yan, top-quark and inclusive jet production. The renormalisation and factorisation scales, respectively denoted as \(\mu _{\textsc {r}} \) and \(\mu _{\textsc {f}} \), are set equal to the decay lepton-pair invariant mass, \(m_{\ell \nu }\) or \(m_{\ell \ell }\).

Uncertainties in these predictions are derived as follows. PDF uncertainties are evaluated from the variations of the NNLO PDFs (the PDF uncertainties of CT14nnlo are rescaled from 90% confidence level to 68% confidence level). Scale uncertainties are defined by the envelope of the variations obtained by changing \(\mu _{\textsc {r}} \) and \(\mu _{\textsc {f}} \) by a factor of two with respect to their nominal values and imposing \(0.5\le \mu _{\textsc {r}}/\mu _{\textsc {f}} \le 2\). The uncertainty induced by the strong coupling constant is estimated by varying \(\alpha _{\text {S}} \) by \(\pm 0.001\) around the central value of \(\alpha _{\text {S}} (m_Z) = 0.118\), following the prescription of Ref. [45]; the effect of these variations is estimated by comparing the CT14nnlo_as_0117 and CT14nnlo_as_0119 PDF sets to CT14nnlo. Finally, intrinsic limitations of the NNLO calculations for fiducial cross-section predictions lead to systematic differences between results from different programs, as explained in Ref. [50]. Therefore, an additional uncertainty of 0.7%, estimated from a comparison of predictions calculated with Fewz 3.1 and DYNNLO, is assigned. Theory uncertainties are dominated by our knowledge of the proton PDFs.

The uncertainty of the LHC proton beam energy is estimated to be 0.1% [51] and induces typically an uncertainty of 0.1% in the cross-section predictions, which is negligible compared to other theoretical uncertainties discussed above.

Differential cross sections for W and Z boson production are shown in Figs. 11 and 12 as a function of \(|\eta _{\ell }|\) and \(|y_{\ell \ell }|\), respectively. The cross sections are compared for the combined measurement and theoretical predictions calculated with the CT14nnlo, NNPDF3.1, MMHT14nnlo68cl, HERAPDF2.0 and ABMP16 PDF sets, with uncertainties assigned as described above. In some regions of phase space, a comparison of the differential cross sections shows systematic deviations of the predictions obtained with recent PDF sets from the measured values. These deviations are largest for \(W^{+}\) boson production and at central rapidity for Z boson production.

The measured lepton charge asymmetry for W bosons shown in Fig. 13 is compared with predictions calculated with the PDF sets mentioned previously. In most of the \(|\eta _\ell |\) range considered, the predictions from all PDF sets tend to underestimate the measured asymmetry by a few percent.

Fig. 11
figure 11

Differential cross sections for a \(W^+\) and b \(W^-\) boson production as a function of absolute decay lepton pseudorapidity compared with theoretical predictions. Statistical and systematic errors are shown as corresponding bars and shaded bands on the data points. The luminosity uncertainty is not included. Only the dominant uncertainty (PDF) is displayed for the theory. The lower panel shows the ratio of predictions to the measured differential cross section in each bin, and the shaded band shows the sum in quadrature of statistical and systematic uncertainties of the data

Fig. 12
figure 12

Differential cross section for Z boson production as a function of absolute lepton-pair rapidity compared with theoretical predictions. Statistical and systematic errors are shown as corresponding bars and shaded bands on the data points. The luminosity uncertainty is not included. Only the dominant uncertainty (PDF) is displayed for the theory. The lower panel shows the ratio of predictions to the measured differential cross section in each bin, and the shaded band shows the sum in quadrature of statistical and systematic uncertainties of the data

Fig. 13
figure 13

Charge asymmetry for W bosons as a function of absolute decay lepton pseudorapidity compared with theoretical predictions. Statistical and systematic errors are shown as corresponding bars and shaded bands on the data points. Only the dominant uncertainty (PDF) is displayed for the theory. The lower panel shows the ratio of predictions to the measured differential cross section in each bin, and the shaded band shows the sum in quadrature of statistical and systematic uncertainties of the data

10 Summary

Fiducial cross sections are reported for inclusive \(W^+\), \(W^-\) and Z boson production in \(pp\) collisions at the centre-of-mass energy \(\sqrt{s}=5.02\) TeV. The measurement is based on data taken by the ATLAS detector at the LHC corresponding to an integrated luminosity of \(25.0\;\mathrm {pb}^{-1}\). Cross sections are reported in the electron and muon decay channels, integrated over the fiducial regions and differentially. The fiducial region is defined using lepton kinematics and detector acceptance. The differential cross sections for \(W^\pm \rightarrow \ell ^\pm \nu \) boson production are measured as a function of absolute lepton pseudorapidity while for \(Z\rightarrow \ell ^{+}\ell ^{-}\) bosons they are reported as a function of absolute dilepton rapidity in the mass window \(66<m_{\ell \ell }<116\) GeV. For \(W^{\pm }\) bosons the decay lepton charge asymmetry as a function of absolute lepton pseudorapidity is also measured.

The electron and muon channel results are found to agree within the measurement precision, and are therefore combined considering all sources of correlated and uncorrelated uncertainties. The combined fiducial \(W^+\), \(W^-\), and Z cross sections are measured with a precision of 1.2–1.7%, excluding the luminosity uncertainty. Both the integrated and differential cross sections are compared with next-to-next-to-leading-order QCD calculations using various PDF sets. A comparison of the differential cross sections shows 1–2\(\sigma \) deviations from the predictions obtained with many of the recent PDF sets.

These results provide the first measurement of \(W^\pm \) and Z boson production cross sections at the centre-of-mass energy \(\sqrt{s}=5.02\) TeV and complement previous measurements at \(\sqrt{s}=7\), 8 and 13 TeV. They constitute a reference for measurements of \(W^\pm \) and Z boson production in heavy-ion collisions collected at \(\sqrt{s_{\mathrm {NN}}}=5.02\) TeV by the LHC experiments.