1 Introduction

The CERN Large Hadron Collider (LHC) has delivered a large sample of \({\mathrm {p}\mathrm {p}}\) collisions containing events with a vector boson (V) accompanied by one or more jets (V+jets). Some of these events involve the production of a vector boson in association with jets originating from heavy flavour (\(\text {HF}\)) quarks and can be used to study specific predictions of the standard model (SM).

These V+jets events constitute an important background to many ongoing searches for new physics beyond the SM. A proper characterization of these processes and validation of their theoretical description is important to provide a reliable estimate of their specific backgrounds to the various searches. For example, third-generation scalar quarks (squarks) that are predicted by supersymmetric theories to decay via charm quarks have been searched for in final states with a charm quark jet (\(\mathrm{c} \text { jet}\)) and a large transverse momentum imbalance [1,2,3]. A dominant background to this process is the associated production of a \(\mathrm{c} \text { jet}\) and a \(\mathrm{Z} \) boson that decays invisibly into neutrinos. An improved description of this background can be obtained from a measurement of the same process with the \(\mathrm{Z} \) boson decaying into charged leptons.

Similarly, the associated production of a \(\mathrm{Z} \) boson and \(\text {HF}\) jets is a significant background to the production of the Higgs boson in association with a \(\mathrm{Z} \) boson (\(\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{H} +X;\ \mathrm{H} \rightarrow \mathrm{q} \overline{\mathrm{q}} \)). Experimental studies of this process in the context of the SM focus on an analysis with \(\mathrm{b} \) quarks in the final state [4,5,6,7], although some models beyond the SM also predict enhanced decay rates in the \(\mathrm{c} \overline{\mathrm{c}} \) final state [8]. In either case, it is important to understand the relative contribution of the different flavours to the \(\mathrm{Z} +\text {HF}\) jets background to minimize the associated systematic uncertainties.

The possibility of observing evidence of an intrinsic charm (IC) quark component in the nucleon has recently received renewed interest [9]. The associated production of neutral vector bosons and \(\mathrm{c} \text { jets}\) (\(\mathrm {V}+\mathrm{c} \)) has been identified [10,11,12,13] as a suitable process to investigate this physics topic. One of the main effects of an IC component would be an enhancement of \(\mathrm{Z} +\mathrm{c} \) production, mainly at large values of the transverse momentum of the \(\mathrm{Z} \) boson and of the \(\mathrm{c} \text { jet}\).

Production of a \(\mathrm{Z} \) boson and a \(\mathrm{c} \text { jet}\) has been studied in high-energy hadron collisions by the D0 [14] and CDF [15] experiments at the Tevatron \(\mathrm {p}\overline{\mathrm{p}} \) collider. More recently, the LHCb Collaboration has measured the associated production of a \(\mathrm{Z} \) boson and a \(\mathrm {D}\) meson in the forward region in \(\mathrm {p}\mathrm {p}\) collisions at \(\sqrt{s} =7 \,\text {TeV} \) [16].

In this paper we present a measurement of the production cross section at \(\sqrt{s} =8\,\text {TeV} \) of a \(\mathrm{Z} \) boson and at least one jet from a \(\mathrm{c} \) quark. In addition, the relative production of a \(\mathrm{Z} \) boson and a jet from heavy quarks of different flavours (\(\mathrm{c} \) or \(\mathrm{b} \)) is quantified by the ratio of their production cross sections. The associated production of a \(\mathrm{Z} \) boson and at least one or two \(\mathrm{b} \text { jets}\) using an inclusive \(\mathrm{b} \) tagging technique to identify \(\mathrm{Z} +\mathrm{b} \) events has been studied with the same dataset and the results are reported in Ref. [17]. To reduce the uncertainties in the ratio, the production cross section of a \(\mathrm{Z} \) boson and a jet from a \(\mathrm{b} \) quark is remeasured in this analysis using exactly the same methodology as for the \(\mathrm{Z} +\mathrm{c} \) cross section. The remeasured \(\mathrm{Z} +\mathrm{b} \) cross section agrees with the published value within one standard deviation and is used in the ratio measurement.

The \(\mathrm{Z} \) boson is identified through its decay into a pair of electrons or muons. Jets with \(\text {HF}\) quark content are identified through (1) the semileptonic decay of \(\mathrm{c} \) or \(\mathrm{b} \) flavoured hadrons with a muon in the final state, and (2) using exclusive hadronic decays of charm hadrons. The cross section and cross section ratio are measured at the level of stable particles, which are defined prior to the emission of any electroweak radiation. To minimize acceptance corrections, the measurements are restricted to a phase space that is close to the experimental fiducial volume with optimized sensitivity for the investigated processes: two leptons with transverse momentum \(p_{\mathrm {T}} ^{\ell }>20\,\text {GeV} \), pseudorapidity \(|\eta ^{\ell }| < 2.1\), and dilepton invariant mass consistent with the mass of the \(\mathrm{Z} \) boson, \(71< m_{\ell \ell } < 111\,\text {GeV} \), together with a \(\mathrm{c} \) (\(\mathrm{b} \)) jet with \(p_{\mathrm {T}} ^{\,\text {jet}} > 25\,\text {GeV} \), \(|\eta ^{\,\text {jet}}| < 2.5\). The jet should be separated from the leptons of the \(\mathrm{Z} \) boson candidate by a distance \(\varDelta R ({\text {jet}},\ell ) = \sqrt{\smash [b]{(\varDelta \eta )^2 +(\varDelta \phi )^2}} > 0.5\). The cross section \(\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{c} +X)\mathcal {B}(\mathrm{Z} \rightarrow \ell ^+\ell ^-)\) (abbreviated as \(\sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B}\)) and the cross section ratio \(\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{c} +X)/\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{b} +X)\) (abbreviated as \(\sigma (\mathrm{Z} +\mathrm{c})/\sigma (\mathrm{Z} +\mathrm{b})\)) are determined both inclusively and differentially as a function of the transverse momentum of the \(\mathrm{Z} \) boson, \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\), and the \(p_{\mathrm {T}} \) of the jet with heavy flavour content, \(p_{\mathrm {T}} ^{\,\text {jet}}\).

The paper is structured as follows. The CMS detector is briefly described in Sect. 2, and the data and simulated samples used are presented in Sect. 3. Section 4 deals with the selection of the \(\mathrm{Z} +\text {HF}\) jets signal sample, the auxiliary samples of events from the associated production of \(\mathrm {W}+\mathrm{c} \), and top quark-antiquark (\({\mathrm{t}\overline{\mathrm{t}}} \)) production. The determination of the \(\mathrm{c} \) tagging efficiency is the subject of Sect. 5. The analysis strategy devised to separate the two contributions, \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \), in the sample of \(\mathrm{Z} +\text {HF}\) jets is detailed in Sect. 6. Section 7 reviews the most important sources of systematic uncertainties and their impact on the measurements. Finally, the measurements of the inclusive \(\mathrm{Z} +\mathrm{c} \) cross section and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are presented in Sect. 8, and the differential measurements are reported in Sect. 9. The main results of the paper are summarized in Sect. 10.

2 The CMS detector 

The central feature of the CMS apparatus is a superconducting solenoid of 6\(\,\text {m}\) internal diameter, providing a magnetic field of 3.8\(\,\text {T}\). Within the solenoid volume are a silicon pixel and strip tracker, a lead tungstate crystal electromagnetic calorimeter (ECAL), and a brass and scintillator hadron calorimeter, each composed of a barrel and two endcap sections. Extensive forward calorimetry complements the coverage provided by the barrel and endcap detectors. The silicon tracker measures charged particles within the pseudorapidity range \(|\eta |< 2.5\). It consists of 1440 silicon pixel and 15 148 silicon strip detector modules. For nonisolated particles of \(1< p_{\mathrm {T}} < 10\,\text {GeV} \) and \(|\eta | < 1.4\), the track resolutions are typically 1.5% in \(p_{\mathrm {T}} \) and 25–90 (45–150)\(\,\upmu \text {m}\) in the transverse (longitudinal) impact parameter [18]. The electron momentum is estimated by combining the energy measurement in the ECAL with the momentum measurement in the tracker. The momentum resolution for electrons with \(p_{\mathrm {T}} \approx 45\,\text {GeV} \) from \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) decays ranges from 1.7% for nonshowering electrons in the barrel region to 4.5% for showering electrons in the endcaps [19]. Muons are measured in the pseudorapidity range \( |\eta |< 2.4\), using three technologies: drift tubes, cathode strip chambers, and resistive plate chambers. Matching muons to tracks measured in the silicon tracker results in a relative transverse momentum resolution for muons with \(20< p_{\mathrm {T}} < 100\,\text {GeV} \) of 1.3–2.0% in the barrel and better than 6% in the endcaps. The \(p_{\mathrm {T}}\) resolution in the barrel is better than 10% for muons with \(p_{\mathrm {T}}\) up to 1\(\,\text {TeV}\)  [20]. For nonisolated muons with \(1< p_{\mathrm {T}} < 25 \,\text {GeV} \), the relative transverse momentum resolution is 1.2–1.7% in the barrel and 2.5–4.0% in the endcaps [18]. The first level of the CMS trigger system [21], composed of custom hardware processors, uses information from the calorimeters and muon detectors to select events of interest in a fixed time interval of less than 4\(\,\upmu \text {s}\). The high-level trigger processor farm further decreases the event rate from around 100\(\,\text {kHz}\) to less than 1\(\,\text {kHz}\), before data storage. A more detailed description of the CMS detector, together with a definition of the coordinate system used and the basic kinematic variables, can be found in Ref. [22].

3 Data and simulated samples 

The data were collected by the CMS experiment during 2012 at the \({\mathrm {p}\mathrm {p}}\) centre-of-mass energy of 8\(\,\text {TeV}\) and correspond to an integrated luminosity of \(\mathcal {L}= 19.7 \pm 0.5{\,\text {fb}^{-1}} \).

Samples of simulated events are produced with Monte Carlo (MC) event generators, both for the signal process and for the main backgrounds. A sample of signal \(\mathrm{Z} \) boson events is generated with MadGraph v5.1.3.30 [23], interfaced with pythia v6.4.26 [24] for parton showering and hadronization using the MLM [25, 26] matching scheme. The MadGraph generator produces parton-level events with a vector boson and up to four partons at leading order (LO) on the basis of a matrix-element calculation. The generation uses the parton distribution functions (PDF) set CTEQ6L [27]. The matching scale between jets from matrix element calculations and those produced via parton showers is 10 GeV, and the factorization and renormalization scales are set to \(q^2 = M^2_{\mathrm{Z}}+{(p_{\mathrm {T}} ^{\, \mathrm {Z}})}{}^2\).

Other physics processes produce events with the same final state topology as the signal. The main background is the production of \({\mathrm{t}\overline{\mathrm{t}}} \) events. Smaller contributions are expected from the direct production of a pair of vector bosons: \(\mathrm {W}\mathrm {W}\), \(\mathrm {W}\mathrm{Z} \), and \(\mathrm{Z} \mathrm{Z} \).

A sample of \({\mathrm{t}\overline{\mathrm{t}}} \) events is generated with powheg v1.0 [28,29,30,31], interfaced with pythia 6 and using the CT10 [32] PDF set. The \(\mathrm {W}\mathrm {W}\), \(\mathrm {W}\mathrm{Z} \), and \(\mathrm{Z} \mathrm{Z} \) processes are modelled with samples of events generated with pythia 6 and the CTEQ6L1 PDF set.

