1 Introduction

Quarkonium production in hadronic interactions is an excellent case of study for understanding hadronization in quantum chromodynamics (QCD), the theory of strong interactions [1]. In particular, the production of the \(\text {J}/\psi \) meson, a bound state of a charm and an anti-charm quark and the lightest vector charmonium state, is the subject of many theoretical calculations. The cornerstone of all the theoretical approaches is the factorization theorem, according to which the \(\text {J}/\psi \) production cross section can be factorized into a short distance part describing the \(\text {c}\overline{\text {c}}\) production and a long distance part describing the subsequent formation of the bound state. In this way, the \(\text {c}\overline{\text {c}}\) pair production cross section can be computed perturbatively. The widely used Non-Relativistic QCD (NRQCD) approach [2] describes the transition probabilities of the pre-resonant \(\text {c}\overline{\text {c}}\) pairs to bound states with a set of long-distance matrix elements (LDME) fitted to experimental data, assumed to be universal. Next-to-leading order (NLO) calculations involving collinear parton densities are able to describe production yields for transverse momentum (\(p_{\mathrm{T}}\)) larger than the mass of the bound state [3, 4], but have difficulties describing the measured polarization [5, 6]. Calculations employing the \(k_{\mathrm{T}}\)-factorization approach [7] can reach lower \(p_{\mathrm{T}}\) but have similar difficulties when compared to data [8]. The low-\(p_{\mathrm{T}}\) range of quarkonium production is modelled also within the Color Glass Condensate effective theory coupled to leading order NRQCD calculations [9], which involves a saturation of the small Bjorken-x gluon densities that dampens the heavy-quark pair production yields. An alternative to the universal LDME approach to hadronization used in the NRQCD framework is provided by the Color Evaporation Model (CEM) [10, 11] and its more recent implementation using the \(k_{\mathrm{T}}\)-factorization approach, the Improved CEM (ICEM) [12]. In the ICEM, the transition probability to a given bound state is proportional to the \(\text {c}\overline{\text {c}}\) pair production cross section integrated over an invariant-mass range spanning between the mass of the bound state and twice the mass of the lightest charmed meson. Finally, in the Color Singlet Model (CSM) [13,14,15], the pre-resonant \(\text {c}\overline{\text {c}}\) pair is produced directly in the color-singlet state with the same quantum numbers as the bound state. Calculations within this model at NLO precision are known to strongly underpredict the measured production cross sections [16]. In this context, a \(p_{\mathrm{T}}\)-differential measurement of \(\text {J}/\psi \) production cross section covering a wide \(p_{\mathrm{T}}\) range, starting from \(p_{\mathrm{T}}\) \(=\) 0 and up to high-\(p_{\mathrm{T}}\), can discriminate between the different models of quarkonium production.

In this paper, we present the integrated, and the \(p_{\mathrm{T}}\) and rapidity (y) differential production cross sections of inclusive \(\text {J}/\psi \) production at midrapidity (\(|y|<0.9\)) in proton–proton (pp) collisions at the center-of-mass energy \(\sqrt{s}~=~13\) TeV. The inclusive \(\text {J}/\psi \) yields include contributions from directly produced \(\text {J}/\psi \), feed-down from prompt decays of higher-mass charmonium states, and non-prompt \(\text {J}/\psi \) from the decays of beauty hadrons. The \(p_{\mathrm{T}}\)-differential production cross section of inclusive \(\text {J}/\psi \) is measured in the \(0<p_{\mathrm{T}} <15\) GeV/\(c\) interval using a minimum-bias triggered data sample and in the \(15<p_{\mathrm{T}} <40\) GeV/\(c\) interval using an Electromagnetic Calorimeter triggered data sample. These results complement existing measurements at midrapidity at \(\sqrt{s}~=~13\) TeV performed by the CMS Collaboration [17], which report the prompt \(\text {J}/\psi \) production cross section for \(p_{\mathrm{T}}\) \(>20\) GeV/\(c\). Previous measurements of the \(\text {J}/\psi \) production cross section in pp collisions performed by the ALICE Collaboration at midrapidity at lower energies were published in Refs. [18,19,20]. The inclusive \(\text {J}/\psi \) production cross section in pp collisions at \(\sqrt{s}~=~13\) TeV was published by the ALICE Collaboration at forward rapidity in Ref. [21] and the prompt and non-prompt production cross sections were reported by the LHCb Collaboration in Ref. [22].

