1 Introduction

The factorization principle and the concept of quark and gluon fragmentation functions [1] constitute a widely exploited framework to describe particle production phenomena at collider energies (e.g., see [2,3,4,5]). Over the years, large efforts have been invested in the theoretical calculation and experimental determination of the various fragmentation functions. In some important cases, such as the production of heavy quarkonium states, the relevant fragmentation functions are believed to be calculable with QED and QCD perturbative methods. For example, the heavy quark fragmentation to a heavy pair \(Q\rightarrow Q{\bar{Q}}\) is known at the Next-to-Leading Power (NLP) accuracy [6].

Despite the method is proved to be mathematically consistent for asymptotically high transverse momenta of the produced particles, the real conditions may not meet this asymptotic regime. So, it is certainly of great interest to outline the kinematic domain where the fragmentation approach can be trusted as a reliable approximation. This issue has been previously studied in a number of papers. Reference [7] addresses the production of quarkonium states in \(e^+e^-\) annihilation; Ref. [8] focuses on the gluon fragmentation in pp collisions; Ref. [9] considers quarks fragmenting into color-singlet \(Q{\bar{Q}}\) states and gluons fragmenting into color-octet states. The moral deduced from the above studies is that the energy at which the fragmentation result becomes reliable may exceed the quarkonium mass by more than one order of magnitude. However, the value of the required energy is not universal, and the validity of fragmentation predictions “must be carefully checked on a case-by-case basis” [7].

Our previous study [10] was devoted to the production of \(J/\psi \) mesons in proton–proton collisions, and the conclusions were consistent with Ref. [9]. Now we extend the consideration to hadrons with other quantum numbers and to other colliding beams. Namely, we address the production of \(\eta _c\) mesons and doubly-charmed \(\varXi _{cc}\) baryons in proton–proton collisions and, also, the production of \(J/\psi \) mesons in lepton–lepton collisions via two-photon subprocess.

To carry out this task, we make a comparison of two calculations. First, we consider an \({{{\mathcal {O}}}}(\alpha _s^2)\) subprocess \(g\,g\rightarrow c\,{\bar{c}}\) (or \(\gamma \,\gamma \rightarrow c\,{\bar{c}}\)) and convolute it with an \({{{\mathcal {O}}}}(\alpha _s^2)\) fragmentation function \(c\rightarrow \psi \,c\), where \(\psi \) may stand for \(\eta _c\), \(\varXi _{cc}\), or \(J/\psi \). Second, we perform a full \({{{{\mathcal {O}}}}}(\alpha _s^4)\) calculation for the process \(g\,g\rightarrow \psi \,c\,{\bar{c}}\) and see to what extent does the ‘full result’ matches the fragmentation interpretation.

To avoid any confusion about the goal of the paper, we have to remind that our calculation of \(\eta _c\), \(\varXi _{cc}\), and \(J/\psi \) associated production with \(c+{\bar{c}}\) is not at all unique; and that the relevant fragmentation functions have even been calculated at the NLO accuracy (e.g., [11] for \(c\rightarrow J/\psi \) and [12] for \(c\rightarrow \varXi _{cc}\)). But the point of our interest is not in these processes on their own. We see our practical result in establishing the applicability limits for the fragmentation approach. These limits have never been shown in the literature for the mentioned processes.

Fig. 1
figure 1

Feynman diagrams used to calculate the \(c\rightarrow \psi \) fragmentation function from \(e^+e^-\) annihilation, \(e^+e^-\rightarrow \gamma ^*\rightarrow \psi +c+{\bar{c}}\)

Fig. 2
figure 2

The process \(g+g\rightarrow \varXi _{cc}+{\bar{c}}+{\bar{c}}\); azimuthal angle difference between the \(\varXi _{cc}\) baryon and the comoving \({\bar{c}}\)-quark as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\varXi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\). Lower panel: dotted, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\varXi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\)

Fig. 3
figure 3

The process \(g+g\rightarrow \varXi _{cc}+{\bar{c}}+{\bar{c}}\); pseudorapidity difference between the \(\varXi _{cc}\) baryon and the comoving \({\bar{c}}\)-quark as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\varXi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\). Lower panel: dotted, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\varXi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\)

Fig. 4
figure 4