A sample of \(\mathrm {W}\) boson events is generated with MadGraph interfaced with pythia 6. It is used in the determination of the \(\mathrm{c} \) tagging efficiency and to validate the modelling of relevant distributions with a data sample of \(\mathrm {W}+\text {jets}\) events. The matching scale between jets from matrix element calculations and those produced via parton showers is 10 GeV, and the factorization and renormalization scales are set to \(q^2 = M^2_{\mathrm {W}}+{(p_{\mathrm {T}} ^{\mathrm {W}})}{}^2\). For all event generation the pythia 6 parameters for the underlying event modelling are set to the Z2\(^{*}\) tune [33].

Generated events are processed through a full Geant4-based [34] CMS detector simulation and trigger emulation. Simulated events are then reconstructed using the same algorithms as used to reconstruct collision data and are normalized to the integrated luminosity of the data sample using their respective cross sections. For electroweak processes the cross sections are evaluated to next-to-next-to-leading order (NNLO) with fewz 3.1 [35], using the MSTW2008NNLO [36] PDF set. The cross sections for diboson production are evaluated at next-to-leading order (NLO) with mcfm 6.6 [37] and using the MSTW2008NLO [36] PDF set. The \({\mathrm{t}\overline{\mathrm{t}}} \) cross section is taken at NNLO from Ref. [38]. The simulated samples incorporate additional \({\mathrm {p}\mathrm {p}}\) interactions in the same or neighbouring bunch crossings (pileup). Simulated events are weighted so that the pileup distribution matches the measured one, with an average of about 21 pileup interactions per bunch crossing.

Simulated samples are corrected for differences between data and MC descriptions of lepton trigger, reconstruction, and selection efficiencies (\(\epsilon _{\ell }\)). Lepton efficiencies are evaluated with samples of dilepton events in the \(\mathrm{Z} \) mass peak with the “tag-and-probe” method [39], and correction factors \(\epsilon _{\ell }^{\text {data}}/\epsilon _{\ell }^{{\mathrm {MC}}}\), binned in terms of \(p_{\mathrm {T}} \) and \(\eta \) of the leptons, are computed. These correction factors, based on the kinematics of each lepton in an event, are multiplied and used as an event weight.

The simulated signal sample includes \(\mathrm{Z} \) boson events accompanied by jets originating from quarks of all flavours (\(\mathrm{b} \), \(\mathrm{c} \), and light). Events are classified as \(\mathrm{Z} +\mathrm{b} \), \(\mathrm{Z} +\mathrm{c} \), or \(\mathrm{Z} +\text {light flavour}\) according to the flavour of the generator-level jets built from all showered particles after fragmentation and hadronization (all stable particles except neutrinos) and clustered with the same algorithm that is used to reconstruct data jets. A generator-level jet is defined to be \(\mathrm{b} \) flavoured if \(p_{\mathrm {T}} ^{\,\text {gen jet}} > 15\,\text {GeV} \) and there is a \(\mathrm{b} \) hadron among the particles generated in the event within a cone of radius \(\varDelta R = 0.5\) around the jet axis. Similarly, a generator-level jet is considered to be \(\mathrm{c} \) flavoured if \(p_{\mathrm {T}} ^{\,\text {gen jet}} > 15\,\text {GeV} \) and there is a \(\mathrm{c} \) hadron and no \(\mathrm{b} \) hadrons within a cone of \(\varDelta R = 0.5\) around the jet axis. A \(\mathrm{Z} +\text {jets}\) event is assigned as a \(\mathrm{Z} +\mathrm{b} \) event if there is at least a generator-level jet identified as a \(\mathrm{b} \) flavoured jet regardless of the number of \(\mathrm{c} \) flavoured or light jets, \(\mathrm{Z} +\mathrm{c} \) if there is at least a \(\mathrm{c} \) flavoured jet at the generator-level and no \(\mathrm{b} \) flavoured generator-level jets, and \(\mathrm{Z} +\text {light flavour}\) otherwise.

4 Event reconstruction and selection 

Electron and muon candidates are reconstructed following standard CMS procedures [19, 20]. Jets, missing transverse energy, and related quantities are determined using the CMS particle-flow (PF) reconstruction algorithm [40], which identifies and reconstructs stable particle candidates arising from a collision with an optimized combination of the signals measured from all subdetectors.

Jets are built from PF candidates using the anti-\(k_{\mathrm {T}} \) clustering algorithm [41] with a distance parameter of \(R = 0.5\). The energy and momentum of the jets are corrected as a function of the jet \(p_{\mathrm {T}} \) and \(\eta \) to account for the nonlinear response of the calorimeters and for the presence of pileup interactions [42, 43]. Jet energy corrections are derived using samples of simulated events and further adjusted using dijet, photon+jet and \(\mathrm{Z} \)+jet events in data.

The missing transverse momentum vector \({\mathbf {p}}_{\mathrm {T}}^{\text {miss}} \) is the projection on the plane perpendicular to the beams of the negative vector sum of the momenta of all particles that are reconstructed with the PF algorithm. The missing transverse energy variable, \(E_{\mathrm {T}}^{\text {miss}} \), is defined as the magnitude of the \({\mathbf {p}}_{\mathrm {T}}^{\text {miss}} \) vector, and it is a measure of the transverse energy of particles leaving the detector undetected [44].

The primary vertex of the event, representing the hard interaction, is selected among the reconstructed vertices as the one with the highest sum of the transverse momenta squared of the tracks associated to it.

4.1 Selection of \(\mathrm{Z} +\text {HF}\) jet events 

Events with a pair of leptons are selected online by a trigger system that requires the presence of two lepton candidates of the same flavour with \(p_{\mathrm {T}} > 17\) and \(8\,\text {GeV} \) for the leading-\(p_{\mathrm {T}} \) and subleading-\(p_{\mathrm {T}} \) lepton candidates, respectively. The analysis follows the offline selections as used in the CMS \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) and \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) inclusive analyses [39] and requires the presence of two high-\(p_{\mathrm {T}} \) reconstructed leptons with opposite charges in the pseudorapidity region \(|\eta ^{\ell } | < 2.1\). The transverse momentum of the leptons has to be greater than \(20\,\text {GeV} \).

The leptons are required to be isolated. The combined isolation \(I_{\text {comb}}\) is used to quantify the additional hadronic activity around the selected leptons. It is defined as the sum of the transverse energy of neutral hadrons and photons and the transverse momentum of charged particles in a cone with \(R < 0.3\) (0.4) around the electron (muon) candidate, excluding the contribution from the lepton itself. Only charged particles originating from the primary vertex are considered in the sum to minimize the contribution from pileup interactions. The contribution of neutral particles from pileup vertices is estimated and subtracted from \(I_{\text {comb}}\). For electrons, this contribution is evaluated with the jet area method described in Ref. [45]; for muons, it is taken to be half the sum of the \(p_{\mathrm {T}} \) of all charged particles in the cone originating from pileup vertices. The factor one-half accounts for the expected ratio of charged to neutral particle energy in hadronic interactions. The electron (muon) candidate is considered to be isolated when \(I_{\text {comb}}/p_{\mathrm {T}} ^{\ell } < 0.15\) (0.20). Finally, the analysis is restricted to events with a dilepton invariant mass, \(m_{\ell \ell }\), in the range \(91\pm 20\,\text {GeV} \) in accordance with previous \(\mathrm{Z} +\text {jets}\) measurements [17, 46].

A \(\mathrm{Z} +\text {jets}\) sample is selected by requiring the presence of at least one jet with \(p_{\mathrm {T}} ^{\,\text {jet}}>25\,\text {GeV} \) and \(|\eta ^{\,\text {jet}}|<2.5\). Jets with an angular separation between the jet axis and any of the selected leptons less than \(\varDelta R ({\text {jet}},\ell ) = 0.5\) are not considered. To reduce the contribution from \({\mathrm{t}\overline{\mathrm{t}}} \) events, we require \(E_{\mathrm {T}}^{\text {miss}} \) to be smaller than \(40\,\text {GeV} \).

Hadrons with \(\mathrm{c} \) or \(\mathrm{b} \) quark content decay weakly with lifetimes of the order of \(10^{-12}\,\text {s} \) and mean decay lengths larger than 100\({\rm mu}\)\(\,\text {m}\) at the LHC energies. Secondary vertices well separated from the primary vertex can be reconstructed from the tracks of their charged decay products. We focus on the following three signatures to identify jets originating from a heavy flavour quark:

  • Semileptonic mode — A semileptonic decay of a heavy flavour hadron leading to a well-identified muon associated to a displaced secondary vertex.

  • \(\mathrm {D}^{\pm }\) mode — A displaced secondary vertex with three tracks consistent with a \(\mathrm {D}^{\pm }\rightarrow \mathrm {K}^\mp \pi ^\pm \pi ^\pm \) decay.

  • \({\mathrm {D}^{*}(2010)^{\pm }}\) mode — A displaced secondary vertex with two tracks consistent with a \({\mathrm {D}^0}\rightarrow \mathrm {K}^-\pi ^+\) (\(\overline{\mathrm{D}}^0 \rightarrow \mathrm {K}^+\pi ^-\)) decay and associated with a \({\mathrm{D}^{*+} (2010)}\rightarrow {\mathrm {D}^0}\pi ^+\) (\({\mathrm{D}^{*-} (2010)}\rightarrow \overline{\mathrm{D}}^0 \pi ^-\)) decay at the primary vertex.

Displaced secondary vertices for the first two categories are formed with either the Simple Secondary Vertex (SSV) [47] or the Inclusive Vertex Finder (IVF) [48, 49] CMS vertex reconstruction algorithms. Both algorithms follow the adaptive vertex fitter technique [50] to construct a secondary vertex, but differ in the tracks used. The SSV algorithm takes as input the tracks constituting the jet; the IVF algorithm starts from a displaced track with respect to the primary vertex (seed track) and searches for nearby tracks, in terms of their separation distance in three dimensions and their angular separation around this seed, to build the vertex. Tracks used in a secondary vertex reconstruction must have \(p_{\mathrm {T}} >1\,\text {GeV} \). Vertices reconstructed with the IVF algorithm are considered first because of the higher efficiency of the algorithm. If no IVF vertex is found, SSV vertices are searched for, thus providing additional event candidates. We employ a different technique for the third (\({\mathrm {D}^{*}(2010)^{\pm }}\) mode) category, as described below in the text. The typical mass resolution in the \(\mathrm {D}^{\pm }\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) reconstruction is \({\approx }17\,\text {MeV} \) in the decay modes analyzed here.

4.1.1 Selection in the semileptonic mode

The \(\mathrm{Z} +\mathrm{c} \) (\(\mathrm{Z} +\mathrm{b} \)) events with a semileptonic \(\mathrm{c} \) (\(\mathrm{b} \)) quark decay are selected by looking for a reconstructed muon (muon-inside-a-jet) among the constituents of any of the selected jets. This muon-inside-a-jet candidate has to satisfy the same quality criteria as those imposed on the muons from the \(\mathrm{Z} \) boson decay. The muon has to be reconstructed in the region \(|\eta ^{\mu } | < 2.4\), with \(p_{\mathrm {T}} ^{\mu }<25\,\text {GeV} \), \(p_{\mathrm {T}} ^{\mu }/p_{\mathrm {T}} ^{\,\text {jet}}<0.6\), and it should not be isolated from hadron activity. The combined isolation has to be large, \(I_{\text {comb}}/p_{\mathrm {T}} ^{\mu } >0.2\). Furthermore, the muon-inside-a-jet is required to be associated to a secondary vertex, reconstructed either with the IVF or SSV algorithm. No minimum \(p_{\mathrm {T}} \) is required for the muon beyond the general \(p_{\mathrm {T}} >1\,\text {GeV} \) requirement for the tracks used in the reconstruction of the secondary vertices. Muon reconstruction sets a natural threshold of \(p_{\mathrm {T}} \gtrapprox 3\,\text {GeV} \) in the barrel region and \(p_{\mathrm {T}} \gtrapprox 2\,\text {GeV} \) in the endcaps to ensure the muon passes the material in front of the muon detector and travels deep enough into the muon system to be reconstructed and satisfy the identification criteria [39]. The above selection results in 4145 events in the \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) channel and 5258 events in the \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) channel.