In the next sections, the ALICE detector and the data sample are described in Sect. 2, and the data analysis and the determination of the systematic uncertainties are described in Sects. 3 and 4, respectively. The results are presented and discussed together with recent model calculations in Sect. 5 and conclusions are drawn in Sect. 6.

2 The ALICE detector, data set and event selection

A detailed description of the ALICE detector and its performance is provided in Refs. [23, 24]. Here we mention only the detector systems used for the reconstruction of the \(\text {J}/\psi \) mesons decaying in the \(\text {e}^{+}\text {e}^{-}\) channel at midrapidity. Unless otherwise specified, the term electrons will be used throughout the text to refer to both electrons and positrons.

The reconstruction of charged-particle tracks is performed using the Inner Tracking System (ITS) [25] and the Time Projection Chamber (TPC) [26], which are placed inside a solenoidal magnet providing a uniform magnetic field of \(B = 0.5~\text {T}\) oriented along the beam direction. The ITS is a silicon detector consisting of six cylindrical layers surrounding the beam pipe at radii between 3.9 and \(43.0~\text {cm}\). The two innermost layers consist of silicon pixel detectors (SPD), followed by two layers of silicon drift (SDD) and two layers of silicon strip (SSD) detectors. The TPC is a cylindrical gas drift chamber which extends radially between 85 and \(250~\text {cm}\) and longitudinally over \(250~\text {cm}\) on each side of the nominal interaction point. Both TPC and ITS have full coverage in azimuth and provide tracking in the pseudorapidity range \(|\eta | < 0.9\). Additionally, the measurement of the specific energy loss (\(\text {d}E/\text {d}x\)) in the TPC active gas volume is used for electron identification. The Electromagnetic Calorimeter (EMCal) and the Di-jet Calorimeter (DCal) [27,28,29] are employed for triggering and electron identification. The EMCal/DCal is a Shashlik-type lead-scintillator sampling calorimeter located at a radius of 4.5 m from the beam vacuum tube. The EMCal detector covers a pseudorapidity range of \(|\eta |<0.7\) over an azimuthal angle of \( 80^\circ< \varphi < 187^\circ \), and the DCal covers \(0.22<|\eta |< 0.7\) for \(260^\circ< \varphi < 320^\circ \) and \(|\eta |<0.7\) for \(320^\circ< \varphi < 327^\circ \). The EMCal and DCal have identical granularity and intrinsic energy resolution, and they form a two-arm electromagnetic calorimeter, which in this paper will be referred to jointly as EMCal.

In addition to these central barrel detectors, the V0 detectors, composed of two scintillator arrays [30] placed along the beam line on either side of the interaction point and covering the pseudorapidity intervals \(-3.7< \eta < -1.7\) and \(2.8< \eta < 5.1\), respectively, are used for event triggering. Together with the SPD detector, the V0 is also used to reject background from beam-gas collisions and pileup events.

The measurement of the \(p_{\mathrm{T}}\)-integrated and \(p_{\mathrm{T}}\)-differential production cross sections up to \(p_{\mathrm{T}} = 15\) GeV/\(c\), the upper limit being determined by the available integrated luminosity, utilizes the minimum-bias (MB) trigger, defined as the coincidence of signals in both V0 scintillator arrays. For the \(p_{\mathrm{T}}\) interval from 15 up to 40 GeV/\(c\), the EMCal trigger is employed to select events with high-\(p_{\mathrm{T}}\) electrons. The lower \(p_{\mathrm{T}}\) limit is chosen such that the trigger efficiency does not vary with \(p_{\mathrm{T}}\) above this value, thus avoiding systematic uncertainties related to trigger threshold effects. The EMCal trigger is an online trigger which includes a Level 0 (L0) and a Level 1 (L1) component [27]. The calorimeter is segmented into towers and Trigger Region Units (TRUs), the latter being composed of 384 towers each [27]. The L0 trigger is based on the analog charge sum of \(4\times 4\) groups of adjacent towers evaluated within each TRU, in coincidence with the MB trigger. The L1 trigger decision requires the L0 trigger and, in addition, scans for \(4\times 4\) groups of adjacent towers across the entire EMCal surface. The EMCal-triggered analysis presented in this paper uses the L1 trigger, and requires that at least one of the charge sums of the \(4\times 4\) adjacent towers is above 9 GeV.