The process \(g+g\rightarrow \eta _c+c+{\bar{c}}\); invariant mass of the \(\eta _c+c\) system as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\eta T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\eta T}>20\) GeV, \(p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\eta T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\eta T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\); solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 5
figure 5

The process \(g+g\rightarrow \eta _c+c+{\bar{c}}\); the distributions over the fragmentation variable z as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\eta T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\eta T}>20\) GeV, \(\;p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\eta T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\eta T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\); solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 6
figure 6

The process \(g+g\rightarrow \varXi _{cc}+{\bar{c}}+{\bar{c}}\); invariant mass of the \(\varXi _{cc}+{\bar{c}}\) system as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\varXi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\varXi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\); solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 7
figure 7

The process \(g+g\rightarrow \varXi _{cc}+{\bar{c}}+{\bar{c}}\); the distributions over the fragmentation variable z as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\varXi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\varXi T}>20\) GeV, \(\;p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\varXi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\varXi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\); solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 8
figure 8

The process \(\gamma +\gamma \rightarrow J/\psi +c+{\bar{c}}\); invariant mass of the \(J/\psi +c\) system as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\psi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\psi T}>20\) GeV, \(p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\psi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\psi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\). solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 9
figure 9

The process \(\gamma +\gamma \rightarrow J/\psi +c+{\bar{c}}\); the distributions over the fragmentation variable z as seen under the different kinematic constraints. Upper panel: dotted, \(p_{\psi T}>5\) GeV, \(p^*_{T}>20\) GeV; dashed, \(p_{\psi T}>20\) GeV, \(\;p^*_{T}>20\) GeV; dash-dotted, \(m^*<E^*/3\); solid, factorization calculation for \(p^*_{T}>20\) GeV. Lower panel: dotted, \(p_{\psi T}>20\) GeV, \(p^*_{T}>50\) GeV; dashed, \(p_{\psi T}>50\) GeV, \(p^*_{T}>50\) GeV; dash-dotted, \(m^*<E^*/10\); solid, factorization calculation for \(p^*_{T}>50\) GeV

Fig. 10
figure 10

Transverse momentum distributions of the different particles produced at the middle rapidity in pp or ee collisions at \(\sqrt{s}=7\) TeV. The full \({{{\mathcal {O}}}}(\alpha _s^4)\) calculation is shown by solid curves. The fragmentation approximation is presented by dashed curves. The plots from top to bottom correspond to the subprocesses \(g+g\rightarrow \eta _c +c+{\bar{c}},\;\;\) \(g+g\rightarrow \varXi _{cc} +{\bar{c}}+{\bar{c}},\) and \(\gamma +\gamma \rightarrow J/\psi +c+{\bar{c}}\)

2 Perturbative color-singlet fragmentation \({\varvec{c\rightarrow \psi \, c}}\)

To calculate the charmed quark fragmentation function, we start with the process \(e^+e^-\rightarrow \gamma ^*\rightarrow \psi \,c\,{\bar{c}}\) considered in the virtual photon rest frame with the z axis oriented along the negative direction of the charmed antiquark momentum. The corresponding Feynman diagrams are displayed in Fig. 1.

The bound state quantum numbers are determined by the properly chosen projection operators in the production amplitudes. The production of \(\varXi _{cc}\) baryons is dominated by the production of double-charm diquark cc in the color antitriplet state. The diquark can then pick up a lighter quark from the vacuum and convert into a real baryon. The 4-momentum of the baryon can be approximately taken equal to the momentum of the heavy diquark. We have to consider the diquarks with spin 0 \(cc_0\) and 1 \(cc_1\).

The fully differential cross section then reads

$$\begin{aligned} d\sigma= & {} \frac{1}{2s}\,\frac{1}{(2\pi )^5}\, |{{{\mathcal {M}}}}(ee{\rightarrow }\gamma ^*)|^2\,\cdot \, |{{{\mathcal {M}}}}(\gamma ^*{\rightarrow }\psi \,c\,{\bar{c}})|^2\, \nonumber \\&\times \frac{1}{s^2}\, \frac{\lambda ^{1/2}(s,p^{*2},m_c^2)}{8s}\, \frac{\lambda ^{1/2}(p^{*2},m_\psi ^2,m_c^2)}{8p^{*2}}\nonumber \\&\times d\varOmega \;dp^{*2}\,d\phi \;d\cos \theta , \end{aligned}$$
(1)