Figure 1 shows the transverse momentum distribution of the selected muon-inside-a-jet for \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) (left) and \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) (right). The data are compared with the predictions of the MC simulations, which are composed of \(\mathrm{Z} +\mathrm{b} \) events (\({\approx }65\%\)), \(\mathrm{Z} +\mathrm{c} \) events (\({\approx }25\%\)), \(\mathrm{Z} +\text {light flavour}\) (\({\lesssim }5\%\)), and other backgrounds, such as \({\mathrm{t}\overline{\mathrm{t}}} \) and diboson production (\({\approx }5\%\)).

Fig. 1
figure 1

Transverse momentum distribution of the selected muon-inside-a-jet for events with an identified muon among the jet constituents, in the dielectron (left) and dimuon (right) channels. The contributions from all processes are estimated with the simulated samples. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the statistical uncertainty in the MC simulation

4.1.2 Selection in the \({\mathrm {D}^{\pm }}\) mode

Event candidates in the \(\mathrm {D}^{\pm }\) mode are selected by looking for secondary vertices made of three tracks and with a reconstructed invariant mass consistent with the \({\mathrm {D}^{\pm }}\) mass: \(1869.5 \pm 0.4 \,\text {MeV} \) [51]. The sum of the charges of the tracks participating in the secondary vertex must be \({\pm }1\). The kaon mass is assigned to the track with opposite sign to the total charge of the three-prong vertex, and the remaining tracks are assumed to have the mass of a charged pion. This assignment is correct in more than 99% of the cases, since the fraction of double Cabibbo-suppressed decays is extremely small [51].

The distribution of the reconstructed invariant mass for \({\mathrm {D}^{\pm }}\) candidates associated with \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) (left) and \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) (right) is presented in Fig. 2. The signal and background contributions shown in the figure are estimated with the simulated samples. The charm fraction \(\mathcal {B}(\mathrm{c} \rightarrow {\mathrm {D}^{\pm }})\) in the pythia simulation (\(19.44 \pm 0.02)\%\) is lower than the value (\(22.7 \pm 0.9 \pm 0.5)\%\) obtained from a combination [52] of published measurements performed at LEP [53,54,55] and the branching fraction of the decay \({\mathrm {D}^{\pm }}\rightarrow \mathrm {K}^\mp \pi ^\pm \pi ^\pm \) (\(7.96 \pm 0.03)\%\), is also lower than the PDG value (\(9.13 \pm 0.19)\%\) [51]; predicted event rates from the MC simulation are scaled in order to match the experimental charm fractions.

Fig. 2
figure 2

The invariant mass distribution of three-prong secondary vertices for events selected in the \({\mathrm {D}^{\pm }}\) mode, in the dielectron (left) and dimuon (right) channels. The mass assigned to each of the three tracks is explained in the text. The contributions from all processes are estimated with the simulated samples. The two dashed, vertical lines indicate the mass range of the signal region. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the statistical uncertainty in the MC simulation

The signal region is defined by the constraint \(\varDelta m({\mathrm {D}^{\pm }}) \equiv |m^{\text {rec}}({\mathrm {D}^{\pm }})-1.87\,\text {GeV} |<0.05\,\text {GeV} \), where \(m^{\text {rec}}({\mathrm {D}^{\pm }})\) is the reconstructed mass of the \({\mathrm {D}^{\pm }}\) meson candidate. The mass range of the signal region is indicated in Fig. 2 as two dashed, vertical lines. The width of the signal region approximately corresponds to three times the measured mass resolution. The nonresonant background is subtracted from the event count in the signal window, and is estimated using the number of events selected in a control region away from the resonance, extending up to a window of \(0.1\,\text {GeV} \) width, \(N[0.05<\varDelta m({\mathrm {D}^{\pm }})<0.10\,\text {GeV} ]\), as also shown in Fig. 2.

The number of selected events in data after background subtraction is \(375 \pm 44\) in the \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) channel and \(490 \pm 48\) in the \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) channel. Based on the simulation, the selected sample is enriched in \(\mathrm{Z} +\mathrm{c} \) events (\({\approx }60\%\)), while the fraction of \(\mathrm{Z} +\mathrm{b} \) events is \({\approx }35\%\). The contribution from \(\mathrm{Z} +\text {light flavour}\) events is negligible, and the contribution of \({\mathrm{t}\overline{\mathrm{t}}} \) and diboson events is smaller than 5%.

4.1.3 Selection in the \({\mathrm {D}^{*}(2010)^{\pm }}\) mode

Fig. 3
figure 3

The invariant mass distribution of the three-track system composed of a two-prong secondary vertex and a primary particle for events selected in the \({\mathrm {D}^{*}(2010)^{\pm }}\) mode, in the dielectron (left) and dimuon (right) channels. The mass assigned to each of the three tracks is explained in the text. The contributions from all processes are estimated with the simulated samples. The two dashed, vertical lines mark the mass range of the signal region. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the statistical uncertainty in the MC simulation

Events with \(\mathrm{Z} +\text {jets}\) candidates in the \({\mathrm {D}^{*}(2010)^{\pm }}\) mode are selected by requiring a displaced vertex with two oppositely charged tracks among the tracks constituting the jet. These tracks are assumed to be the decay products of a \({\mathrm {D}^0}\) meson. The candidate is combined with a third track from the jet constituents that should represent the soft pion, emitted in the strong decay \({\mathrm{D}^{*+} (2010)}\rightarrow {\mathrm {D}^0}\pi ^+\). To be a soft pion candidate, the track must have a transverse momentum larger than \(0.5\,\text {GeV} \) and lie in a cone of radius \(\varDelta R ({\mathrm {D}^0},\pi )=0.1\) around the line of flight of the \({\mathrm {D}^0}\) meson candidate.

The track of the \({\mathrm {D}^0}\) meson candidate with a charge opposite to the charge of the soft pion is taken to be the kaon from the \({\mathrm {D}^0}\) meson decay and is required to have \(p_{\mathrm {T}} >1.75\,\text {GeV} \). The other track is assigned to be the pion and is required to have \(p_{\mathrm {T}} >0.75\,\text {GeV} \). Two-track combinations with an invariant mass different from the nominal \({\mathrm {D}^0}\) meson mass (1864.86 ± 0.13\(\,\text {MeV}\)) by less than 100\(\,\text {MeV}\) are selected, and a secondary vertex is constructed using the two tracks and the CMS Kalman vertex fitter algorithm [56]. The two-track system is kept as a valid \({\mathrm {D}^0}\) meson candidate if the probability for the vertex fit is greater than 0.05.

To ensure a clean separation between the secondary and primary vertices, the 2D-distance in the transverse plane between them, divided by the uncertainty in the distance measurement (defined as decay length significance) has to be larger than 3. Furthermore, to guarantee that the reconstructed vertex corresponds to a two-body decay of a hadron originating at the primary vertex, the momentum vector of the \({\mathrm {D}^0}\) meson candidate has to be collinear with the line from the primary vertex to the secondary vertex: the cosine of the angle between the two directions has to be larger than 0.99. Finally, only events with a mass difference between the \({\mathrm {D}^{*}(2010)^{\pm }}\) and \({\mathrm {D}^0}\) candidates within 5\(\,\text {MeV}\) from the expected value (\(145.426 \pm 0.002\,\text {MeV} \) [51]) are selected.

The product of the branching fractions \(\mathcal {B}(\mathrm{c} \rightarrow {\mathrm{D}^{*+} (2010)}) \mathcal {B}({\mathrm{D}^{*+} (2010)}\rightarrow {\mathrm {D}^0}\pi ^+) \mathcal {B}({\mathrm {D}^0}\rightarrow \mathrm {K}^-\pi ^+)\) (+ charge conjugate) in the pythia simulation is \((0.741 \pm 0.005)\%\), which is about 15% larger than the average of the experimental values, \((0.622 \pm 0.020)\%\) [51, 52]. Therefore, expected event rates from the MC simulation are scaled in order to match the experimental values.

The distribution of the reconstructed mass of the \({\mathrm {D}^{*}(2010)^{\pm }}\) candidates is presented in Fig. 3 for events with a \(\mathrm{Z} \) boson decaying into \(\mathrm {e}^+\mathrm {e}^-\) (left) and \(\mu ^+\mu ^-\) (right). The contribution from the different processes is estimated with the simulated samples.

The signal region is defined by the constraint \(\varDelta m({\mathrm {D}^{*}(2010)^{\pm }}) \equiv |m^{\text {rec}}({\mathrm {D}^{*}(2010)^{\pm }})-2.01\,\text {GeV} | < 0.04\,\text {GeV} \), where \(m^{\text {rec}}({\mathrm {D}^{*}(2010)^{\pm }})\) is the reconstructed mass of the \({\mathrm {D}^{*}(2010)^{\pm }}\) candidate, and which corresponds to slightly more than twice the measured mass resolution. The two dashed, vertical lines present in Fig. 3 indicate the mass range of the signal region. The nonresonant background contribution to the signal region is subtracted using the number of events selected in a control region away from the resonance. We use a window of \(0.12~(2\times 0.06)\,\text {GeV} \) width, \(N[0.04<\varDelta m({\mathrm {D}^{*}(2010)^{\pm }})<0.10\,\text {GeV} ]\), also shown in Fig. 3, and apply the proper weight to account for the different width of the signal and control regions (8 / 12).

The number of data selected events after background subtraction is \(234 \pm 22\) in the \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) channel and \(308 \pm 24\) in the \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) channel. According to the predictions obtained from the simulated samples, the fraction of \(\mathrm{Z} +\mathrm{c} \) events in the selected sample is high (\({\approx }65\%\)) and the contribution of \(\mathrm{Z} +\mathrm{b} \) events is \({\approx }30\%\). No contribution is expected from \(\mathrm{Z} +\text {light flavour}\) events. Less than 5% of the selected events arise from \({\mathrm{t}\overline{\mathrm{t}}} \) and diboson production.

Systematic biases due to the background subtraction are expected to be negligible compared to the statistical uncertainty, because of the approximate agreement observed between data and simulation as shown in Figs. 2 and 3.

4.2 Selection of \(\mathrm {W}\)+charm jet events (\(\mathrm{c}\) jet control sample) 

Additional data and simulated samples consist of events from associated production of a \(\mathrm {W}\) boson and a jet originating from a \(\mathrm{c} \) quark (\(\mathrm {W}+\mathrm{c} \)). They are used to model characteristic distributions of jets with \(\mathrm{c} \) quark content and to measure the \(\mathrm{c} \) tagging efficiency in a large, independent sample. Jet flavour assignment in the simulated \(\mathrm {W}+\text {jets}\) events follows the criteria presented in Sect. 3 for \(\mathrm{Z} +\text {jets}\) events.