This analysis includes all the data recorded by the ALICE Collaboration during the LHC Run 2 data-taking campaigns of 2016, 2017 and 2018 for pp collisions at \(\sqrt{s}~=~13\) TeV. The maximum interaction rate for the dataset was \(260~\text {kHz}\), with a maximum pileup probability in the same bunch crossing of 0.5 \(\times \) 10\(^{-3}\). The events selected for analysis were required to have a reconstructed vertex within the interval \(|z_{\text {vtx}}|<10~\text {cm}\) to ensure a uniform detector acceptance. Beam-gas events and pileup collisions occurring within the readout time of the SPD were rejected offline using timing selections based on the V0 detector information. Pileup collisions occurring within the same LHC bunch crossing were rejected using offline algorithms which identify multiple vertices [24]. The remaining fraction of pileup events surviving the selections is negligible for both the MB and EMCal data samples.

The analyzed MB sample, satisfying all the quality selections, consists of about \(2\times \)10\(^9\) events, corresponding to an integrated luminosity \(L_{\text {int}} = 32.2~\text {nb}^{-1} \pm 1.6\%~(\text {syst})\), and the EMCal-triggered sample consists of approximately \(9\times \)10\(^7\) events which corresponds to an integrated luminosity \(L_{\text {int}} = 8.3~\mathrm {pb}^{-1} \pm 2.0\%~(\text {syst})\). The integrated luminosities are obtained based on the MB trigger cross section (\(\sigma _{\mathrm {MB}}\)), measured in a van der Meer scan [31], separately for each year, as described in Ref. [32]. For each of the used triggers, MB and EMCal, the integrated luminosity is obtained as

$$\begin{aligned} L_{\mathrm {int}} = \frac{N_{\mathrm {MB}}}{\sigma _{\mathrm {MB}}} \times \frac{ds_{\mathrm {trig}}}{ds_{\mathrm {MB}}} \times \frac{LT_{\mathrm {trig}}}{LT_{\mathrm {MB}}} \end{aligned}$$

where \(N_{\mathrm {MB}}\) is the number of MB-triggered events in the triggered sample, \(ds_{\mathrm {trig}}\) is the downscaling factor applied to the considered trigger by the ALICE trigger processor and \(LT_{\mathrm {trig}}\) is the trigger live time, i.e. the fraction of time where the detector clusterFootnote 1 assigned to the trigger was available for readout.

3 \(\text {J}/\psi \) reconstruction

In this work we study the integrated, and the rapidity- and \(p_{\mathrm{T}}\)-differential inclusive \(\text {J}/\psi \) production at midrapidity (\(|y|<0.9\)) reconstructing the \(\text {J}/\psi \) from the \(\text {e}^{+}\text {e}^{-}\) decay channel. The MB sample analysis follows closely the one performed in pp collisions at \(\sqrt{s}~=~5.02\) TeV [20].

3.1 Track selection

Electron-track candidates are reconstructed employing the ITS and TPC. They are required to be within the acceptance of the central barrel (\(|\eta | < 0.9\)), and to have a minimum transverse momentum of 1 GeV/\(c\), which suppresses the background with only a moderate \(\text {J}/\psi \) efficiency loss. The tracks are selected to have at least 2 hits in the ITS, one of which having to be in one of the SPD layers, and share at most one hit with other tracks. A minimum of 70 out of a maximum of 159 clusters are required in the TPC.

In order to reject tracks originating from weak decays and interactions with the detector material, a selection based on the distance-of-closest approach (DCA) to the primary vertex is applied to the tracks. For the MB analysis the tracks are required to have a minimum DCA lower than 0.2 cm in the transverse direction and 0.4 cm along the beam axis. Such tight selection criterion is used in order to improve the signal-to-background ratio and the signal significance. It was checked with Monte Carlo (MC) simulations that these requirements do not lead to efficiency loss for the non-prompt \(\text {J}/\psi \) relative to the prompt \(\text {J}/\psi \). For the EMCal-triggered event analysis, a looser selection on the DCA to the primary vertex at 1 and 3 cm is applied to avoid rejecting non-prompt \(\text {J}/\psi \) from highly boosted beauty hadron decays.

The electrons are identified using the specific energy loss \(\text {d}E/\text {d}x\) in the TPC gas. Their \(\text {d}E/\text {d}x\) is required to be within a band of \([-2, 3]~\sigma \) relative to the expectation for electrons at the given track momentum, with \(\sigma \) being the \(\text {d}E/\text {d}x\) resolution. The contamination from protons which occurs in the momentum range \(p<1.5\) GeV/\(c\) and from pions for momenta above 2 GeV/\(c\) is mitigated by rejecting tracks compatible wi