where s is the overall invariant energy; \(p_\psi \), \(p_1\) and \(p_2\) the 4-momenta of final hadron and the charmed quark and antiquark, respectively; \(\varOmega \), \(\phi \), and \(\theta \) the angular variables of the reaction; \(\lambda \) is the standard ‘triangle’ kinematic function [13]; and the momentum \(p^*=p_1+p_\psi \) represents the fragmenting (or ‘parent’) quark momentum.

The above formula can be interpreted as a product of the quark production cross section

$$\begin{aligned}&d\sigma (e^+e^-\rightarrow c\,{\bar{c}}) \nonumber \\&\quad =\frac{1}{2s}\,\frac{1}{(2\pi )^2}\, \frac{\lambda ^{1/2}(s,p^{*2},m_c^2)}{8s}\; |{{{\mathcal {M}}}}(ee\rightarrow c\,{\bar{c}})|^2\;d\varOmega \end{aligned}$$
(2)

and the c-quark fragmentation probability. After dividing Eq. (1) by Eq. (2) we arrive at the definition of the differential fragmentation function

$$\begin{aligned}&dD(c^*\rightarrow \psi \,c) \\&\quad = \frac{1}{(2\pi )^3} \frac{|{{{\mathcal {M}}}}(\gamma ^*{\rightarrow }\psi \,c\,{\bar{c}})|^2}{|{{{\mathcal {M}}}}(\gamma ^*{\rightarrow }c\,{\bar{c}})|^2}\, \lambda ^{1/2}(p^{*2},m_\psi ^2,m_c^2)\;dp^{*2}\,d\phi \;d\cos \theta . \nonumber \end{aligned}$$
(3)

The latter can be further reduced to the conventional fragmentation function \(D_{c/\psi }(z)\) by introducing the light-cone variable \(z=p^+_\psi /p^{*+}=(E_\psi +p_{\psi ,z})/(E^*+p^*_{z})\) and integrating over all other variables in Eq.(3):

$$\begin{aligned} D_{c/\psi }(z)=\! \int \!\! D(c^*\rightarrow \psi \,c)\,\delta (z - p^+_\psi /p^{*+})\, dp^{*2}\,d\phi \;d\cos \theta .\nonumber \\ \; \end{aligned}$$
(4)

The full factorization takes place in the high energy limit, \(\sqrt{s}\gg m_c\), when the terms of the order \(m_c/\sqrt{s}\) become small and can be neglected. At finite energies the factorization is only approximate. It is the matter of our numerical study, to understand the kinematic conditions which make the factorization approximation applicable to the gluon–gluon fusion case.

3 Full \({{{\mathcal {O}}}}({\varvec{\alpha }}_{\varvec{s}}^{\varvec{4}})\) calculation

3.1 Gluon–gluon fusion processes

The calculation of the gluon–gluon fusion processes

$$\begin{aligned}&g+g\rightarrow \eta _c +c+{\bar{c}}, \end{aligned}$$
(5)
$$\begin{aligned}&g+g\rightarrow \varXi _{cc} +{\bar{c}}+{\bar{c}}, \end{aligned}$$
(6)
$$\begin{aligned}&\gamma +\gamma \rightarrow J/\psi +c+{\bar{c}} \end{aligned}$$
(7)

is based on, respectively, 42, 36, and 20 Feynman diagrams shown in Fig. 1 in Ref. [10]. They are all necessary to compose gauge invariant sets (for more details see [14, 15], where one can find explicit algebraic expressions for all of these diagrams). The amplitudes for the production of vector (\(J/\psi \) or \(cc_1\)) and (pseudo)scalar (\(\eta _c\) or \(cc_0\)) states contain different spin projection operators. The amplitudes for color singlet (\(J/\psi \) or \(\eta _c\)) and color antitriplet (diquark) states employ different combinations of color coefficients. The evaluation of Feynman diagrams is straightforward and was done with the algebraic manipulation system form [16].