The production of a \(\mathrm {W}\) boson in association with a \(\mathrm{c} \) quark proceeds at LO via the processes \(\mathrm{q} \mathrm{g} \rightarrow \mathrm {W^-}+\mathrm{c} \) and \(\overline{\mathrm{q}} \mathrm{g} \rightarrow \mathrm{W}^\mp \) (\(\mathrm{q} = \mathrm{s}, \mathrm{d} \)). A key property of the \(\mathrm{q} \mathrm{g} \rightarrow \mathrm {W}+\mathrm{c} \) reaction is the presence of a charm quark and a W boson with opposite-sign (OS) charges. Background processes deliver OS and same-sign (SS) events in equal proportions, whereas \(\mathrm{q} \mathrm{g} \rightarrow \mathrm {W}+\mathrm{c} \) is always OS. Therefore, distributions obtained after \(\mathrm {OS}-\mathrm {SS}\) subtraction are representative of the \(\mathrm {W}+\mathrm{c} \) component, allowing for detailed studies of \(\mathrm{c} \text { jets}\).

We select \(\mathrm {W}+\mathrm{c} \) events following the criteria of the analysis reported in Ref. [57]. Candidate events are selected online using single-lepton triggers, which require at least one isolated electron (muon) with \(p_{\mathrm {T}} > 27~(24)\,\text {GeV} \) and \(|\eta ^{\ell } | < 2.1\). The lepton identification and isolation criteria are very similar to those used for the \(\mathrm{Z} +\text {jets}\) selection. The offline \(p_{\mathrm {T}} \) threshold is increased to 30 (25)\(\,\text {GeV}\) for electrons (muons) because of the higher thresholds of the single-lepton triggers. The transverse invariant mass of the lepton and \({\mathbf {p}}_{\mathrm {T}}^{\text {miss}} \) system is defined as \(M_{\mathrm{T}} = \sqrt{\smash [b]{2\, p_{\mathrm {T}} ^{\ell }\, E_{\mathrm {T}}^{\text {miss}} \, [1-\cos (\phi ^{\ell }-\phi ^{E_{\mathrm {T}}^{\text {miss}}})]}}\), where \(\phi ^{\ell }\) and \(\phi ^{E_{\mathrm {T}}^{\text {miss}}}\) are the azimuthal angles of the lepton momentum and \({\mathbf {p}}_{\mathrm {T}}^{\text {miss}} \). The \(M_{\mathrm{T}} \) must be larger than 55 (50)\(\,\text {GeV}\) for events in the \(\mathrm {W}\rightarrow \mathrm {e}\nu \) (\(\mathrm {W}\rightarrow \mu \nu \)) channel.

Identification of jets originating from \(\mathrm{c} \) quarks proceeds exactly as described in Sect. 4.1. In all cases the charge of the \(\mathrm{c} \) quark is unequivocally known. In the semileptonic mode the charge of the muon determines the charge of the \(\mathrm{c} \) quark. In the \({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) modes the charge of the \(\mathrm {D}\) candidates defines the charge of the \(\mathrm{c} \) quark. OS events are events when the muon, \({\mathrm {D}^{\pm }}\), or \({\mathrm {D}^{*}(2010)^{\pm }}\) candidate has a charge opposite to the lepton from the \(\mathrm {W}\) boson decay, and SS events when the charge is the same.

Based on the simulations, after subtracting the SS from the OS samples, \(\mathrm {W}+\mathrm{c} \) events are the dominant contributor to the distributions; \({\approx }90\%\) in the semileptonic decay modes and larger than 98% in the \({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) exclusive channels. The remaining backgrounds, mainly from top quark production, are subtracted using the simulation.

4.3 Selection of \({\mathrm{t}\overline{\mathrm{t}}}\) samples 

A sample of \({\mathrm{t}\overline{\mathrm{t}}} \) events (\(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) sample) is selected using the leptonic decay modes of the \(\mathrm {W}\) bosons from the \({\mathrm{t}\overline{\mathrm{t}}} \) pair when they decay into leptons of different flavour. The \({\mathrm{t}\overline{\mathrm{t}}} \) production is a natural source of \(\mathrm{b} \) flavoured jets and enables tests of the MC description of the relevant distributions for \(\mathrm{b} \text { jets}\) as well as of the performance of the secondary vertexing method. This sample is also used to model the \({\mathrm{t}\overline{\mathrm{t}}} \) background in the discriminant variables used to extract the signal yields.

An \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) sample is selected online by a trigger path based on the presence of an electron-muon pair. The offline selection proceeds as for the \(\mathrm{Z} +\text {HF}\) jet events, but the two leptons must be different flavours. After the selection, contributions from processes other than \({\mathrm{t}\overline{\mathrm{t}}} \) production are negligible.

An additional \({\mathrm{t}\overline{\mathrm{t}}} \) enriched sample is used to estimate the normalization of the remaining \({\mathrm{t}\overline{\mathrm{t}}} \) background. The same selection used for the \(\mathrm{Z} +\text {HF}\) jet signal is applied: two leptons of the same flavour, \(\mathrm {e}\mathrm {e}\) or \(\mu \mu \), and \(E_{\mathrm {T}}^{\text {miss}} > 80\,\text {GeV} \), instead of \(E_{\mathrm {T}}^{\text {miss}} < 40\,\text {GeV} \). The small contribution from \(\mathrm{Z} +\text {jets}\) events in these samples \(({\lesssim }3\%)\) is subtracted according to its MC expectation.

5 Measurement of the \(\mathrm{c} \) and \(\mathrm{b} \) quark tagging efficiencies 

The accuracy of the description in the MC simulations of the secondary vertex reconstruction part of the \(\mathrm{c} \) tagging method is evaluated with a control sample of \(\mathrm {W}+\mathrm{c} \) events with a well-identified muon-inside-a-jet. The events are selected as described in Sect. 4.2 except for the requirement that the muon-inside-a-jet must come from a secondary vertex. The \(\mathrm {OS}-\mathrm {SS}\) strategy suppresses all backgrounds to the \(\mathrm {W}+\mathrm{c} \) sample in the \(\mathrm {W}\rightarrow \mu \nu \) decay mode except for Drell–Yan events. The contamination from the Drell–Yan process, which yields genuine OS dimuon events may reach 25%. The \(\mathrm {W}+\mathrm{c} \) sample in the \(\mathrm {W}\rightarrow \mathrm {e}\nu \) decay mode, with the lepton from the \(\mathrm {W}\) decay of different flavour from the muon-inside-a-jet, is not affected by this background and is employed for the \(\mathrm{c} \) tagging study.

A \(\mathrm {W}+\mathrm{c} \) event is “SV-tagged” if there is a reconstructed secondary vertex in the jet and the muon-inside-a-jet is one of the tracks used to form the vertex. The \(\mathrm{c} \text { jet}\) tagging efficiency is the fraction of “SV-tagged” \(\mathrm {W}+\mathrm{c} \) events, over all \(\mathrm {W}+\mathrm{c} \) events, after \(\mathrm {OS}-\mathrm {SS}\) subtraction:

$$\begin{aligned} \epsilon _{\mathrm{c}}=\frac{N(\mathrm {W}+\mathrm{c})^{\mathrm {OS}-\mathrm {SS}}(\text{ SV-tagged })}{N(\mathrm {W}+\mathrm{c})^{\mathrm {OS}-\mathrm {SS}}}. \end{aligned}$$

Efficiencies are obtained independently with the data and with the \(\mathrm {W}+\text {jets}\) simulated samples. Data-to-simulation scale factors, \(SF_{\mathrm{c}}\), are then computed as the ratio between the \(\mathrm{c} \text { jet}\) tagging efficiencies in data and simulation,

$$\begin{aligned} SF_{\mathrm{c}}=\frac{\epsilon ^{\text {data}}_{\mathrm{c}}}{\epsilon ^{\mathrm {MC}}_{\mathrm{c}}}. \end{aligned}$$

They are used to correct the simulation efficiency.

The \(\mathrm{c} \text { jet}\) tagging efficiencies and the scale factors are computed both inclusively and as a function of the jet \(p_{\mathrm {T}} \). The expected average \(\mathrm{c} \) tagging efficiency is \({\approx }33\%\) for the IVF algorithm and \({\approx }21\%\) for the SSV algorithm. The \(\mathrm{c} \) tagging efficiency ranges from 24% for the IVF algorithm (15% for the SSV algorithm) for \(p_{\mathrm {T}} ^{\,\text {jets}}\) of 25–30 \(\,\text {GeV}\) and up to 37% (26%) for \(p_{\mathrm {T}} ^{\,\text {jets}}\) of \(\approx \)100\(\,\text {GeV}\). The \(SF_{\mathrm{c}}\) for jets with a \(p_{\mathrm {T}} \) larger than \(25\,\text {GeV} \) is found to be \(0.93\pm 0.03 \,\text {(stat)} \pm 0.02 \,\text {(syst)} \) for IVF vertices. It is \(0.92\pm 0.03 \,\text {(stat)} \pm 0.02 \,\text {(syst)} \) for SSV vertices. The systematic uncertainty accounts for inaccuracies in pileup description, jet energy scale and resolution, lepton efficiencies, background subtraction, and modelling of charm production and decay fractions in the simulation.

Fig. 4
figure 4

Transverse momentum distribution of the \(\mathrm{c} \)-tagged jet (left) and number of reconstructed secondary vertices (right), normalized to unity, in simulated \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) samples and in \(\mathrm {W}+\mathrm{c} \) data events. The \(\mathrm {W}+\mathrm{c} \) distributions are presented after the \(\mathrm {OS}-\mathrm {SS}\) subtraction. Vertical bars represent the statistical uncertainties

Detailed studies of the behaviour of the \(\mathrm{b} \) tagging methods developed in CMS are available in Ref. [58]. Following the same procedure, we have used the \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) sample to investigate the data-to-MC agreement for the \(\mathrm{b} \) tagging methods in this analysis. The \(\mathrm{b} \) tagging efficiencies in data and simulated events are computed as the fraction of \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) events with a muon-inside-a-jet participating in a secondary vertex with respect to the number of events when the secondary vertex condition is released. The \(SF_{\mathrm{b}}=\epsilon ^{\text {data}}_{\mathrm{b}}/\epsilon ^{\mathrm{MC}}_{\mathrm{b}}\) is measured to be \(0.96 \pm 0.03\) for both IVF and SSV vertices, where the uncertainty includes statistical and systematic effects due to the jet energy scale and resolution and the pileup.

6 Analysis strategy 

The extraction of \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) event yields is based on template fits to distributions of variables sensitive to the jet flavour. In the semileptonic mode we use the corrected invariant mass, \(M_\text {vertex}^\text {corr}\) (corrected secondary-vertex mass), of the charged particles attached to the secondary vertex (the muon-inside-a-jet included). All charged particles are assigned the mass of the pion, except for the identified muon. A correction is included to account for additional particles, either charged or neutral, that may have been produced in the semileptonic decay but were not reconstructed [59],

$$\begin{aligned} M_\text {vertex}^\text {corr} = \sqrt{M^2_\text {vertex} + p^2_\text {vertex} \sin ^2 \theta } + p_\text {vertex} \sin \theta , \end{aligned}$$

where \(M_\text {vertex}\) and \(p_\text {vertex}\) are the invariant mass and modulus of the vectorial sum of the momenta of all reconstructed particles associated to the secondary vertex, and \(\theta \) is the angle between the momentum vector sum and the vector from the primary to the secondary vertex.