Having the heavy quarks produced, the probability to form a bound state is determined by a single parameter, the radial wave function at the origin \(|{{{{\mathcal {R}}}}}(0)|^2\). It can be calculated within potential models or extracted from the particle decay widths. To be definite, we set \(|{{{{\mathcal {R}}}}}_{\psi }(0)|^2=|{{{{\mathcal {R}}}}}_{\eta }(0)|^2= 0.8\) \(\hbox {GeV}^3\), \(|{{{{\mathcal {R}}}}}_{\varXi }(0)|^2= 0.4\) \(\hbox {GeV}^3\), although these values are irrelevant for our purposes. We only want to examine the agreement or disagreement between the ‘full’ and factorized calculations.

Summarizing, the fully differential cross section reads

$$\begin{aligned}&d\sigma (pp\rightarrow \psi c{\bar{c}}X) \nonumber \\&\quad = \frac{\pi \alpha _s^4}{3{\hat{s}}^2}\,\frac{|{{{{\mathcal {R}}}}}(0)|^2}{4\pi } \frac{1}{4}\sum _{\tiny \hbox {spins}}\; \frac{1}{64}\sum _{\tiny \hbox {colors}} |{{{\mathcal {M}}}}(gg\rightarrow \psi c{\bar{c}})|^2 \nonumber \\&\qquad \times \, {{{{\mathcal {F}}}}}_g(x_1,\mu ^2)\;{{{{\mathcal {F}}}}}_g(x_2,\mu ^2)\nonumber \\&\qquad \times \, dp_{\psi T}^2\,dp_{cT}^2\, dy_\psi \,dy_c\,dy_{{\bar{c}}}\, \frac{d\phi _\psi }{2\pi }\,\frac{d\phi _c}{2\pi }, \end{aligned}$$
(8)

where s is the total initial invariant energy squared, \({\hat{s}}\) the squared energy of the partonic subprocess, \(x_1\) and \(x_2\) the parton light-cone momentum fractions; \({{{{\mathcal {F}}}}}_g(x,\mu ^2)\) the gluon distribution function in the proton; \(\mu ^2={\hat{s}}/4\); and \(y_\psi \), \(y_c\), \(y_{{\bar{c}}}\), \(p_{\psi T}\), \(p_{cT}\), \(p_{{\bar{c}}T}\), \(\phi _\psi \), \(\phi _c\) and \(\phi _{{\bar{c}}}\) the rapidities, transverse momenta and azimuthal angles of the final particle \(\psi \) and the accompanying charmed quark and antiquark, respectively.

We use the MSTW leading-order set [17] for the gluon densities in (5), (6) and Weizsäcker–Williams approximation [18, 19] for equivalent photon flux in (7). The multidimensional integration in (8) has been performed by means of the Monte-Carlo technique, using the routine VEGAS [20].

3.2 Theoretical experiment: “jet” reconstruction

To reinterpret the results of ‘full calculation’ in terms of fragmentation approach we have to reconstruct the fragmenting quark momentum. In what follows we will refer to the \(J/\psi +c+{\bar{c}}\) channel taking it as an example, but understand that the same applies to all other channels too. Accordingly, \(p_\psi \) may denote the momentum of \(J/\psi \) meson, or \(\eta _c\) meson, or \(\varXi _{cc}\) baryon.

We can associate the final state \(J/\psi \) meson with either c or \({\bar{c}}\), thus referring to the quark or antiquark fragmentation cases. We choose between these two possibilities by taking the configuration with the lowest two-body invariant mass: either \(M(\psi c) < M(\psi {\bar{c}})\), or vice versa. Here we follow the same way as in [10].

Let the chosen system be the \(\psi c\) (quark fragmentation). Then the momentum \(p^*\) of the fragmenting quark is evidently \(p^*=p_\psi +p_c\). The factorization hypothesis (or theorem) requires that the fragmenting quark transverse momentum be large enough, \(p^*_T>p_{T, min}\). In our numerical studies we tried \(p_{T, min}= 20\) Gev and \(p_{T, min}= 50\) GeV. Another necessary condition for the validity of fragmentation approach is that the invariant mass \(m^*\) of the fragmenting system must be small in comparison with its energy \(E^*\). In our numerical exercises we tried \(m^*<E^*/3\) and \(m^*<E^*/10\). In Figs. 2, 3, 4, 5, 6, 7, 8 and 9 we show the effect of these kinematic constraints on the quality of fragmentation approximation.

The results obtained for baryons with different spin, \(\varXi _{cc0}\) and \(\varXi _{cc1}\), are very similar to each other. We sum them together under the name of \(\varXi _{cc}\) (i.e., \(d\sigma (\varXi _{cc})=d\sigma (\varXi _{cc0})+d\sigma (\varXi _{cc1}))\). The behavior of interparticle correlations (such as the separation in rapidities or azimuthal angles) is also similar in all cases, for all of the considered processes (5)–(7). We only show the \(\varXi _{cc}\) sample as a representative example.

With harder cuts on the fragmenting quark transverse momenta, the system becomes better collimated (narrower \(\varDelta \phi \) and \(\varDelta \eta \) distributions, see Figs. 23) and so, better suits the fragmentation topology. Imposing cuts on the invariant mass makes the \(\varDelta \phi \) and \(\varDelta \eta \) distributions even narrower.

The quality of the fragmentation approximation can further be inspected by comparing the distributions on the jet invariant mass \(m^*\) and the fragmentation variable z. The ‘full’ results for unrestricted \(p_{\psi T}\) and \(m^*\) (dotted curves in Figs. 4, 5, 6, 7, 8 and 9) lie well above the fragmentation predictions (solid curves). The excess is clearly seen even in the very forward region (at large z) for \({p}^{*}_{T}\)> 20 GeV and, to a less extent, for \({p}^{*}_{T}\)> 50 GeV.

Imposing restrictions on the jet invariant mass \(m^*\) improves the line shape of z distributions. A good agreement with the fragmentation predictions is obtained even under such a moderate condition as \(m^*<E^*/3\). At \(m^*<E^*/10\), the agreement can be said perfect. The invariant mass spectrum is narrower than in the true fragmentation, because the condition \(m^*\ll E^*\) suppresses the large-mass tail of the spectrum.

So, we see that with tighter cuts on \({p}^{*}_{T}\) and \(m^*\) we better fit the factorization conditions and better reproduce the shape of the fragmentation function. The point of difficulty is that \({p}^{*}_{T}\) and \(m^*\) are not experimental observables. In our real life, in inclusive measurements, we are left with the momentum of the only reconstructed particle. Finally, in Fig. 10 we plot the calculated \(p_T\) spectra of the different particles produced in pp or ee collisions at \(\sqrt{s}=7\) TeV. The ‘full LO’ and ‘fragmentation’ curves seem to join at around \(p_{\psi T}\) \(\simeq 40\) or 50 GeV. This figure indicates that making use of the fragmentation approach below 40 GeV is by no means well justified. But even at \(p_{\psi T}\) \(>50\) GeV the apparent agreement between the spectra yet does not provide an evidence of the true factorization (recall the disagreement between the z distributions at \(p_{\psi T}\) \(>50\) GeV for moderate and low z in Figs. 57). It is rather a consequence of the steep \(p_T\) dependence of the production cross sections that makes the low-z behavior of D(z) not visible under the contributions from lower \(p_T\).

Going to higher order calculations for the charm fragmentation function would not help, since the origin of the problem is not in the accuracy of the fragmentation function on its own, but rather in the unavoidable presence of large non-fragmentation contributions. Inclusion of the color octet production scheme cannot help either, as it would not solve the problem in the color singlet channel and, most probably, will suffer from the same troubles, in view of even much larger number of non-fragmentation diagrams.

4 Conclusions

We have compared the predictions on the production of \(\eta _c +c+{\bar{c}},\;\;\) \(\varXi _{cc} +{\bar{c}}+{\bar{c}},\) and \(J/\psi +c+{\bar{c}}\) systems in pp collisions obtained, on one hand, with the full LO set of diagrams and, on the other hand, with the sole fragmentation mechanism. The non-fragmentation contributions are found to be rather large, extending up to as high transverse momenta as about \(\sim \)40 GeV. These contributions significantly change the slope of the transverse momentum spectra in the intermediate region (between 10 and 40 GeV). The accuracy of the fragmentation approximation can neither be improved with more precise calculations of the charm fragmentation function, nor by including the color octet production channels. The presence of essentially non-fragmentation contributions makes the fragmentation approximation for the considered processes below 40 GeV not trustworthy.