In the \({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) modes a likelihood estimate of the probability that the jet tracks come from the primary vertex, called jet probability (JP) discriminant [47], is used.

The shapes of the \(\mathrm{Z} +\mathrm{c} \) discriminant distributions are modelled in data using OS \(\mathrm {W}+\mathrm{c} \) events, after subtraction of the SS \(\mathrm {W}+\mathrm{c} \) distributions. It is checked using simulated events that the corresponding distributions obtained from the \(\mathrm {W}+\mathrm{c} \) samples accurately describe the \(\mathrm{Z} +\mathrm{c} \) distributions. The main features of the jets, such as \(p_{\mathrm {T}} \), \(\eta \), jet charged multiplicity, and the number of secondary vertices are found to be consistent between \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm {W}+\mathrm{c} \) simulated samples and are in agreement with the observed distributions in the sample of \(\mathrm {W}+\mathrm{c} \) events in data. Figure 4 (left) shows the simulated \(p_{\mathrm {T}} ^{\,\text {jet}}\) distributions of \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) events compared to \(\mathrm {W}+\mathrm{c} \) data after \(\mathrm {OS}-\mathrm {SS}\) subtraction. The number of secondary vertices, identified with the IVF algorithm, is shown in Fig. 4 (right). Events with no reconstructed IVF vertices have at least one reconstructed vertex with the SSV vertex algorithm. All distributions in Fig. 4 are normalized to unity.

Fig. 5
figure 5

Distributions of the corrected secondary-vertex mass (left plot) and JP discriminant (\({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) modes in the middle and right plots), normalized to unity, in simulated \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) samples, and in \(\mathrm {W}+\mathrm{c} \) data events. The \(\mathrm {W}+\mathrm{c} \) distributions are presented after the \(\mathrm {OS}-\mathrm {SS}\) subtraction. Events with \(M_\text {vertex}^\text {corr} > 8 \,\text {GeV} \) are included in the last bin of the corrected secondary-vertex mass distribution. Vertical bars represent the statistical uncertainties

The corrected secondary-vertex mass and JP discriminant distributions, normalized to unity, are presented in Fig. 5 for the three analysis categories. The simulated \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) distributions are compared to \(\mathrm {W}+\mathrm{c} \) data. In general, the simulated \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) distributions agree with the \(\mathrm {W}+\mathrm{c} \) data in all categories. A noticeable discrepancy is observed between the simulated and measured distributions of the corrected secondary-vertex mass in \(\mathrm {W}+\mathrm{c} \) events as shown in Fig. 5 (left). This difference is due to a different fraction of events with two- and three-track vertices in data and in the simulation. Studies with simulated events demonstrate that the fraction of events with two- and three-track vertices for \(\mathrm {W}+\mathrm{c} \) and \(\mathrm{Z} +\mathrm{c} \) production is the same. Therefore, we assume that the \(\mathrm {W}+\mathrm{c} \) corrected secondary-vertex mass distribution measured in data properly reproduces the same distribution for the \(\mathrm{Z} +\mathrm{c} \) measured events. The distributions obtained in the electron and muon decay channels are consistent and are averaged to obtain the final templates, thereby decreasing the associated statistical uncertainty.

The shape of the discriminant variables for \(\mathrm{Z} +\mathrm{b} \) events is modelled with the simulated samples. The simulated distribution of the corrected secondary-vertex mass is validated with the sample of \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) events as shown in Fig. 6. The simulation describes the data well, apart from the mass regions 3–4 \(\,\text {GeV}\) and above 7.5 \(\,\text {GeV}\). The observed differences, \({\approx }13\%\) in the 3–4\(\,\text {GeV}\) mass region and \({\approx }50\%\) above \(7.5\,\text {GeV} \), are used to correct the simulated \(\mathrm{Z} +\mathrm{b} \) distribution. However, the number of events in the \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) sample does not allow a validation of the shape of JP discriminant distributions for \(\mathrm{Z} +\mathrm{b} \) events in the exclusive channels.

Fig. 6
figure 6

Distribution of the corrected secondary-vertex mass normalized to unity from simulated \(\mathrm{Z} +\mathrm{b} \) and \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) data (described in the text) events. Vertical bars represent the statistical uncertainties. The last bin of the distribution includes events with \(M_\text {vertex}^\text {corr} > 8\,\text {GeV} \)

The distributions of the discriminant variables obtained in data are corrected by subtracting the contributions from the various background processes. They are estimated in the following way:

  • The shapes of the discriminant distributions for \({\mathrm{t}\overline{\mathrm{t}}} \) production are evaluated with the \(\mathrm {e}\mu \)-\({\mathrm{t}\overline{\mathrm{t}}} \) sample. The normalization difference between same and different flavour combinations, \(N^{{\mathrm{t}\overline{\mathrm{t}}}}_{\mathrm {e}\mathrm {e}}/N^{{\mathrm{t}\overline{\mathrm{t}}}}_{\mathrm {e}\mu }\) (\(N^{{\mathrm{t}\overline{\mathrm{t}}}}_{\mu \mu }/N^{{\mathrm{t}\overline{\mathrm{t}}}}_{\mathrm {e}\mu }\)) is estimated from the sideband region \(E_{\mathrm {T}}^{\text {miss}} > 80\,\text {GeV} \), and applied to the signal region \(E_{\mathrm {T}}^{\text {miss}} <40\,\text {GeV} \).

  • The shape and normalization of the corrected secondary-vertex mass distribution for the \(\mathrm{Z} +\text {light flavour}\) quark background in the semileptonic channel are evaluated with the simulated samples. Discrepancies between data and simulation in the rate of \(\mathrm{Z} +\text {light flavour}\) jet misidentification are corrected by applying the appropriate scale factors to the simulation [58]. No background from the \(\mathrm{Z} +\text {light flavour}\) quark process is expected in the exclusive channels.

  • The shapes and normalization of the discriminant distributions for the remaining background from diboson production are taken from simulation.

The yields of \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) events in data are estimated by performing least squares fits between the background-subtracted data and template distributions. Independent fits are performed in the dielectron and dimuon channels and in the three analysis categories. The expected \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) distributions are fitted to data with scaling factors \(\mu _{\mathrm{Z} +\mathrm{c}}\) and \(\mu _{\mathrm{Z} +\mathrm{b}}\) defined with respect to the initial normalization predicted from simulation as free parameters of the fit. Typical values of the scaling factors are in the range 0.95–1.05 with a correlation coefficient between \(\mu _{\mathrm{Z} +\mathrm{c}}\) and \(\mu _{\mathrm{Z} +\mathrm{b}}\) of the order of \(-0.4\). The scaling factor obtained for the \(\mathrm{Z} +\mathrm{b} \) component is consistent with that reported in Ref. [17] for a similar fiducial region. The fitted \(\mu _{\mathrm{Z} +\mathrm{c}}\) and \(\mu _{\mathrm{Z} +\mathrm{b}}\) are applied to the expected yields to obtain the measured ones in the data. The measured yields are summarized in Table 1.

Table 1 Cross section \(\sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B}\) and cross section ratio \(\sigma (\mathrm{Z} +\mathrm{c})/\sigma (\mathrm{Z} +\mathrm{b})\) in the three categories of this analysis and in the two \(\mathrm{Z} \) boson decay channels. The \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{c}}\) and \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{b}}\) are the yields of \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) events, respectively, extracted from the fit to the corrected secondary-vertex mass (semileptonic mode) or JP discriminant (\({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) modes) distributions. The factors \(\mathcal {C}\) that correct the selection inefficiencies are also given. They include the relevant branching fraction for the corresponding channel. All uncertainties quoted in the table are statistical, except for those of the measured cross sections and cross section ratios where the first uncertainty is statistical and the second is the estimated systematic uncertainty from the sources discussed in the text

Figure 7 shows the background-subtracted distributions of the corrected secondary-vertex mass for the \(\mathrm{Z} +\text {jets}\) events with a muon-inside-a-jet associated with a secondary vertex. The corrected secondary-vertex mass tends to be larger for \(\mathrm{Z} +\mathrm{b} \) than for \(\mathrm{Z} +\mathrm{c} \) events because the larger mass of the \(\mathrm{b} \) quark gives rise to heavier hadrons (\(m_{\mathrm{b} \,\text {hadrons}} \approx 5\,\text {GeV} \), \(m_{\mathrm{c} \,\text {hadrons}} \approx 2\,\text {GeV} \)).

Fig. 7
figure 7

Corrected secondary-vertex mass distributions, after background subtraction, in the dielectron (left) and dimuon (right) channels for events selected in the semileptonic mode. Events with \(M_\text {vertex}^\text {corr}>8 \,\text {GeV} \) are included in the last bin of the distribution. The shape of the \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) contributions is estimated as explained in the text. Their normalization is adjusted to the result of the signal extraction fit. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the sum in quadrature of the statistical uncertainties of the templates describing the two contributions (\(\mathrm{Z} +\mathrm{c} \) from \(\mathrm {W}+\mathrm{c} \) data events and \(\mathrm{Z} +\mathrm{b} \) from simulation)

The JP discriminant takes lower values for \(\mathrm{Z} +\mathrm{c} \) events than for \(\mathrm{Z} +\mathrm{b} \) events. The \({\mathrm {D}^{\pm }}\) or \({\mathrm {D}^{*}(2010)^{\pm }}\) mesons in \(\mathrm{Z} +\mathrm{b} \) events are “secondary” particles, i.e. they do not originate from the hadronization of a \(\mathrm{c} \) quark produced at the primary vertex, but are decay products of previous \(\mathrm{b} \text { hadron}\) decays at unobserved secondary vertices. Figure 8 shows the background-subtracted distribution of the JP discriminant for the \(\mathrm{Z} +\text {jets}\) events with a \({\mathrm {D}^{\pm }}\rightarrow \mathrm {K}^\mp \pi ^\pm \pi ^\pm \) candidate. Two bins are used to model the JP discriminant in this channel; as a result, the determination of the scaling factors \(\mu _{\mathrm{Z} +\mathrm{c}}\) and \(\mu _{\mathrm{Z} +\mathrm{b}}\) is reduced to solving a system of two equations with two unknowns.

Figure 9 presents the background-subtracted distribution of the JP discriminant for the \(\mathrm{Z} +\text {jets}\) events with a \({\mathrm {D}^{*}(2010)^{\pm }}\) candidate. In this latter channel the particle identified as the soft pion in the \({\mathrm {D}^{*}(2010)^{\pm }}\rightarrow {\mathrm {D}^0}\pi ^\pm \) decay is a true primary particle in the case of \(\mathrm{Z} +\mathrm{c} \) events, whereas it arises from a secondary decay (\(\mathrm{b} \text { hadron}\rightarrow {\mathrm {D}^{*}(2010)^{\pm }}+X \rightarrow {\mathrm {D}^0}\pi ^\pm +X \)) for \(\mathrm{Z} +\mathrm{b} \) events. This “secondary” origin of the soft pion generates a distinctive dip in the first bin of the JP discriminant distribution for \(\mathrm{Z} +\mathrm{b} \) events.

Fig. 8
figure 8

Background-subtracted distributions of the JP discriminant in the dielectron (left) and dimuon (right) channels for \(\mathrm{Z} +\text {jets}\) events with a \({\mathrm {D}^{\pm }}\rightarrow \mathrm {K}^\mp \pi ^\pm \pi ^\pm \) candidate. The shape of the \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) contributions is estimated as explained in the text. Their normalization is adjusted to the result of the signal extraction fit. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the sum in quadrature of the statistical uncertainties of the templates describing the two contributions (\(\mathrm{Z} +\mathrm{c} \) from \(\mathrm {W}+\mathrm{c} \) data events and \(\mathrm{Z} +\mathrm{b} \) from simulation)

Fig. 9
figure 9

Background-subtracted distributions of the JP discriminant in the dielectron (left) and dimuon (right) channels for \(\mathrm{Z} +\text {jets}\) events with a \({\mathrm {D}^{*}(2010)^{\pm }}\rightarrow {\mathrm {D}^0}\pi ^\pm \rightarrow \mathrm {K}^\mp \pi ^\pm \pi ^\pm \) candidate. The shape of the \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) contributions is estimated as explained in the text. Their normalization is adjusted to the result of the signal extraction fit. Vertical bars on data points represent the statistical uncertainty in the data. The hatched areas represent the sum in quadrature of the statistical uncertainties of the templates describing the two contributions (\(\mathrm{Z} +\mathrm{c} \) from \(\mathrm {W}+\mathrm{c} \) data events and \(\mathrm{Z} +\mathrm{b} \) from simulation)

7 Systematic uncertainties 

Several sources of systematic uncertainties are identified, and their impact on the measurements is estimated by performing the signal extraction fit with the relevant parameters in the simulation varied up and down by their uncertainties. The effects are summarized in Fig. 10. The contributions from the various sources are combined into fewer categories for presentation in Fig. 10.

Fig. 10
figure 10

Contributions to the systematic uncertainty in the measured \(\mathrm{Z} +\mathrm{c} \) cross section and in the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio. The first three blocks in the graph show the uncertainties in the \(\mathrm{Z} +\mathrm{c} \) cross section in the three decay modes, semileptonic (SL), \({\mathrm {D}^{\pm }}\), and \({\mathrm {D}^{*}(2010)^{\pm }}\), calculated from the combination of the dimuon and dielectron \(\mathrm{Z} \) boson decay channels. The fourth block shows the systematic uncertainties in the combined (Comb.) \(\mathrm{Z} +\mathrm{c} \) cross section. The last block presents the systematic uncertainty in the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio measured in the semileptonic mode. For every block, the height of the hatched bars indicates the contribution from the different sources of systematic uncertainty. The last, solid bar shows their sum in quadrature

One of the main uncertainties is related to the charm fractions for the production and decay of \(\mathrm{c} \text { hadrons}\) in the simulated samples and to the determination of the \(\mathrm{c} \) tagging efficiency. The average of the inclusive charm quark semileptonic branching fractions is \({\mathcal {B}}(\mathrm{c} \rightarrow \ell ) = 0.096\pm 0.004\) [51], and the exclusive sum of the individual contributions from all weakly decaying charm hadrons is \(0.086\pm 0.004\) [51, 52]. The average of these two values, \({\mathcal {B}}(\mathrm{c} \rightarrow \ell ) = 0.091 \pm 0.003\), is consistent with the pythia value used in our simulations (9.3%). We assign a 5% uncertainty in order to cover both central values within one standard deviation. The average of the inclusive \(\mathrm{b} \) quark semileptonic branching fractions is \({\mathcal {B}}(\mathrm{b} \rightarrow \ell ) = 0.1069 \pm 0.0022\) [51], which is consistent with the pythia value used in our simulations (10.5%). The corresponding uncertainty of 2% is propagated. The 5% systematic uncertainty in \({\mathcal {B}}(\mathrm{c} \rightarrow \ell )\) is further propagated for the fraction of \(\mathrm{Z} +\mathrm{b} \) events with a lepton in the final state through the decay chain \(\mathrm{b} \rightarrow \mathrm{c} \rightarrow \ell \). Uncertainties in the branching ratios of other \(\mathrm{b} \) hadron decay modes with a lepton in the final state, such as \(\mathrm{b} \text { hadron}\rightarrow \tau (\rightarrow \ell +X)+X ^\prime \), \(\mathrm{b} \text { hadron}\rightarrow {\mathrm {J}/\psi }(\rightarrow \ell ^+\ell ^-)+X \), are not included since the expected contribution to the selected sample is negligible.

Since the simulation in the \({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) modes is reweighted to match the experimental values [52], the uncertainty in the reweighting factors (5% for \({\mathrm {D}^{\pm }}\) and 3.2% for \({\mathrm {D}^{*}(2010)^{\pm }}\)) is propagated to the cross section.

The contribution from gluon splitting processes to \(\mathrm{Z} +\mathrm{c} \) production in the phase space of the measurement is small, and its possible mismodelling has little impact on the measurements. Its effect is evaluated with the simulated sample by independently increasing the weight of the events with at least two \(\mathrm{c} \) (\(\mathrm{b} \)) quarks in the list of generated particles close to the selected jet (\(\varDelta R ({\text {jet}},\mathrm{c} (\mathrm{b})) < 0.5\)) by three times the experimental uncertainty in the gluon splitting rate into \(\mathrm{c} \overline{\mathrm{c}} \), \(\mathrm{b} \overline{\mathrm{b}} \) quark pairs [60, 61].

The effects of the uncertainty in the jet energy scale and jet energy resolution are assessed by varying the corresponding jet energy scale (jet energy resolution) correction factors within their uncertainties according to the results of dedicated CMS studies [42, 43]. The uncertainty from a mismeasurement of the missing transverse energy in the event is estimated by propagating the jet energy scale uncertainties and by adding 10% of the energy unassociated with reconstructed PF objects to the reconstructed \(E_{\mathrm {T}}^{\text {miss}} \).

The uncertainty in the \(\mathrm{c} \) tagging scale factors is in the range 3.5–4%, and it is around 2.5% for the \(\mathrm{b} \) tagging efficiency. In the \({\mathrm {D}^{*}(2010)^{\pm }}\) mode, the candidate reconstruction procedure is repeated by independently changing by one standard deviation, in terms of the \(p_{\mathrm {T}} \) resolution, the different \(p_{\mathrm {T}} \)-thresholds imposed and the decay length significance requirement. We assume the uncertainty is the quadratic sum of the respective differences between data and simulation in the change of the number of \({\mathrm {D}^{*}(2010)^{\pm }}\) candidates (2.8%).

The uncertainty in the lepton efficiency correction factors is 4% in the \(\mathrm{Z} \rightarrow \mathrm {e}^+\mathrm {e}^- \) and 2% in the \(\mathrm{Z} \rightarrow \mathrm {\mu ^+}\mathrm {\mu ^-} \) channels. The uncertainty in the efficiency for the identification of muons inside jets is approximately 3%, according to dedicated studies in multijet events [20].

An additional systematic uncertainty is assigned to account for a possible mismodelling of the subtracted backgrounds. For the \({\mathrm{t}\overline{\mathrm{t}}} \) background the uncertainty is taken as the difference between the estimate based on data, as described in Sect. 6, and the one based on simulation. For \(\mathrm{Z} +\text {light flavour}\) events, the systematic uncertainty is evaluated by using the MC correction factors associated with different misidentification probabilities. Finally, the diboson contribution is varied by the difference between the theoretical cross sections calculated at NNLO and NLO (\(\approx \) 15%) [62,63,64].

The reference signal simulated sample is generated with MadGraph +pythia 6 using the PDF CTEQ6L1 and reweighted to NNLO PDF set MSTW2008NNLO. The difference resulting from using other NNLO PDF sets is small (\({\lesssim }1\%\)). Following the prescription of the PDF groups, the PDF uncertainty is of the same order.

The shapes of the discriminant distributions obtained from the \(\mathrm {W}+\mathrm{c} \) event sample are observed to be very stable. Changes in the jet energy scale and variations in the \(p_{\mathrm {T}} \) threshold imposed to select \(\mathrm {W}\) boson candidates do not affect the shape of the templates. The correction factors applied in certain regions to the corrected secondary-vertex mass template for \(\mathrm{Z} +\mathrm{b} \) events are varied within their uncertainties.

Uncertainties due to the pileup modelling are calculated using a modified pileup profile obtained with a \({\mathrm {p}\mathrm {p}}\) inelastic cross section changed by its estimated uncertainty, 6%. The uncertainty in the determination of the integrated luminosity of the data sample is 2.6% [65].

Systematic uncertainties in the differential \(\mathrm{Z} +\mathrm{c} \) cross section and in the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are in the range 11–15%. The main sources of systematic uncertainty in the differential distributions are due to the jet energy scale determination, the charm fractions for \(\mathrm{c} \text { hadron}\) production and decay in simulation, and the efficiencies of heavy flavour tagging. The uncertainty in the binned \(\mathrm{c} \) tagging efficiency scaling factors is 7–8%. Uncertainties in the \(\mathrm{b} \) tagging efficiencies are 3–5%. An additional source of systematic uncertainty in the differential measurement as a function of the transverse momentum of the jet arises from the statistical uncertainty in the determination of the response matrix used to correct for migration of events across \(p_{\mathrm {T}} ^{\,\text {jet}}\) bins, as described in Sect. 9. Its impact is evaluated by repeating the correction procedure using a large number of response matrices, built from the nominal one by varying its components according to their statistical uncertainties. The effect is in the range 4–6% for the \(\mathrm{Z} +\mathrm{c} \) cross section and 4.5–7% for the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio.

8 Inclusive \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio 

For all channels under study, the \(\mathrm{Z} +\mathrm{c} \) cross section is determined in the fiducial region \(p_{\mathrm {T}} ^{\ell } > 20\,\text {GeV} \), \(|\eta ^{\ell }|<2.1\), \(71< m_{\ell \ell } < 111\,\text {GeV} \), \(p_{\mathrm {T}} ^{\,\text {jet}}>25\,\text {GeV} \), \(|\eta ^{\,\text {jet}}|<2.5\), and \(\varDelta R ({\text {jet}},\ell ) > 0.5\), using the following expression:

$$\begin{aligned} \sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B} = \frac{N^\mathrm{signal}_{\mathrm{Z} +\mathrm{c}}}{\mathcal {C} \, \mathcal {L}}, \end{aligned}$$
(1)

where \(N^\text {signal}_{\mathrm{Z} +\mathrm{c}}\) is the fitted yield of \(\mathrm{Z} +\mathrm{c} \) events and \(\mathcal {L}\) is the integrated luminosity. The factor \(\mathcal {C}\) corrects for event losses in the selection process and is estimated using simulated events. The \(\mathcal {C}\) factors also include the relevant branching fraction for the corresponding channel.

Similarly, the ratio of cross sections \(\sigma (\mathrm{Z} +\mathrm{c})/\sigma (\mathrm{Z} +\mathrm{b})\) is calculated in the same fiducial region applying the previous expression also for the \(\mathrm{Z} +\mathrm{b} \) contribution:

$$\begin{aligned} \frac{\sigma (\mathrm{Z} +\mathrm{c})}{\sigma (\mathrm{Z} +\mathrm{b})} = \frac{N^\mathrm{signal}_{\mathrm{Z} +\mathrm{c}}}{N^\mathrm{signal}_{\mathrm{Z} +\mathrm{b}}} \, \frac{\mathcal {C}(\mathrm{Z} +\mathrm{b})}{\mathcal {C}(\mathrm{Z} +\mathrm{c})}, \end{aligned}$$
(2)

Table 1 shows the \(\mathrm{Z} +\mathrm{c} \) production cross section obtained in the three modes and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio (semileptonic mode only).

For the three categories of this analysis the \(\mathrm{Z} +\mathrm{c} \) cross sections obtained in the dielectron and dimuon \(\mathrm{Z} \) boson decay channels are consistent. The results obtained in the three analysis categories are also consistent. Several combinations are performed to improve the precision of the measurement taking into account statistical and systematic uncertainties of the individual measurements. Systematic uncertainties arising from a common source and affecting several measurements are considered as fully correlated. In particular, all systematic uncertainties are assumed fully correlated between the electron and muon channels, except those related to lepton reconstruction. The average \(\mathrm{Z} +\mathrm{c} \) cross sections obtained in the three categories, together with the combination of the six measurements, are also presented in Table 1. The combination is dominated by the result in the semileptonic mode. The contribution of the \({\mathrm {D}^{*}(2010)^{\pm }}\) mode to the average is also significant despite the limited size of the selected samples.

The cross section ratio \(\sigma (\mathrm{Z} +\mathrm{c})/\sigma (\mathrm{Z} +\mathrm{b})\) has been measured in the semileptonic mode, in the two \(\mathrm{Z} \) boson decay channels, and the results among them are consistent. Both cross section ratios are combined taking into account the statistical and systematic uncertainties in the two channels, and the correlations among them. The combination is given in Table 1.

The measured \(\mathrm{Z} +\mathrm{c} \) cross section and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are compared to theoretical predictions obtained using two MC event generators and the mcfm program.

A prediction of the \(\mathrm{Z} +\mathrm{c} \) fiducial cross section is obtained with the MadGraph sample. It is estimated by applying the phase space definition requirements to generator level quantities: two leptons from the \(\mathrm{Z} \) boson decay with \(p_{\mathrm {T}} ^{\ell }>20\,\text {GeV} \), \(|\eta ^{\ell }| < 2.1\), and dilepton invariant mass in the range \(71< m_{\ell \ell } < 111\,\text {GeV} \); a generator-level \(\mathrm{c} \text { jet}\) with \(p_{\mathrm {T}} ^{\mathrm{c} \text { jet}} > 25\,\text {GeV} \), \(|\eta ^{\mathrm{c} \text { jet}}| < 2.5\) and separated from the leptons by a distance \(\varDelta R (\mathrm{c} \text { jet},\ell ) > 0.5\). A prediction of the \(\mathrm{Z} +\mathrm{b} \) cross section, and hence of the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio, is similarly derived applying the relevant phase space definition requirements to \(\mathrm{b} \) flavoured generator-level jets.

The MadGraph prediction, \(\sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B} = 8.14\pm 0.03~\,\text {(stat)} \pm 0.25~(\mathrm{PDF}) \,\text {pb} \), is in agreement with the measured value. The quoted PDF uncertainty corresponds to the largest difference in the predictions obtained using the central members of two different PDF sets (MSTW2008 vs NNPDF2.3); uncertainties computed using their respective PDF error sets are about half this value.

We have also compared the measurements with predictions obtained with a sample of events generated with MadGraph 5_amc@nlo v2.2.1 [66] (hereafter denoted as MG5_aMC) generator interfaced with pythia v8.212 [67] using the CUETP8M1 tune [68] for parton showering and hadronization. The matrix element calculation includes the \(\mathrm{Z} \) boson production process with 0, 1, and 2 partons at NLO. The FxFx [69] merging scheme between jets from matrix element and parton showers is implemented with a merging scale parameter set to 20\(\,\text {GeV}\). The NNPDF3.0 PDF set [70] is used for the matrix element calculation, while the NNPDF2.3 LO is used for the showering and hadronization.

The MG5_aMC prediction of the \(\mathrm{Z} +\mathrm{c} \) cross section is slightly higher, \(\sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B} = 9.46\pm 0.04\,\text {(stat)} \pm 0.15\,(\text {PDF}) \pm 0.50\,(\text {scales})\,\text {pb} \), but still in agreement with the measurement. Uncertainties in the prediction are evaluated using the reweighting features implemented in the generator [71]. The quoted PDF uncertainty corresponds to the standard deviation of the predictions obtained using the one hundred replicas in the NNPDF3.0 PDF set. The scale uncertainty is the envelope of the predictions when the factorization and renormalization scales are varied by a factor of two or one half independently, always keeping the ratio between them less than or equal to two.

Theoretical predictions in perturbative quantum chromodynamics at NLO for the associated production of a \(\mathrm{Z} \) boson and at least one \(\mathrm{c} \) quark are obtained with the mcfm  7.0 program [72]. Several sets of NLO PDF sets are used, accessed through the LHAPDF6 [73] library interface. Partons are clustered into jets using the anti-\(k_{\mathrm {T}} \) algorithm with a distance parameter of 0.5. The kinematic requirements follow the experimental selection: the two leptons from the \(\mathrm{Z} \) boson decay with \(p_{\mathrm {T}} ^\ell > 20\,\text {GeV} \), \(|\eta ^\ell | < 2.1\), \(71< m_{\ell \ell } < 111\,\text {GeV} \) and a \(\mathrm{c} \) parton jet with \(p_{\mathrm {T}} ^{\, \text {parton}\,\,\text {jet}} > 25\,\text {GeV} \), \(|\eta ^{\text {parton}\,\,\text {jet}} | < 2.5\), and separated from the leptons by \(\varDelta R (\text {parton}\,\,\text {jet},\ell ) > 0.5\). The factorization and renormalization scales are set to the mass of the \(\mathrm{Z} \) boson. The PDF uncertainty in the predictions is evaluated following the prescription recommended by the individual PDF groups; the scale uncertainty is estimated as the envelope of the results with (twice, half) factorization and renormalization scales variations.

The prediction computed with mcfm follows the calculation reported in Refs. [72, 74]. The leading contribution \(\mathrm{g} \mathrm{c} \rightarrow \mathrm{Z} \mathrm{c} \) is evaluated at NLO including virtual and real corrections. Some of these corrections feature two jets in the final state, one of them with heavy flavour quark content. The calculation also includes the process \(\mathrm{q} \overline{\mathrm{q}} \rightarrow \mathrm{Z} \mathrm{c} \overline{\mathrm{c}} \) evaluated at LO, where either one of the heavy flavour quarks escapes detection or the two of them coalesce into a single jet.

The mcfm prediction, which is a parton-level calculation, is corrected for hadronization effects so it can be compared with the particle-level measurements reported in this paper. The correction factor is computed with the MadGraph simulated sample comparing the predicted cross section using generator-level jets and parton jets. Parton jets are defined using the same anti-\(k_{\mathrm {T}} \) clustering algorithm with a distance parameter of 0.5, applied to all quarks and gluons after showering, but before hadronization. The flavour assignment for parton jets follows similar criteria as for generator-level jets: a parton jet is labelled as a b jet if there is at least a b quark among its constituents, regardless of the presence of any c or light quarks. It is classified as c jet if there is at least a c quark, and no b quark, among the constituents, and light otherwise. The size of the correction is \({\approx }10\%\) for \(\mathrm{Z} +\mathrm{c} \) and \({\approx }15\%\) for \(\mathrm{Z} +\mathrm{b} \) cross sections, in good agreement with the estimation in Ref. [75].

After the hadronization correction the mcfm prediction still misses contributions from the parton shower evolution, underlying event, and multiple parton interactions. An approximate value of the total correction due to these processes and hadronization is estimated using MadGraph and amounts to \(\approx 30\%\). This correction is not applied to mcfm predictions, but can explain the observed differences between mcfm and the predictions of other generators.

Predictions are produced using MSTW08 and CT10 PDF sets and a recent PDF set from the NNPDF Collaboration, NNPDF3IC [76], where the charm quark PDF is no longer assumed to be perturbatively generated through pair production from gluons and light quarks, but is parameterized and determined along with the light quark and gluon PDFs. The PDF set where the charm quark PDF is generated perturbatively, NNPDF3nIC [76], is also used.

No differences in the predictions are observed using either NNPDF3IC or NNPDF3nIC PDF sets. Differences among them start to be sizeable when the transverse momentum of the \(\mathrm{Z} \) boson is \({\gtrsim }100\,\text {GeV} \) [76]. The largest prediction is obtained using the MSTW08 PDF set, \(\sigma (\mathrm{Z} +\mathrm{c})\,\mathcal {B} = 5.32 \pm 0.01 \,\text {(stat)} ~^{+0.12}_{-0.06}\,(\mathrm {PDF})~^{+0.34}_{-0.38}\,(\text {scales})\,\text {pb} \). Predictions obtained using CT10 and NNPDF3IC are 5% smaller than with MSTW08. The uncertainties in all the calculations are of the same order.

The MadGraph prediction for the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio is \(1.781 \pm 0.006 \,\text {(stat)} \pm 0.004~(\mathrm{PDF})\), where the PDF uncertainty reflects the largest variation using the various PDF sets. The expectation from MG5_aMC is \(1.84 \pm 0.01 \,\text {(stat)} \pm 0.07~(\mathrm{scales})\). The uncertainties from the several members within one PDF set essentially vanish in the ratio. Both predictions agree with the measured ratio.

A prediction for the cross section ratio is also obtained with mcfm, as the ratio of the predictions for \(\sigma (\mathrm{Z} +\mathrm{c})\) and \(\sigma (\mathrm{Z} +\mathrm{b})\), using the same parameters emulating the experimental scenario for both processes. The calculation of the \(\sigma (\mathrm{Z} +\mathrm{b})\) cross section follows the same reference as \(\sigma (\mathrm{Z} +\mathrm{c})\) [72, 74]. The highest predicted value is \(\sigma (\mathrm{Z} +\mathrm{c})/\sigma (\mathrm{Z} +\mathrm{b})= 1.58 \pm 0.01\,(\text {stat+PDF syst}) \pm 0.07\,(\text {scales})\) obtained when the CT10 PDF set is used. The prediction from NNPDF3IC is about 10% lower, mainly because the predicted \(\mathrm{Z} +\mathrm{b} \) cross section using this PDF is the highest one.

9 Differential \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio 

The \(\mathrm{Z} +\mathrm{c} \) production cross section and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are measured differentially as a function of the transverse momentum of the \(\mathrm{Z} \) boson, \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\), and of the transverse momentum of the \(\text {HF}\) jet with the sample selected in the semileptonic mode described in Sect. 4.1. The transverse momentum of the \(\mathrm{Z} \) boson is reconstructed from the momenta of the two selected leptons. The sample is divided into three different subsamples according to the value of the variable of interest, \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) or \(p_{\mathrm {T}} ^{\,\text {jet}}\), and the fit procedure is performed independently for each of them and for each \(\mathrm{Z} \) boson decay mode. The number and size of the bins is chosen such that the corrected secondary-vertex mass distribution for each bin is sufficiently populated to perform the signal extraction fit.

Potential effects of event migration between neighbouring bins and inside/outside the acceptance due to the detector resolution are studied using simulated samples. A detector response matrix is built with those events fulfilling the selection criteria both with generated and reconstructed variables. The element (ij) in the matrix determines the probability that an event with generated \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) (\(p_{\mathrm {T}} ^{\,\text {jet}}\)) in bin i ends up reconstructed in bin j of the distribution.

Migration effects in \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) are found to be negligible and no correction is applied. An uncertainty of 1%, which corresponds to the difference between the cross sections with and without corrections, is included in the systematic uncertainties.

Some migration of events between neighbouring bins in \(p_{\mathrm {T}} ^{\,\text {jet}}\) is expected because of the energy resolution, mainly between the first and second bins (\(< 30\%\)), while migrations between the second and third bins are less than 10%. Migration effects are expected to be the same in the two \(\mathrm{Z}\) boson decay modes. The response matrix is used to unfold the fitted signal yields to actual signal yields at particle level. Events with a generated \(p_{\mathrm {T}} ^{\,\text {jet}}\) outside the fiducial region and reconstructed inside it because of resolution effects are subtracted prior to the unfolding procedure. Corrections are made for acceptance losses at the border of the kinematical region because of the detector resolution and reconstruction inefficiencies. The unfolding is performed with an analytical inversion of the matrix defining the event migrations. Statistical and systematic uncertainties are propagated through the unfolding procedure.

Tables 2 and 3 summarize the fitted \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) signal yields, the \(\mathrm{Z} +\mathrm{c} \) cross section, and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio in the three \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) and \(p_{\mathrm {T}} ^{\,\text {jet}}\) bins and in the two \(\mathrm{Z} \) boson decay channels. The differential cross section and cross section ratio measured in the two \(\mathrm{Z} \) boson decay channels are consistent and are combined to obtain the final results, taking into account the statistical and systematic uncertainties in the two channels and the correlations among them. The combined cross section and cross section ratio are presented in Table 4. They are also shown graphically in Fig. 11 in bins of \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) (top) and \(p_{\mathrm {T}} ^{\,\text {jet}}\) (bottom).

Table 2 Differential cross section \(\mathrm{d}\sigma (\mathrm{Z} +\mathrm{c})/\mathrm{d}{p_{\mathrm {T}} ^{\, \mathrm {Z}}} \,\mathcal {B}\) and cross section ratio \((\mathrm{d}\sigma (\mathrm{Z} +\mathrm{c})/\mathrm{d}{p_{\mathrm {T}} ^{\, \mathrm {Z}}} )/(\mathrm{d}\sigma (\mathrm{Z} +\mathrm{b})/\mathrm{d}{p_{\mathrm {T}} ^{\, \mathrm {Z}}} )\) in the semileptonic mode and in the two Z boson decay channels. The \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{c}}\) and \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{b}}\) are the yields of \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) events, respectively, extracted from the fit. All uncertainties quoted in the table are statistical, except for those of the measured cross sections and cross section ratios, where the first uncertainty is statistical and the second is the estimated systematic uncertainty from the sources discussed in the text
Table 3 Differential cross section \(\mathrm{d}\sigma (\mathrm{Z} +\mathrm{c})/\mathrm{d}{p_{\mathrm {T}} ^{\,\text {jet}}} \,\mathcal {B}\) and cross section ratio \((\mathrm{d}\sigma (\mathrm{Z} +\mathrm{c})/\mathrm{d}{p_{\mathrm {T}} ^{\,\text {jet}}} )/(\mathrm{d}\sigma (\mathrm{Z} +\mathrm{b})/\mathrm{d}{p_{\mathrm {T}} ^{\,\text {jet}}} )\) in the semileptonic mode and in the two Z boson decay channels. The \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{c}}\) and \(N^\mathrm{signal}_{\mathrm{Z} +\mathrm{b}}\) are the yields of \(\mathrm{Z} +\mathrm{c} \) and \(\mathrm{Z} +\mathrm{b} \) events, respectively, extracted from the fit. All uncertainties quoted in the table are statistical, except for those of the measured cross sections and cross section ratios, where the first uncertainty is statistical and the second is the estimated systematic uncertainty from the sources discussed in the text
Table 4 Differential \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio. The first column presents the \(p_{\mathrm {T}} \) range for each bin. Column 2 presents the cross section and column 3 the ratio. The differential measurements as a function of the transverse momentum of the Z boson (jet with heavy flavour content) are given in the upper (lower) part of the table. The first uncertainty is statistical and the second is the systematic uncertainty arising from the sources discussed in the text
Fig. 11
figure 11

Differential \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio as a function of the transverse momentum of the \(\mathrm{Z} \) boson (top) and the transverse momentum of the jet (bottom). The combination of the results in the dielectron and dimuon channels is presented. The \(\mathrm{Z} +\mathrm{c} \) differential cross section is shown on the left and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio is on the right. Statistical uncertainties in the data are shown as crosses. The solid rectangles indicate the total (statistical and systematic) experimental uncertainty. Statistical and systematic uncertainties in the theoretical predictions are shown added in quadrature. Symbols showing the theoretical expectations are slightly displaced from the bin centre in the horizontal axis for better visibility of the predictions

Theoretical predictions for the differential cross section and cross section ratio are also obtained with the two MC generator programs and with mcfm. They are shown in Fig. 11 for comparison with the measured values. The uncertainties in the MadGraph predictions include the statistical and PDF uncertainties. Scale variations are additionally included in the uncertainties of MG5_aMC and mcfm. Predictions from MG5_aMC are higher than the predictions from MadGraph in the three bins of the \(\mathrm{Z} +\mathrm{c} \) differential distributions. A higher \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio is predicted up to \(60 \,\text {GeV} \), although consistent within uncertainties. The predictions from MadGraph and MG5_aMC successfully reproduce the measurements. The level of agreement is similar in terms of the \(\mathrm{Z} +\mathrm{c} \) cross section and the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio.

A similar ordering appears in the differential cross sections and the inclusive cross sections for theoretical predictions calculated with mcfm and the various PDF sets. The highest \(\mathrm{Z} +\mathrm{c} \) cross section is predicted using the MSTW08 PDF set, the largest differential \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio in the two variables is obtained with the CT10 PDF set. All mcfm predictions are lower than the differential cross section measurements as a function of \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\). This discrepancy is most pronounced in the first bin in \(p_{\mathrm {T}} ^{\,\text {jet}}\). Differences between predictions and data are reduced in the \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio comparison.

The fitted charm PDF in NNPDF3IC [76] set is consistent with having an intrinsic component. The fitted fraction of the proton momentum that the charm quark component carries is \((0.7 \pm 0.3)\%\) if EMC data [77] is included in the fit and \((1.6 \pm 1.2)\%\) without it. After subtraction of the perturbative component, the momentum fraction of the proton carried by the IC component is \((0.5 \pm 0.3)\%\) if EMC data is included in the fit, or \((1.4 \pm 1.2)\%\) if not. Upper limits from the CTEQ-TEA Collaboration are also available [78, 79]. Quoted limits on the proton momentum fraction carried by the IC component vary between 1.5% and 2.5% at 90% confidence level depending on the parameterization used.

If the proton momentum fraction taken by the charm quark component (intrinsic + perturbative) is of order \({\approx }2\%\), an increase in the production of \(\mathrm{Z} +\mathrm{c} \) events with a \(p_{\mathrm {T}} ^{\, \mathrm {Z}}{\approx }100\,\text {GeV} \) of at least 20–25% would be expected [76]. Should it be smaller than 1%, the cross section increase would be limited in the \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) region around 100–200\(\,\text {GeV}\) and only become visible at significantly higher \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) (\({\gtrsim }500\,\text {GeV} \)). The measured cross section in the \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) bin [60, 200]\(\,\text {GeV}\) is in agreement with predictions from MadGraph and MG5_aMC using a perturbative charm quark PDF. This measurement is in agreement with no increase in the production rate or with a very modest one, as expected from current upper limits on the IC component. No increase in the production rate in the highest \(p_{\mathrm {T}} ^{\,\text {jet}}\) bin is observed, either.

10 Summary

The associated production of a \(\mathrm{Z} \) boson with at least one charm quark jet in proton-proton collisions at a centre-of-mass energy of 8 \(\,\text {TeV}\) was studied with a data sample corresponding to an integrated luminosity of \(19.7 \pm 0.5{\,\text {fb}^{-1}} \). It was compared to the production of a \(\mathrm{Z} \) boson with at least one \(\mathrm{b} \) quark jet. Selection of event candidates relies on the identification of semileptonic decays of \(\mathrm{c} \) or \(\mathrm{b} \text { hadrons}\) with a muon in the final state and through the reconstruction of exclusive decay channels of \({\mathrm {D}^{\pm }}\) and \({\mathrm {D}^{*}(2010)^{\pm }}\) mesons. The \(\mathrm{Z} \) boson is identified through its decay into an \(\mathrm {e}^+\mathrm {e}^-\) or \(\mu ^+\mu ^-\) pair.

The cross section for the production of a \(\mathrm{Z} \) boson associated with at least one \(\mathrm{c} \) quark jet is measured. The measurement is performed in the kinematic region with two leptons with transverse momentum \(p_{\mathrm {T}} ^{\ell }>20\,\text {GeV} \), pseudorapidity \(|\eta ^{\ell } | < 2.1\), dilepton invariant mass \(71< m_{\ell \ell } < 111\,\text {GeV} \) and a jet with \(p_{\mathrm {T}} ^{\,\text {jet}}>25\,\text {GeV} \), \(|\eta ^{\,\text {jet}} | <2.5\), separated from the leptons of the \(\mathrm{Z} \) boson candidate by a distance \(\varDelta R ({\text {jet}},\ell ) > 0.5\).

The \(\mathrm{Z} +\mathrm{c} \) production cross sections measured in all the analysis categories are fully consistent, and the combined value is \(\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{c} +X) \mathcal {B}(\mathrm{Z} \rightarrow \ell ^+\ell ^-) = 8.8 \pm 0.5 \,\text {(stat)} \pm 0.6 \,\text {(syst)} \,\text {pb} \). This is the first measurement at the LHC of \(\mathrm{Z} +\mathrm{c} \) production in the central pseudorapidity region.

The cross section ratio for the production of a \(\mathrm{Z} \) boson and at least one \(\mathrm{c} \) and at least one \(\mathrm{b} \) quark jet is measured in the same kinematic region and is \(\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{c} +X)/\sigma (\mathrm {p}\mathrm {p}\rightarrow \mathrm{Z} +\mathrm{b} +X) = 2.0 \pm 0.2 \,\text {(stat)} \pm 0.2 \,\text {(syst)} \).

The size of the sample selected in the semileptonic channel allows for the first differential measurements of the \(\mathrm{Z} +\mathrm{c} \) cross section at the LHC. The \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are measured as a function of the transverse momentum of the \(\mathrm{Z} \) boson and of the heavy flavour jet.

The measurements are in agreement with the leading order predictions from MadGraph and next-to-leading-order predictions from MadGraph 5_amc@nlo. Predictions from the mcfm program are lower than the measured \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio, both inclusively and differentially. This difference can be explained by the absence of parton shower development and nonperturbative effects in the mcfm calculation.

Measurements in the highest \(p_{\mathrm {T}} ^{\, \mathrm {Z}}\) (\(p_{\mathrm {T}} ^{\,\text {jet}}\)) region analyzed, \(60< p_{\mathrm {T}} ^{\, \mathrm {Z}}(p_{\mathrm {T}} ^{\,\text {jet}}) < 200 \,\text {GeV} \), would be sensitive to the existence of an intrinsic charm component inside the proton if this IC component were large enough to induce a significant enhancement in the \(\mathrm{Z} +\mathrm{c} \) production cross section. However, our measurements of the \(\mathrm{Z} +\mathrm{c} \) cross section and \({(\mathrm{Z} +\mathrm{c})}/{(\mathrm{Z} +\mathrm{b})}\) cross section ratio are consistent with predictions using PDF sets with no IC component.