1 Introduction

The NA61/SHINE (SPS Heavy Ion and Neutrino Experiment) at CERN pursues a rich physics programme in various fields of physics [14]. Hadron production measurements in p + C [5, 6] and \(\pi \) + C interactions are performed which are required to improve calculations of neutrino fluxes for the T2K/J-PARC [7] and Fermilab neutrino experiments [8] as well as for simulations of cosmic-ray air showers in the Pierre Auger and KASCADE experiments [9, 10]. The programme on strong interactions investigates p + p [11], p + Pb and nucleus-nucleus collisions at SPS energies, to study the onset of deconfinement and to search for the critical point of strongly interacting matter [12, 13].

Fig. 1
figure 1

The \(\{p,\theta \}\,\)phase space of \(\pi ^{\pm }\), \(K^{\pm }\), \(K^0_S\) and protons contributing to the predicted neutrino flux at SK in the “positive” focusing configuration, and the regions covered by the previously published NA61/SHINE measurements [5, 6] and by the new results presented in this article. Note that the size of the \(\{p,\theta \}\,\)bins used in the \(K^0_S\) analysis of the 2007 data [14] is much larger compared to what is chosen for the \(K^0_S\) analysis presented here, see Sect. 4.3

Fig. 2
figure 2

The \(\{p,\theta \}\,\)phase space of \(\pi ^{\pm }\), \(K^{\pm }\), \(K^0_S\) and protons contributing to the predicted neutrino flux at SK in the “negative” focusing configuration, and the regions covered by the previously published NA61/SHINE measurements [5, 6] and by the new results presented in this article. Note that the size of the \(\{p,\theta \}\,\)bins used in the \(K^0_S\) analysis of the 2007 data [14] is much larger compared to what is chosen for the \(K^0_S\) analysis presented here, see Sect. 4.3

First measurements of \(\pi ^{\pm }\) and \(K^+\) spectra in proton–carbon interactions at 31 GeV/c were already published by NA61/SHINE  [5, 6] and used for neutrino flux predictions for the T2K experiment [1524] at J-PARC. Yields of \(K^0_S\) and \(\varLambda \) were also published [14]. All of those measurements were performed using the data collected during the NA61/SHINE pilot run in 2007. A detailed description of the experimental apparatus and analysis techniques can be found in Refs. [5, 25].

This article presents new NA61/SHINE measurements of charged pion, kaon and proton as well as of \(K^0_S\) and \(\varLambda \) spectra in p + C interactions at 31 GeV/c, based on an eight times larger dataset collected in 2009, after the detector and readout upgrades. These results are important for achieving the future T2K physics goals [26].

T2K – a long-baseline neutrino oscillation experiment from J-PARC in Tokai to Kamioka (Japan) [7] – aims to precisely measure \(\nu _\mu \rightarrow \nu _e\) appearance [15, 18, 20] and \(\nu _\mu \) disappearance [16, 19, 21]. The neutrino beam is generated by the J-PARC high intensity 30 GeV (kinetic energy) proton beam interacting in a 90 cm long graphite target to produce \(\pi \) and K mesons, which decay emitting neutrinos. Some of the forward-going hadrons, mostly protons, reinteract in the target and surrounding material. To study and constrain the reinteractions in the long target, a special set of data was taken by NA61/SHINE with a replica of the T2K target: the first study based on pilot data is presented in Ref. [27], the analysis of the high-statistics 2009 dataset is finalized [28], while the analysis of the last 2010 dataset is still on-going.

The T2K neutrino beam [17] is aimed towards a near detector complex, 280 m from the target, and towards the Super-Kamiokande (SK) far detector located 295 km away at \(2.5^\circ \) off-axis from the hadron beam. Neutrino oscillations are probed by comparing the neutrino event rates and spectra measured in SK to predictions of a Monte-Carlo (MC) simulation based on flux calculations and near detector measurements. Until the NA61/SHINE data were available, these flux calculations were based on hadron production models tuned to sparse available data, resulting in systematic uncertainties which are large and difficult to evaluate. Direct measurements of particle production rates in p + C interactions allow for more precise and reliable estimates [17]. Precise predictions of neutrino fluxes are also crucial for neutrino cross section measurements with the T2K near detector, see e.g. Refs. [2224].

For the first stage of the experiment, the T2K neutrino beamline was set up to focus positively charged hadrons (the so-called “positive” focusing), to produce a \(\nu _\mu \) enhanced beam. While charged pions generate most of the low energy neutrinos, charged kaons generate the high energy tail of the T2K beam, and contribute substantially to the intrinsic \(\nu _e\) component in the T2K beam. See Ref. [17] for more details. An anti-neutrino enhanced beam can be produced by reversing the current direction in the focusing elements of the beamline in order to focus negatively charged particles (“negative” focusing).

Positively and negatively charged pions and kaons whose daughter neutrinos pass through the SK detector constitute the kinematic region of interest, shown in Figs. 1 and 2 in the kinematic variables p and \(\theta \) – the momentum and polar angle of particles in the laboratory frame for “positive” and “negative” focusing, respectively. See Refs. [5, 6, 17] for additional information. The much higher statistics available in the 2009 data makes it possible to use finer \(\{p,\theta \}\) binning (especially for charged kaons, \(K_S^0\) and \(\varLambda \)) compared to previously published results [5, 6, 14] from the 2007 data. The improved statistics of the 2009 data also allows for the first measurements of negatively charged kaons within NA61/SHINE.

The NA61/SHINE results on hadron production are also extremely important for testing and improving existing hadron production models in an energy region which is not well constrained by measurements at present.

The paper is organized as follows: a brief description of the experimental setup, the collected data and their processing is presented in Sect. 2. Section 3 is devoted to the analysis technique used for the measurements of the inelastic and production cross sections in proton–carbon interactions at 31 GeV/c and presents the obtained results. A detailed description of the procedures used to obtain the differential inclusive spectra of hadrons is presented in Sect. 4. Results on spectra are reported in Sect. 5. A comparison of these results with the predictions of different hadron production models is discussed in Sect. 6. A summary and conclusions are given in Sect. 7.

2 The experimental setup, collected data and their processing

Fig. 3
figure 3

The schematic layout of the NA61/SHINE spectrometer (horizontal cut, not to scale). The beam and trigger detector configuration used for data taking in 2009 is shown in the inset. The chosen coordinate system is drawn on the plot: its origin lies in the middle of the VTPC-2, on the beam axis. The nominal beam direction is along the z axis. The magnetic field bends charged particle trajectories in the xz (horizontal) plane. Positively charged particles are bent towards the top of the plot. The drift direction in the TPCs is along the y (vertical) axis

The NA61/SHINE apparatus is a wide-acceptance hadron spectrometer at the CERN SPS. A detailed description of the NA61/SHINE setup is presented in Ref. [25]. Only parts relevant for the 2009 running period are briefly described here. The NA61/SHINE experiment has greatly profited from the long development of the CERN proton and ion sources, the accelerator chain, as well as the H2 beamline of the CERN North Area. Numerous components of the NA61/SHINE setup were inherited from its predecessors, in particular, the last one – the NA49 experiment [29].

The detector is built arround five Time Projection Chambers (TPCs), as shown in Fig. 3. Two Vertex TPCs (VTPC-1 and VTPC-2) are placed in the magnetic field produced by two superconducting dipole magnets and two Main-TPCs (MTPC-L and MTPC-R) are located downstream symmetrically with respect to the beamline. An additional small TPC is placed between VTPC-1 and VTPC-2, covering the very-forward region, and is referred to as the GAP TPC (GTPC). The GTPC allows to extend the kinematic coverage at forward production angles compared to the previously published results from the 2007 pilot run.

The TPCs are filled with Ar:CO\(_2\) gas mixtures in proportions 90:10 for the VTPCs and the GTPC, and 95:5 for the MTPCs.

Fig. 4
figure 4

Mass squared of positively charged particles, computed from the ToF-F measurement and the fitted track parameters, as a function of momentum. The lines show the expected mass squared values for different particles species

In the forward region, the experimental setup is complemented by a time-of-flight (ToF-F) detector array horizontally segmented into 80 scintillator bars, read out at both ends by photomultipliers [25]. Before the 2009 run, the ToF-F detector was upgraded with additional modules placed on both sides of the beam in order to extend the acceptance for the analysis described here. The intrinsic time resolution of each scintillator is about 110 ps [25]. The particle identification capabilities of the ToF-F are illustrated in Fig. 4.

For the study presented here the magnetic field of the dipole magnets was set to a bending power of 1.14 Tm. This leads to a momentum resolution \(\sigma (p)/p^2\) in the track reconstruction of about \(5 \times 10^{-3}\) (GeV/c)\(^{-1}\) for long tracks reaching the ToF-F.

Two scintillation counters, S1 and S2, provide the beam definition, together with the three veto counters V0, V1 and V1\(^p\), which define the beam upstream of the target. The S1 counter provides also the start time for all counters. The beam particles are identified by a CEDAR [30] and a threshold Cherenkov (THC) counter. The selection of beam protons (the beam trigger, \(T_{beam}\)) is then defined by the coincidence \(\text {S1}\wedge \text {S2}\wedge \overline{\text {V0}} \wedge \overline{\text {V1}}\wedge \overline{\text {V1p}}\wedge \text {CEDAR}\wedge \overline{\text {THC}}\). The interaction trigger \(T_{int} = T_{beam} \wedge \overline{\text {S4}}\) is given by a beam proton and the absence of a signal in S4, a scintillation counter, with a 2 cm diameter, placed between the VTPC-1 and VTPC-2 detectors along the beam trajectory at about 3.7 m from the target, see Fig. 3. Almost all beam protons that interact in the target do not reach S4. The interaction and beam triggers are run simultaneously. The beam trigger events were recorded with a frequency by a factor of about 10 lower than the frequency of interaction trigger events.

Fig. 5
figure 5

Specific energy loss \(\mathrm {d}E/\mathrm {d}x\) in the TPCs for positively (top) and negatively (bottom) charged particles as a function of momentum. Curves show the Bethe-Bloch (BB) parameterizations of the mean \(\mathrm {d}E/\mathrm {d}x\) calculated for different hadron species. In the case of electrons and positrons, which reach the Fermi plateau, the mean \(\mathrm {d}E/\mathrm {d}x\) is parameterized by a constant

Table 1 A summary of the NA61/SHINE data collected for the T2K physics goals

The incoming beam particle trajectories are precisely measured by a set of three beam position detectors (BPDs), placed along the beamline upstream of the target, as shown in the insert in Fig. 3. These detectors are \(4.8 \times 4.8\) cm\(^2\) proportional chambers operated with an Ar:CO\(_2\) (85:15) gas mixture. Each BPD measures the position of the beam particle in the plane transverse to the beam direction with a resolution of \({\sim }100\) \(\upmu \)m (see Ref. [25] for more details).

The same target was used in 2007 and 2009 – an isotropic graphite sample with a thickness along the beam axis of 2 cm, equivalent to about 4 % of a nuclear interaction length, \(\lambda _\text {I}\). During the data taking the target was placed 80 cm upstream of the VTPC-1.

TPC readout and data acquisition (DAQ) system upgrades were performed before the 2009 run. To utilize the new DAQ capability, a much higher intensity beam was used during the 2009 data taking compared to the 2007 running period. To cope with the high beam intensity in 2009 the passing times of individual beam particles before and after the event were recorded. These are later used in the analysis to study and remove possible pileup effects.

Reconstruction and calibration algorithms applied to the 2007 data are summarized in Ref. [5]. Similar calibration procedures were applied to the 2009 data resulting in good data quality suitable for the analysis (see e.g. Ref. [11]).

Measurements of the specific energy loss \(\mathrm {d}E/\mathrm {d}x\) of charged particles by ionisation in the TPC gas are used for their identification. The \(\mathrm {d}E/\mathrm {d}x\) of a particle is calculated as the 50 % truncated mean of the charges of the clusters (points) on the track traversing the TPCs. The calibrated \(\mathrm {d}E/\mathrm {d}x\) distributions as a function of particle momentum for positively and negatively charged particles are presented in Fig. 5. The Bethe-Bloch (BB) parametrization of the mean energy loss, scaled to the experimental data (see Sect. 4.5), is shown by the curves for positrons (electrons), pions, kaons, (anti)protons, and deuterons. The typical achieved \(\mathrm {d}E/\mathrm {d}x\) resolution is about 4 %.

Simulation of the NA61/SHINE detector response, used to correct the raw data, is described in Ref. [5] and additional details can be found in Ref. [31].

The particle spectra analysis described in Sect. 4 is based on \(4.6\times 10^6\) reconstructed events with the target inserted (I) and \(615\times 10^3\) reconstructed events with the target removed (R) collected during the 2009 data-taking period with a beam rate of about 100 kHz, much higher than in 2007 (15 kHz). Only events for which a beam track is properly reconstructed are selected for analysis.

A summary of the NA61/SHINE data collected for T2K is presented in Table 1.

3 Inelastic and production cross section measurements

This section discusses the procedures used to obtain the inelastic and production cross section for p + C interactions at 31 GeV/c and presents the results. The inelastic cross section \(\sigma _\text {inel}\) is defined as the difference between the total cross section \(\sigma _\text {tot}\) and the coherent elastic cross section \(\sigma _\text {el}\) (see e.g. [32]):

$$\begin{aligned} \sigma _\text {inel} = \sigma _\text {tot} - \sigma _\text {el}. \end{aligned}$$
(1)

Thus it comprises every reaction which occurs with desintegration of the carbon nucleus.

The production processes are defined as those in which new hadrons are produced. Thus the production cross section \(\sigma _\text {prod}\) is the difference between \(\sigma _\text {inel}\) and the quasi-elastic cross section \(\sigma _\text {qe}\) where the incoming proton scatters off an individual nucleon which, in turn, is ejected from the carbon nucleus:

$$\begin{aligned} \sigma _\text {prod} = \sigma _\text {inel} - \sigma _\text {qe}. \end{aligned}$$
(2)

Since many improvements were made to the trigger logic and a much higher beam rate was used during the 2009 data taking compared to the 2007 run (see Sect. 2) the normalization analysis of the 2009 data [33] differs from the one used for the 2007 data [5, 34].

Table 2 Number of beam trigger, N(\(T_{beam}\)), and interaction trigger, N(\(T_\text {beam} \wedge T_\text {int}\)), events before and after the event selection. Note that beam trigger events were recorded with a frequency by a factor 10 lower than interaction trigger events (see Sect. 2)

3.1 Interaction trigger cross section

The simultaneous use of the beam and interaction triggers allows a direct determination of the interaction trigger probability, \(P_\text {Tint}\):

$$\begin{aligned} P_\text {Tint} = \frac{N(T_\text {beam} \wedge T_\text {int})}{N(T_\text {beam})} , \end{aligned}$$
(3)

where \(N(T_\text {beam})\) is the number of events which satisfy the beam trigger condition and \(N(T_\text {beam} \wedge T_\text {int})\) is the number of events which satisfy both the beam trigger and interaction trigger conditions. The interaction trigger probability was measured for the target inserted, \(P_\text {Tint}^I\), and target removed, \(P_\text {Tint}^R\), configurations. Table 2 summarizes the number of beam and interaction trigger events before and after the event selection.

The interaction probability in the carbon target was calculated as follows:

$$\begin{aligned} P_\text {int} = \frac{ P_\text {Tint}^I - P_\text {Tint}^R }{ 1 - P_\text {Tint}^R }. \end{aligned}$$
(4)

\(P_\text {int}\) is used to obtain the interaction trigger cross section \(\sigma _\text {trig}\) from the formula:

$$\begin{aligned} \sigma _\text {trig} = \frac{1}{\rho ~L_\text {eff}~N_\text {A} / A} P_\text {int}, \end{aligned}$$
(5)

where \(N_\text {A}\) is Avogadro’s number and \(\rho \), A and \(L_\text {eff}\) are the density, atomic mass and effective length of the target, respectively. The effective target length accounts for the exponential beam attenuation and can be computed according to

$$\begin{aligned} L_\text {eff} = \lambda _\text {abs} \left( 1 - \exp ^{- L / \lambda _\text {abs}} \right) , \end{aligned}$$
(6)

where the absorption length is:

$$\begin{aligned} \lambda _\text {abs} = \frac{A}{ \rho ~N_\text {A}~\sigma _\text {trig} }. \end{aligned}$$
(7)

Substituting Eqs. (6) and (7) into Eq. (5), the formula for the interaction trigger cross section is obtained:

$$\begin{aligned} \sigma _\text {trig} = \frac{ A }{ L~\rho ~N_\text {A} } \, \ln \left( \frac{1}{1 - P_\text {int}} \right) . \end{aligned}$$
(8)

3.2 Event selection

An event selection was applied to improve the rejection of out-of-target interactions. The following two quality cuts based on the measurements of the beam position and the beam proton passage times were imposed:

  1. (i)

    Requirement to have both the x and y positions of the beam particle measured by all three BPDs. This selection is referred to later on as the standard BPD selection.

  2. (ii)

    Rejection of events in which one or more additional beam particles are detected in the time window \(t=[-2,0]\,\upmu \)s before the triggering beam particle. This avoids pileup in the BPDs due the long signal shaping time.

After applying these cuts the amount of out-of-target interactions decreased by about 45 % (see Table 2).

3.3 Study of systematic uncertainty on \(\sigma _\text {trig}\)

The first component of systematic uncertainty was evaluated by varying the event selection criteria described in the previous subsection. It amounts to 1.0 mb.

Elastic scattering of the beam along the beamline was considered as a systematic bias. However, the fraction of events for which the beam extrapolation falls outside of the carbon target and that pass all the event selections, was evaluated and found to be negligible.

Fig. 6
figure 6

Distribution of S4 ADC counts for the beam trigger \(T_\text {beam}\). Red histogram corresponds to the interaction trigger subsample \(T_\text {beam} \wedge T_\text {int}\)

Fig. 7
figure 7

The interaction trigger probability as a function of the run number for target inserted (a) and target removed (b) runs. The solid lines correspond to the measured mean values of the interaction trigger probabilities presented in Sect. 3.4. Points far away from the measured values correspond to the runs with low number of events

Another source of potential systematic uncertainty relates to pileup in the trigger system. The trigger logic has a time resolution of about 9 ns. If a pileup particle arrives within this time window it can not be distinguished from the one which caused the trigger. The measured \(P_\text {Tint}\) and corrected unbiased \(P_\text {Tint}^\text {corr}\) interaction trigger probabilities are related as:

$$\begin{aligned} P_\text {Tint}^\text {corr} = \frac{ P_\text {Tint} }{ 1 - P_\text {2beam} } \ , \end{aligned}$$
(9)

where \(P_\text {2beam}\) is the probability that a pile-up beam is within the trigger logic time window. This probability was found to be \((0.18 \pm 0.07)\) %, thus the correction to \(\sigma _\text {trig}\) is negligible and no corresponding systematic uncertainty was assigned.

The beam composition at 31 GeV/c, measured with the CEDAR and the THC, is 84 % pions, 14 % protons and about 2 % kaons. The proton component of the beam was selected by requiring respectively the coincidence and the anti-coincidence of the CEDAR and THC counters (see Sect. 2). In order to check the purity of the identified proton beam, the beam was deflected into the TPCs with the maximum magnetic field (9 Tm) and its composition was determined using the energy loss measurements in the TPCs. The fraction of misidentified particles in the proton beam was found to be lower than 0.2 % and was considered negligible.

The efficiency of the interaction trigger was estimated using the ADC information from the S4 scintillator counter. The ADC signal of S4 can be distorted if pileup beam particles are close in time to the triggering beam. To avoid this effect all the events with at least one pileup beam particle within \(\pm 4\,\upmu \)s around the triggering beam particle were rejected. In Fig. 6 the distribution of the ADC signal is shown for a sample of events tagged by the beam trigger \(T_\text {beam}\). If a beam proton does not interact in the target, and thus hits S4, the ADC counts will be larger than 70. If both the beam and interaction trigger conditions are satisfied \(T_\text {beam} \wedge T_\text {int}\), the ADC signal corresponds to the pedestal and will be distributed between 56 and 70 counts (\(\varDelta _{adc}\)). The efficiency of the S4 counter as a part of the \(T_\text {int}\) trigger is defined as the ratio between the number of ADC counts in the \(\varDelta _\text {adc}\) interval for \(T_\text {beam} \wedge T_\text {int}\) events and the total number of ADC counts in the \(\varDelta _\text {adc}\) interval for \(T_\text {beam}\) events. The measured ratio is \((99.8 \pm 0.2)~\%\). This estimate of the S4 efficiency was cross-checked using the GTPC. Beam track segments reconstructed in the GTPC were extrapolated to the z position of S4. The fraction of the number of extrapolations hitting S4 and also satisfying \(T_\text {int}\) provides another estimate of the efficiency of S4. Both results were found to be in agreement. Thus a possible bias caused by inefficiency of S4 is considered negligible.

3.4 Results on \(\sigma _\text {trig}\)

The interaction trigger probabilities for both the target inserted and target removed samples are time independent, as shown in Fig. 7. The mean values of trigger probabilities were found to be \(P_\text {Tint}^\text {I} = (6.20 \pm 0.04)~\%\) and \(P_\text {Tint}^\text {R} = (0.76 \pm 0.02)~ \%\). Insertion into the Eq. (4) gives the interaction trigger probability \(P_\text {int} = (5.48 \pm 0.05)~ \%\). Finally, the corresponding trigger cross section is:

$$\begin{aligned} \sigma _\text {trig} = 305.7 \pm 2.7 (\text {stat}) \pm 1.0 (\text {det}) \,\text {mb} , \end{aligned}$$
(10)

where “stat” is the statistical uncertainty and “det” is the detector systematic uncertainty. This measurement of \(\sigma _\text {trig}\) is more precise than the result obtained with the 2007 data: \(298.1 \pm 1.9 (\text {stat}) \pm 7.3 (\text {det})\) mb [5]. The detector systematic uncertainty of 2009 is significantly smaller. It is a consequence of the fact that in 2009 the beam triggers were recorded by DAQ simultaneously with physics triggers. Thus the same selection cuts (see Sect. 3.2) could be applied to all triggers. In contrast, during the 2007 run the beam information was recorded by scalers which were not read out by the main DAQ. As a consequence, event-by-event quality selection was not possible [34]. Instead, special runs were taken with the beam trigger to estimate biases. It had to be assumed that the effect of the selection was stable over the whole data taking period. On the other hand, the statistical uncertainty on \(\sigma _\text {trig}\) from the 2009 data (see Eq. (10)) is slightly larger because of the smaller number of recorded \(T_\text {beam}\) triggers.

The fraction of out-of-target interaction background in the sample of the target inserted events is

$$\begin{aligned} \varepsilon = \frac{P_\text {Tint}^\text {R}}{P_\text {Tint}^\text {I}} = (12.3 \pm 0.4)~\% . \end{aligned}$$
(11)

The uncertainty of \(\varepsilon \) is larger for the 2009 than the 2007 data because of a larger statistical uncertainty of \(P_\text {Tint}^\text {R}\).

3.5 Results on inelastic and production cross section

Using Eqs. (1) and (2) one can calculate the inelastic and production cross sections by representing them in the following way:

$$\begin{aligned}&\sigma _\text {inel} = \left( \sigma _\text {trig} - \sigma ^\text {f}_\text {el} \right) \frac{1}{f_\text {inel}}\end{aligned}$$
(12)
$$\begin{aligned}&\sigma _\text {prod} = \left( \sigma _\text {trig} - \sigma ^\text {f}_\text {el} - \sigma ^\text {f}_\text {qe} \right) \frac{1}{f_\text {prod}} ,\end{aligned}$$
(13)
$$\begin{aligned}&\sigma ^\text {f}_\text {el}= \sigma _\text {el} f_\text {el} ,\end{aligned}$$
(14)
$$\begin{aligned}&\sigma ^\text {f}_\text {qe} = \sigma _\text {qe} f_\text {qe}, \end{aligned}$$
(15)

where \(f_\text {el}\), \(f_\text {qe}\), \(f_\text {inel}\) and \(f_\text {prod}\) are the fractions of elastic, quasi-elastic, inelastic and production events, respectively, in which all charged particles miss the S4 counter and which are therefore accepted as interactions by the \(T_\text {int}\) trigger. The values of \(\sigma ^\text {f}_\text {el}\) and \(\sigma ^\text {f}_\text {qe}\) are the contributions of elastic and quasi-elastic interactions to \(\sigma _\text {trig}\) which have to be subtracted to obtain \(\sigma _\text {inel}\) and \(\sigma _\text {prod}\). The values of \(f_\text {inel}\) and \(f_\text {prod}\) depend upon the efficiency of \(T_\text {int}\) for selecting inelastic and production events. In order to take into account the correlations between \(\sigma _\text {el}\), \(f_\text {el}\) and \(\sigma _\text {qel}\), \(f_\text {qel}\), estimates of systematic uncertainties are based on those for \(\sigma ^\text {f}_\text {el}\) and \(\sigma ^\text {f}_\text {qe}\).

This method differs from the one used in the analysis of the 2007 data [5, 34]. Here the simulation (see below) is basically only required to extract the magnitudes of the fractions f. For the absolute values of \(\sigma _\text {inel}\) and \(\sigma _\text {prod}\) one can use the results of experimental measurements, if available. In addition, in the approach used for the 2007 data the simulated values of inelastic and production cross sections were part of the corrections of \(\sigma _\text {inel}\) and \(\sigma _\text {prod}\). This is not the case for the method applied in the present analysis.

The corrections to \(\sigma _\text {trig}\) as well as the corresponding uncertainties were estimated with GEANT4.9.5 [39, 40] using the FTF_BIC physics list (see Sect. 6 for more detailed comparisons of the spectra measurements reported in this paper with the GEANT4 physics lists), except for the elastic cross section, for which large uncertainties were found in the GEANT4 simulation.Footnote 1 Since the total elastic cross section decreases in good approximation linearly with proton beam momentum in the range 20–70 GeV/c, the measurements performed by Bellettini et al. at 21.5 GeV/c [35] and Schiz et al. at 70 GeV/c [41] were used to estimate the elastic cross section at 31 GeV/c beam momentum. The elastic cross section measured by Bellettini et al. is

$$\begin{aligned} \sigma _\text {el} (21.5~\text {GeV/}c)&= 81.00 \pm 5.00 \text {(sys)} \,\text {mb} \end{aligned}$$

Schiz et al. reported the measured differential cross section \(\frac{d\sigma }{dt}\) as a function of the momentum transfer t with a parametrization. The total elastic cross section can be obtained by integrating the differential cross section over the whole range of momentum transfer and is equal to:

$$\begin{aligned} \sigma _\text {el} (70~\text {GeV/}c)&= 76.6 \pm 6.9 \text {(sys)} \,\text {mb} \end{aligned}$$
Fig. 8
figure 8

A comparison of the measured inelastic (left) and production (right) cross sections at different momenta with previously published results. Bellettini et al. (green full circle) [35], Denisov et al. (grey full triangles) [36] and MIPP (black full diamond) [37] measured the inelastic cross section while Carroll et al. (pink full inverted triangle) [38] result corresponds to the production cross section. Inelastic cross section measurements performed by Denisov et al. with the hodoscope method are shown as well (open inverted triangles). The NA61/SHINE measurements with 2007 (blue open square) and 2009 (red full square) data samples are shown

The corresponding elastic cross section at the NA61/SHINE momentum was obtained by linear interpolation between these two measurements:

$$\begin{aligned} \sigma _\text {el} (30.92~\text {GeV/}c)&= 80.1 \pm 5.4 \text {(sys)} \,\text {mb} \end{aligned}$$

The \(\pm 1 \sigma \) range covers the interval \(\left[ 74.8, 85.5 \right] \) mb. The deviations from the extremes of the interval and the nominal value of \(\sigma _{el}\) estimated with GEANT4 are taken into account as a model systematic uncertainty.

The values for the elastic and quasi-elastic cross section, estimated with GEANT4, are (see Ref. [42] for more details):

$$\begin{aligned} \sigma ^\text {f}_\text {el}&= 50.4 \, ^{+0.6}_{-0.5} \text {(det)} \, ^{+4.9}_{-2.0} \text {(mod)} \,\text {mb}\\ \sigma ^\text {f}_\text {qe}&= 26.2 \, ^{+0.4}_{-0.3} \text {(det)} \, ^{+3.9}_{-0.0} \text {(mod)} \,\text {mb} \end{aligned}$$

The fractions estimated to be accepted by the interaction trigger are:

$$\begin{aligned}&f_\text {prod} = 0.993 \pm 0.000 \text {(det)} \, ^{+0.001}_{-0.012} \text {(mod)}\\&f_\text {inel} = 0.988 ^{+0.001}_{-0.008} \text {(det)} \, ^{+0.000}_{-0.008} \text {(mod)} \end{aligned}$$

where “det” is the detector systematic uncertainty obtained by performing the simulation for different positions and sizes of S4, taking also into account the beam divergence measured from the data. The uncertainty “mod” resulting from the choice of physics model was calculated as the largest difference between the contributions estimated for \(\sigma ^\text {f}_\text {qe}\) with different GEANT4 physics models (FTFP_BERT, QBBC and QGSP_BERT, as well as FTF_BIC physics list) and from measured data for \(\sigma ^\text {f}_\text {el}\) as described above.

Inserting these values of the elastic and quasi-elastic cross sections, and of the fractions accepted by the trigger into Eqs. (12) and (13), one obtains the final results:

$$\begin{aligned}&\sigma _\text {inel} = 258.4 \pm 2.8 \text {(stat)} \, \pm 1.2 \text {(det)} \, ^{+5.0}_{-2.9} \text {(mod)} \,\text {mb}, \end{aligned}$$
(16)
$$\begin{aligned}&\sigma _\text {prod} = 230.7 \pm 2.8 \text {(stat)} \, \pm 1.2 \text {(det)} \, ^{+6.3}_{-3.5} \text {(mod)} \,\text {mb}, \end{aligned}$$
(17)

where “stat” is the statistical uncertainty, “det” is the total detector systematic uncertainty and “mod” is the uncertainty caused by the choice of physics model. The total uncertainty of \(\sigma _\text {prod}\) is \(^{+7.0}_{-4.6}\) mb, which is significantly smaller than that of the NA61/SHINE result obtained from the 2007 data. The dominant uncertainty comes from the choice of physics model used to derive the production cross section from the trigger cross section.

The new NA61/SHINE results on inelastic and production cross section agree, in general, with the previously published measurements as shown in Fig. 8. A possible tension with measurements by Denisov et al. [36], which are assigned a rather small systematic uncertainty of 1 %, could be due to different experimental techniques used to extract \(\sigma _\text {inel}\). As discussed in Ref. [32], various approaches to define and measure \(\sigma _\text {inel}\) could lead to differences of up to 8 mb for proton–carbon interactions.

4 Spectra analysis techniques and uncertainties

This section presents analysis techniques developed for the measurements of the differential inclusive spectra of hadrons. Details are shown on data selection and binning, on particle identification (PID) methods as well as on the calculation of correction factors and the estimation of systematic uncertainties.

The data analysis procedure consists of the following steps:

  1. (i)

    application of event and track selection criteria,

  2. (ii)

    determination of spectra of hadrons using the selected events and tracks,

  3. (iii)

    evaluation of corrections to the spectra based on experimental data and simulations,

  4. (iv)

    calculation of the corrected spectra.

Corrections for the following biases were evaluated and applied:

  1. (i)

    geometrical acceptance,

  2. (ii)

    reconstruction efficiency,

  3. (iii)

    contribution of off-target interactions,

  4. (iv)

    contribution of other (misidentified) particles,

  5. (v)

    feed-down from decays of neutral strange particles,

  6. (vi)

    analysis-specific effects (e.g. ToF-F efficiency, PID, \(K^-\) and \(\bar{p}\) contamination, etc.).

All these steps are described in the following subsections for each of the employed identification technique separately.

The NA61/SHINE measurements refer to hadrons (denoted as primary hadrons) produced in p + C interactions at 31 GeV/c and in the electromagnetic decays of produced hadrons (e.g. \(\varLambda \) from \(\Sigma ^0\) decay). Contributions from products of weak decays and secondary interactions are corrected for.

4.1 Event and track selection

Events recorded with the “interaction” (\(T_\text {int}\)) trigger were required to have a well-reconstructed incoming beam trajectory (the standard BPD selection).

Several criteria were applied to select well-measured tracks in the TPCs in order to ensure high reconstruction efficiency as well as to reduce the contamination of tracks from secondary interactions:

  1. (i)

    track momentum fit at the interaction vertex should have converged,

  2. (ii)

    the total number of reconstructed points on the track should be greater than \(N_\text {point}\),

  3. (iii)

    at least \(N_\text {field}\) reconstructed points in the three TPCs were used for momentum measurement (VTPC-1, VTPC-2 and GTPC),

  4. (iv)

    distance of closest approach of the fitted track to the interaction point (impact parameter) smaller than \(D_x\) (\(D_y\)) in the horizontal (vertical) plane.

A summary of cut values used with the different identification techniques described in the following sections, is given in Table 3.

Table 3 A summary of cuts used with different identification techniques

The adopted \(\{p,\theta \}\,\)binning scheme is chosen based on the available statistics and the kinematic phase-space of interest for T2K. The highest \(\theta \) limit is analysis-dependent. The polar angular region down to \(\theta =0\) is covered.

4.2 Derivation of spectra

The raw number of hadron candidates has to be corrected for various effects such as the loss of particles due to selection cuts, reconstruction inefficiencies and acceptance. In each of the \(\{p,\theta \}\,\)bins, the correction factor was computed from a GEANT3 based detector simulation using the Venus4.12 model as primary event generator and applying the same event and track selections as for the data (for description see Ref. [5]):

$$\begin{aligned} C_h(p, \theta ) = \left( \frac{\varDelta n_h^\text {rec,fit}}{\varDelta n_h^\text {sim,gen}}\right) _\text {MC} \Big / \left( \frac{N^\text {acc}}{N^\text {gen}}\right) _\text {MC} , \end{aligned}$$
(18)

The numerator corrects for the loss of candidates of particle type h, where \(\varDelta n_h^\text {sim,gen}\) is the number of true h particles generated in a specific \(\{p,\theta \}\,\)bin and \(\varDelta n_h^\text {rec,fit}\) is the number of h candidates extracted from the reconstructed tracks in the simulation. The denominator accounts for the events lost due to the trigger bias with \(N^\text {gen}\) the number of generated and \(N^\text {acc}\) the number of accepted inelastic events. The corrected number of hadron candidates \(\varDelta n_h^\text {corr}\) was then obtained from the raw number \(\varDelta n_h^\text {raw}\) by:

$$\begin{aligned} \varDelta n_h^\text {corr}(p, \theta ) = \frac{\varDelta n_h^\text {raw}(p, \theta )}{C_h(p, \theta )} . \end{aligned}$$
(19)

The procedures presented in Sects. 4.34.6 below were used to analyze events with the carbon target inserted (I) as well as with the carbon target removed (R). The corresponding corrected numbers of particles in \(\{p,\theta \}\,\)bins are denoted as \(\varDelta n^\text {I}_h\) and \(\varDelta n^\text {R}_h\), where h stands for the particle type (e.g. \(\pi ^-\)). Note that the same event and track selection criteria as well as the same corrections discussed in the previous sections were used in the analysis of events with the target inserted and removed. The latter events allow to correct the measurements for the contribution of out-of-target interactions.

The double differential inclusive cross section was calculated from the formula:

$$\begin{aligned} \frac{\mathrm {d}^2 \sigma _h}{\mathrm {d}p \mathrm {d}\theta } = \frac{\sigma _\text {trig}}{1-\varepsilon } \left( \frac{1}{N^\text {I}} \frac{ \varDelta n^\text {I}_h }{ \varDelta p \varDelta \theta } - \frac{\varepsilon }{N^\text {R}} \frac{ \varDelta n^\text {R}_h }{ \varDelta p \varDelta \theta }\right) , \end{aligned}$$
(20)

where

  1. (i)

    \(\sigma _\text {trig} = (305.7 \pm 2.7 \pm 1.0)\) mb is the “trigger” cross section as given in Eq. (10) of Sect. 3.4,

  2. (ii)

    \(N^\text {I}\) and \(N^\text {R}\) are the numbers of events with the target inserted and removed, respectively, selected for the analysis (see Sect. 4.1),

  3. (iii)

    \(\varDelta p\) (\(\varDelta \theta \)) is the bin size in momentum (polar angle), and

  4. (iv)

    \(\varepsilon = 0.123 \pm 0.004\) is the ratio of the interaction probabilities for operation with the target removed and inserted as given in Eq. (11).

The overall uncertainty on the inclusive cross section due to the normalization procedure amounts to 1 %.

The particle spectra normalized to the mean particle multiplicity in production interactions was calculated as

$$\begin{aligned} \frac{\mathrm {d}^2 n_{h}}{\mathrm {d}p \mathrm {d}\theta } = \frac{1}{\sigma _\text {prod}} \, \frac{\mathrm {d}^2 \sigma _h}{\mathrm {d}p \mathrm {d}\theta }, \end{aligned}$$
(21)

where \(\sigma _\text {prod}\) is the cross section for production processes given in Eq. (17).

The normalization uncertainty on the multiplicity spectra is \(^{+2.8~\%}_{-1.6~\%}\).

The statistical uncertainty of the measured spectra receives contributions from the finite statistics of both the data and the simulated events used to obtain the correction factors. The dominant contribution is the uncertainty of the data which was calculated assuming a Poisson probability distribution for the number of entries in a \(\{p,\theta \}\,\)bin. The simulation statistics was about ten times higher than the data statistics, thus the uncertainty of the corrections is neglected for all bins.

The systematic uncertainty of the measured spectra was calculated taking into account various contributions discussed in detail in the following sections separately for each identification technique.

4.3 \(V^0\) analysis

Understanding the neutral strange particle \(V^0\) (here \(V^0\) stands for \(K^0_S\) and \(\varLambda \)) production in p + C interactions at 31 GeV/c is of interest for T2K for two reasons. First, it allows to decrease the systematic uncertainties on measurements of charged pions and protons, since a data-based feed-down correction can be used. Second, measurements of \(K^0_S\) production improve the knowledge of the \(\nu _e\) and \(\bar{\nu }_e\) fluxes coming from the three-body \(K^0_L \rightarrow \pi ^0 e^{\pm } \nu _e (\bar{\nu }_e)\) decays.

The following \(V^0\) decay channels were studied:

$$\begin{aligned} K^0_S&\rightarrow \pi ^+ + \pi ^- \quad \text {B.R.} = (69.20 \pm 0.05)~\%,\end{aligned}$$
(22)
$$\begin{aligned} \varLambda&\rightarrow p + \pi ^- \quad \text {B.R.} = (63.9 \pm 0.5)~\%. \end{aligned}$$
(23)

Fits to the invariant mass distributions of \(V^0\) candidates were used to extract measured numbers of \(K^0_S\) and \(\varLambda \) decays in momentum and polar angle bins. These numbers were corrected for acceptance and other experimental biases using simulated events.

Fig. 9
figure 9

Distributions of the \(V^0\) candidates in the Podolanski–Armenteros variables [43] after the event and topological cuts (left) and after the additional kinematic cuts (\(K^0_S\): middle, \(\varLambda \): right). Ellipses showing the expected positions of \(K^0_S\) and \(\varLambda \) are also drawn

Fig. 10
figure 10

The measured proper decay length (\(c\tau \)) distributions for \(K^0_S\) (left) and \(\varLambda \) (right)

4.3.1 Event and track selection for the \(V^0\) analysis

The track and \(V^0\) candidate selections can be separated into three categories: event and track quality selections, topological selections aimed at finding \(V^0\)-type candidates, and, finally, kinematic selections to separate \(K^0_S\) and \(\varLambda \) candidates.

The standard quality selections for events and tracks were applied (see Sect. 4.1).

The \(V^0\) topological criteria require that a fitted secondary vertex, located downstream of the interaction, is built out of two tracks with opposite electric charges. Moreover, the distance of closest approach between the daughter tracks and the secondary vertex had to be smaller than 0.5 cm. The same quality and topological criteria were applied for selecting \(\varLambda \) and \(K^0_S\) candidates.

In order to extract the \(K^0_S\) candidates, the following kinematic cuts were applied to the selected \(V^0\) candidates:

  1. (i)

    The transverse momentum of the daughter tracks relative to the \(V^0\) momentum must be greater than 0.03 GeV/c in order to remove converted photons,

  2. (ii)

    The cosine of the angle \(\theta ^*\) between the momentum of the \(V^0\) candidate and the momentum of the daughter in the center of mass must be smaller than 0.76. This cut allows the rejection of most of the \(\varLambda \) candidates for which the distribution of \(\cos \theta ^*\) computed under the \(K^0_S\) hypothesis is concentrated in the region \(\cos \theta ^* >\) 0.8,

  3. (iii)

    The candidates must have an invariant mass for the \(K^0_S\) hypothesis within the range of [0.4, 0.65] GeV/\(c^2\),

  4. (iv)

    The reconstructed proper decay length should be greater than a quarter of the mean proper decay length [44] of \(K^0_S\) mesons (\(c\tau > 0.67\) cm).

The kinematic cuts used to extract the \(\varLambda \) candidates are the following:

  1. (i)

    Transverse momentum of the daughter tracks must be greater than 0.03 GeV/c,

  2. (ii)

    The candidate must have an invariant mass for the \(\varLambda \) hypothesis within the range of [1.09, 1.215] GeV/\(c^2\),

  3. (iii)

    The reconstructed proper decay length should be greater than a quarter of the mean proper decay length [44] of \(\varLambda \) hyperons (\(c\tau > 1.97\) cm).

Figure 9 shows the Podolanski–Armenteros [43] plots once the event and topological selections, as well as all \(K^0_S\) and \(\varLambda \) kinematic cuts have been applied. One can see that this set of cuts allows an efficient selection of the desired \(V^0\) candidates.

The measured proper decay length distributions corrected for all experimental biasesFootnote 2 are shown in Fig. 10 for both \(K^0_S\) and \(\varLambda \). The fitted mean proper decay lengths are in reasonable agreement with the PDG values [44].

Fig. 11
figure 11

(Left) The \(\{p,\theta \}\,\)phase space of interest for T2K is shown by the shaded area. The binning used for the \(K^0_S\) analysis is indicated by the outlined boxes. (Right) An example of the \(K^0_S\) invariant mass distribution in a selected \(\{p,\theta \}\,\)bin with the fit result overlaid

Fig. 12
figure 12

(Left) The \(\{p,\theta \}\,\)phase space of interest for T2K is shown by the shaded area. The binning used for the \(\varLambda \) analysis is indicated by the outlined boxes. (Right) An example of the \(\varLambda \) invariant mass distribution in a selected \(\{p,\theta \}\,\)bin with the fit result overlaid

4.3.2 Binning, fitting, corrections

The selected \(V^0\) candidates are binned in \(\{p,\theta \}\,\)phase space. Due to detector acceptance and reconstruction efficiency, the momentum range of reconstructed charged particles starts from 0.4 GeV/c. For the \(K^0_S\) analysis, 28 bins are used, whereas the \(\varLambda \) candidates are divided into 39 bins. The choice of the binning scheme is driven by the available statistics.

A fit of the invariant mass distribution was performed in each of these \(\{p,\theta \}\,\)bins. The shape of the \(K^0_S\) and \(\varLambda \) signal was parametrised by a sum of two Gaussians

$$\begin{aligned} L_{sig}(m)= & {} f_{sig}G_W(m; \sigma _W, m_{PDG}) \nonumber \\&+ (1-f_{sig})G_N(m; \sigma _N, m_{PDG}) \end{aligned}$$
(24)

where m stands for the reconstructed invariant mass and subscripts W and N refer to the wide and narrow Gaussian, respectively. The parameter \(f_{sig}\) describes the fraction contributed by each Gaussian. In order to reduce the statistical uncertainty on the fitted signal, which is closely related to the number of free parameters, \(f_{sig}\) and \(\sigma _W\) were fixed. Also, the central position of the Gaussians was fixed to the well-known PDG value, \(m_{PDG}\).

For the \(K^0_S\) analysis the background shape was modeled by an exponential function, while a 3rd order Chebyshev function was used in the \(\varLambda \) analysis.

The \(\{p,\theta \}\,\)binning scheme and an example of a fit in one \(\{p,\theta \}\,\)bin is presented in Figs. 11 and 12 for \(K^0_S\) and \(\varLambda \), respectively.

The same analysis procedure was applied to simulated events, for which the Venus4.12  [45, 46] model was used as the primary event generator. The fitted numbers of \(K^0_S\) and \(\varLambda \) in the data were then corrected as described in Sect. 4.2 taking also into account \(V^0\) decay channels that cannot be reconstructed with the detector.

The number of \(V^0\) candidates from interactions in the material surrounding the target was estimated by analysing the special runs taken with the target removed. After applying the same selections as used for the target inserted data a negligible number of candidates remained.

Spectra were then derived from the corrected number of fitted \(K^0_S\) and \(\varLambda \) using the standard NA61/SHINE procedure (Eqs. 1921).

Fig. 13
figure 13

Example of a two-dimensional fit to the \(m^2 - dE/dx\) distribution of positively charged particles (left). The \(m^2\) (middle) and dE / dx (right) projections are superimposed with the results of the fitted functions. Distributions correspond to the \(\{p,\theta \}\,\)bin: \(4.4 < p < 4.8\) GeV/c and \(20<\theta <40\) mrad

Fig. 14
figure 14

An example of the dependence of the feed-down correction on momentum for \(\pi ^-\) mesons (left) and protons (right) for the [20,40] mrad angular interval. Contributions due to \(\varLambda \) and \(K^0_S\) decays are shown separately

Fig. 15
figure 15

The effect of the \(\varLambda \) re-weighting. The ratio of multiplicities calculated using the Venus4.12 model without modification and with the \(\varLambda \) spectra reweighted to reproduce the NA61/SHINE measurements. Graphs are shown as a function of momentum for \(\pi ^-\) mesons (left) and protons (right)

4.3.3 Systematic uncertainties of the \(V^0\) analysis

The contributions from five sources of systematic uncertainties associated with this analysis were studied adopting the same procedure in all cases. Namely, the relative difference between the standard analysis and the one in which the respective source was varied was taken as an estimate of the systematic uncertainty. The following contributions were considered:

  1. (i)

    Correction factors: The dependence of the correction factors on the primary event generator was tested by performing two other simulations with the same statistics, based on Fluka2011  [4749] and Epos1.99  [50] as generators for primary interactions. The systematic uncertainty associated with this source is from 7 to 10 % for both \(K^0_S\) and \(\varLambda \).

  2. (ii)

    Fitting procedure: Several alternative fitting functions were tested on the invariant mass distributions: a bifurcated Gaussian for the peak signal and a 3rd order Chebyshev polynomial or a 4th order polynomial function for the background for \(K^0_S\) and \(\varLambda \), respectively. The contribution to the systematic uncertainty associated with this source is up to 12 % (7 %) for \(K^0_S\) (\(\varLambda \)).

  3. (iii)

    Reconstruction algorithm: Two different primary interaction vertex reconstruction algorithms were used, either fitting all three coordinates or fixing the z-coordinate to the survey position. The uncertainty connected to the algorithm is from 5 to 8 % for both analyses.

  4. (iv)

    Quality cuts: All quality cuts were varied independently within a range given in Ref. [42] and the uncertainty connected to this source was found to reach up to 10 % (5 %) for \(K^0_S\) (\(\varLambda \)).

  5. (v)

    Kinematic cuts: As for the previous source of uncertainty, all cuts were varied and the resulting uncertainty is up to 10 % (7 %) for \(K^0_S\) (\(\varLambda \)).

The uncertainty estimates of items (iv) and (v) are strongly correlated since the same datasets and analysis techniques were used. Hence, only the maximum deviation due to these cut variations was taken into account. The total systematic error was taken as the sum of all contributions added in quadrature.

Comparison of the final corrected \(K^0_S\) and \(\varLambda \) spectra to the 2007 measurements [14] shows that the results are compatible within the attributed uncertainties.

Tables 9 and 10 present the final double differential cross section, \(d^2 \sigma /(d p d \theta )\), for \(K^0_S\) and \(\varLambda \) production in p + C interactions at 31 GeV/c, with statistical and systematic uncertainties. Figures 32 and 33 show the spectra of \(K^0_S\) and \(\varLambda \) yields.

4.4 The tof-dE / dx analysis method

Depending on the momentum range and charged particle species different particle identification (PID) techniques need to be applied. The method described in this section utilizes the measurements of the specific energy loss dE / dx in the TPCs and the measurements of the time-of-flight (tof) by the time-of-flight ToF-F detector. The energy loss information can be used in the full momentum range of NA61/SHINE. The ToF-F detector, which is installed about 13 m downstream of the target (see Fig. 3), contributes to particle identification up to 8 GeV/c. The distribution of \(m^2\), the square of the mass calculated from the ToF-F measurement and the fitted track parameters, is shown for positively charged particles as a function of momentum in Fig. 4.

Simultaneous use of these two sources of PID information is particularly important in the momentum range from 1 to 4 GeV/c where the \(\mathrm {d}E/\mathrm {d}x\) bands of charged hadrons cross over (see Fig. 5). Thus the \(\mathrm {d}E/\mathrm {d}x\) measurement alone would not be enough to identify particles with sufficient precision and tof is especially important to resolve this ambiguity.

Fig. 16
figure 16

Breakdown of systematic uncertainties of \(\pi ^+\) spectra from the tof-\(\mathrm {d}E/\mathrm {d}x\) analysis, presented as a function of momentum for the [20,40] mrad angular interval

Fig. 17
figure 17

Breakdown of systematic uncertainties of \(\pi ^-\) spectra from the tof-\(\mathrm {d}E/\mathrm {d}x\) analysis, presented as a function of momentum for the [20,40] mrad angular interval

Fig. 18
figure 18

The \(\mathrm {d}E/\mathrm {d}x\) distributions for positively (top) and negatively (bottom) charged particles in the momentum interval [0.8,0.9] GeV/c and angular bin [180,240] mrad compared with the distributions calculated using the fitted relative abundances

Fig. 19
figure 19

Breakdown of systematic uncertainties of \(\pi ^+\) spectra from the \(\mathrm {d}E/\mathrm {d}x\) analysis, presented as a function of momentum for the [20,40] mrad angular interval

Fig. 20
figure 20

Breakdown of systematic uncertainties of \(\pi ^-\) spectra from the \(\mathrm {d}E/\mathrm {d}x\) analysis, presented as a function of momentum for the [20,40] mrad angular interval

Fig. 21
figure 21

Breakdown of \(\pi ^-\) systematic uncertainties for the \(h^-\) analysis, presented as a function of momentum for the [20,40] mrad angular interval as an example

The combined tof-\(\mathrm {d}E/\mathrm {d}x\) analysis technique was employed to determine yields of \(\pi ^{\pm }\), K\(^{\pm }\) and protons in the momentum region above 1 GeV/c. For lower momenta the \(\mathrm {d}E/\mathrm {d}x\)-only approach (see Sect. 4.5 below) provides better statistical precision. The spectra of \(\pi ^-\) can also be obtained precisely with the so-called \(h^-\) analysis technique (see Sect. 4.6 below).

Fig. 22
figure 22

Laboratory momentum distributions of \(\pi ^+\) produced in p + C interactions at 31 GeV/c production processes in different polar angle intervals (\(\theta \)). Error bars indicate the statistical and systematic uncertainties added in quadrature. The overall uncertainty due to the normalization procedure is not shown. Results obtained with two different analysis techniques are presented: open blue triangles are the dE / dx analysis and full black circles are the tof-dE / dx analysis

Fig. 23
figure 23

Laboratory momentum distributions of \(\pi ^-\) produced in p + C interactions at 31 GeV/c production processes in different polar angle intervals (\(\theta \)). Error bars indicate the the statistical and systematic uncertainties added in quadrature. The overall uncertainty due to the normalization procedure is not shown. Results obtained with three different analysis techniques are presented: open blue triangles are the dE / dx analysis, open red circles are the \(h^-\) analysis and full black circles are the tof-dE / dx analysis

The standard event and track selection procedures common to all charged hadron analyses are described in Sect. 4.1. The following additional cuts were applied in the tof-\(\mathrm {d}E/\mathrm {d}x\) analysis:

  1. (i)

    exclusion of kinematic regions where the spectrometer acceptance changes rapidly and a small mismatch in the simulation can have a large effect on the corrected hadron spectra. Basically, these are regions where the reconstruction capability is limited by the ToF-F acceptance, by the magnet aperture or by the presence of uninstrumented regions in the VTPCs. To exclude these regions a cut on the hadron azimuthal angle \(\phi \) was applied. Since the spectrometer acceptance drops quickly with increase of the polar angle \(\theta \) of the particle, typical cut intervals for \(\phi \) at low and high \(\theta \) were \(\pm 60^\circ \) and \(\pm 6^\circ \), respectively.

  2. (ii)

    the track must have an associated ToF-F hit. Since particles can decay or interact before reaching the detector, the z position of the last reconstructed TPC cluster of a track should be reasonably close to the ToF-F wall, thus a cut \(z_\text {last}>6\) m was applied to all tracks. This requirement is especially important for \(K^{\pm }\) (\(c\tau \approx 3.7\) m) many of which decay before reaching ToF-F. Pions have a higher chance to reach the ToF-F (\(c\tau \approx 7.8\) m) also due to their lower mass and thus larger Lorentz factor. Moreover a muon produced in the decay of a pion follows the parent pion trajectory. Such a topology is in general reconstructed as a single track.

Having ToF-F slabs oriented vertically, the position of a hit is measured only in the x direction. The precision is determined by the width of the scintillator slab producing the signal. A ToF-F hit is associated with a track if the trajectory can be extrapolated to the pertaining slab.

Another important reason for using the ToF-F information is the time tag which it provides and which ensures that all associated tracks originated from the triggered event. The ToF-F time resolution of 110 ps [25] guarantees an unambiguous discrimination against tracks from out-of-time events for the used beam rate of 100 kHz (one beam particle on average each \(10\, \upmu \)s).

The tof-dE / dx analysis was performed separately for positively and negatively charged particles following the procedure described in detail in Refs. [5, 6, 51]. A two-dimensional histogram of \(m^2\) versus \(\mathrm {d}E/\mathrm {d}x\) was filled for every \(\{p,\theta \}\,\)bin. An example of such a distribution is shown in Fig. 13. In this distribution particles of different types form regions which are parametrized by a product of two one-dimensional Gaussian functions in \(m^2\) and \(\mathrm {d}E/\mathrm {d}x\), respectively. The binned maximum likelihood method is applied to fit the distribution with 20 parameters (4 particle types \(\times \) 5 parameters of the Gaussians). Depending on the momentum range and particle species, some of these parameters were fixed or constrained. In particular, this is important for \(K^+\) which are difficult to separate from protons in the projected \(\mathrm {d}E/\mathrm {d}x\) distributions at higher momenta where the tof information can no longer provide PID. Therefore, the mean \(\langle \mathrm {d}E/\mathrm {d}x\rangle \) position of kaons was fixed and the width of the \(\mathrm {d}E/\mathrm {d}x\) peak was constrained from above by using information from pions and protons.

As a result of the fit one obtained raw yields of particles (\(e^{\pm }\), \(\pi ^{\pm }\), \(K^{\pm }\), p, \(\bar{\mathrm{p}}\)) in bins of \(\{p,\theta \}\,\)which were then corrected using the NA61/SHINE simulation chain with the Venus4.12 [45, 46] model for primary interactions and a GEANT3-based part for tracking the produced particles through the detector.

Table 4 The NA61/SHINE results on the \(\pi ^+\) double differential cross section, \(d^2 \sigma _{\pi ^+}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included
Table 5 The NA61/SHINE results on the \(\pi ^-\) double differential cross section, \(d^2 \sigma _{\pi ^-}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included

4.4.1 Feed-down corrections and \(\varLambda \) re-weighting

Hadrons which were not produced in the primary interaction can amount to a significant fraction of the selected track sample. Thus a special effort was undertaken to evaluate and subtract this contribution. Hereafter this correction will be referred to as feed-down.

According to the simulation with the Venus4.12 model as the primary event generator, the correction reaches 12 % for \(\pi ^+\), 40 % for \(\pi ^-\) and up to 60 % for protons at low polar angles and small momenta. For kaons it is not significant (\({\lesssim }2~\%\)). Figure 14 shows the feed-down correction for \(\pi ^-\) and protons as a function of momentum for one of the \(\theta \) bins. Decomposition of the correction reveals that the main contribution comes from \(\varLambda \)-hyperon decays:

For \(\pi ^-\) mesons these decays are responsible for about 2 / 3 of the non-primary contribution at \(p=1\) GeV/c. For protons, they amount to about 1 / 2 for the whole momentum range. The measurements of \(\varLambda \) spectra described in Sect. 4.3 can be used to improve the precision of the correction. Therefore the feed-down contribution of \(\varLambda \) is calculated separately from the feed-down correction due to other weak decays.

Fig. 24
figure 24

Comparison between NA61/SHINE statistical and systematic uncertainties obtained using the 2007 [5] and the 2009 datasets in a selected angular interval [60,100] mrad for \(\pi ^+\)

Fig. 25
figure 25

Comparison between NA61/SHINE statistical and systematic uncertainties obtained using the 2007 [5] and the 2009 datasets in a selected angular interval [60,100] mrad for \(\pi ^-\)

Technically the \(\varLambda \) feed-down correction based on data was evaluated by weighting the Venus4.12 generated spectra of \(\varLambda \) to agree with the measurements. The resulting change of the \(\pi ^-\) and proton spectra is shown in Fig. 15. Thus rescaling of the \(\varLambda \) spectra reduces the feed-down in \(\pi ^-\) spectra by a maximum of 8 % at \(p=2\) GeV/c. For protons the reduction was found in most of the momentum range with a maximum at \(p=9\) GeV/c.

The reweighting of the Venus4.12 \(K^0_S\) spectra based on the NA61/SHINE measurements impacts the corrected charged pion spectra by less than 2 %. This refinement of the correction was neglected in the results presented here.

4.4.2 Systematic uncertainties of the tof-d E / d x analysis

Systematic uncertainties of the hadron spectra were estimated by varying track selection and identification criteria as well as the parameters used to calculate the corrections. The following sources of systematic uncertainties were considered:

Table 6 The NA61/SHINE results on the \(K^+\) double differential cross section, \(d^2 \sigma _{K^+}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted.The overall uncertainty due to the normalization procedure is not included
Table 7 The NA61/SHINE results on the \(K^-\) double differential cross section, \(d^2 \sigma _{K^-}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included
  1. (i)

    PID (\(\mathrm {d}E/\mathrm {d}x\)) A Gaussian function is used to parametrize the \(\mathrm {d}E/\mathrm {d}x\) distribution at a fixed value of momentum. The width of the distribution decreases with increasing number of TPC clusters used to determine the \(\mathrm {d}E/\mathrm {d}x\) value of a track. Having in one \(\{p,\theta \}\,\)bin tracks with different number of clusters would cause a deviation from the single-Gaussian shape. The contribution of this effect to the uncertainty of the fitted number of particles of a certain species was estimated by performing an alternative fit by a sum of two Gaussians.

    At low momenta the ToF-F resolution ensures an unambiguous particle identification, thus small deviations of the \(\mathrm {d}E/\mathrm {d}x\) distribution from a single Gaussian in general are not important. A deviation has a significant effect only for momenta above 3 GeV/c. For pions it steadily increases up to 2 % at \(p=20\) GeV/c. However for kaons, the uncertainty is an order of magnitude larger: up to 20 % for \(K^+\) at high momenta.

  2. (ii)

    Hadron loss To ensure a high quality match of tracks and ToF-F hits the last point of a track should be within 1.6 m from the ToF-F wall (\(z_\text {last}>6\) m). This implies that a track segment is reconstructed in the MTPC-L or MTPC-R detectors. Possible imperfections in the description of the spectrometer can introduce a difference in the acceptance and reconstruction efficiency (merging track segments between VTPC-2 and MTPC-L/R) between simulation and real data which can be important for the reconstruction of long tracks. To check how sensitive the results are to the \(z_\text {last}\) cut, it was relaxed down to \(z_\text {last}>-1.5\) m for pions and \(z_\text {last}>-3\) m for kaons. The difference in the resulting final spectra was assigned as the systematic uncertainty. It reaches up to 2 % at 1 GeV/c and drops quickly with increasing momentum.

  3. (iii)

    Reconstruction efficiency To estimate the uncertainty of the reconstruction efficiency the following track selection criteria were varied: the minimum number of points measured on the track, the azimuthal angle and the impact parameter cuts. Also results were compared which were obtained with two independent track topologies, different algorithms for merging track segments from different TPCs into global tracks, and with two different algorithms for the primary vertex reconstruction. It was found that the influence of such changes is small compared to the statistical uncertainties. The corresponding systematic uncertainty was estimated to be 2 %.

  4. (iv)

    Forward acceptance As stated in Sect. 2, the GTPC detector was used for the first time in the reconstruction algorithms within NA61/SHINE. The GTPC increases the number of reconstructed tracks mainly for smaller angles, \(\theta <40\) mrad, and thus allows finer momentum binning in the forward region \(\theta <20\) mrad. The estimate of the systematic uncertainty in the forward region is based on the comparison of results obtained with and without the GTPC included in the reconstruction algorithms and by varying the required number of GTPC clusters in the analysis. The latter takes into account inefficiencies of the GTPC electronic readout which were not included in the simulations. The difference of spectra obtained with and without using the GTPC information in the reconstruction was found to be 4 % up to \(\theta <20\) mrad and about 3 % for \(20<\theta <40\) mrad. The variation of the required number of GTPC clusters between 4 and 6 resulted in changes of up to 4 % for \(0<\theta <10\) mrad and up to 2 % for \(10<\theta <20\) mrad for tracks with momentum \(p>12\) GeV/c. In this region the majority of tracks do not traverse the VTPC-1/2 detectors and thus the reconstruction of the track segment in the magnetic field totally relies on the GTPC.

  5. (v)

    ToF-F reconstruction The ToF-F reconstruction efficiency was estimated using a sample of events with very strict selection requiring no incoming beam particle within a \(\pm 20\,\upmu \)s time window around the triggered interaction. The inefficiency was found to vary from 4 % in the central region to a fraction of a percent in the ToF-F slabs far away from the beamline. This variation correlates with the higher particle density in the near-to-beam region where several particles can hit a single slab, thus contributing to inefficiency. A value of 50 % of the inefficiency correction was assigned as a conservative limit to this source of systematic uncertainty.

  6. (vi)

    Secondary interactions and non- \(\varLambda \) feed-down corrections As in the case of the \(\mathrm {d}E/\mathrm {d}x\) (Sect. 4.5) and \(h^-\) (Sect. 4.6) approaches, the important contribution to the systematic uncertainty at low momenta comes from the uncertainty of the simulation-based correction for secondary interactions and weak decays of strange particles (excluding \(\varLambda \) hyperons). Following arguments described in Ref. [5] an uncertainty of 30 % of the correction value was assigned for both of these sources.

  7. (vii)

    \(\varLambda \) feed-down correction The correction for the feed-down to pions and protons originating from \(\varLambda \) decays was calculated separately based on measured \(\varLambda \) spectra (see Sect. 4.4.1). The uncertainty assigned to this correction was estimated to be 30 % which is an upper limit on the overall uncertainty of the measured \(\varLambda \) spectra.

Fig. 26
figure 26

Statistical and systematic uncertainties obtained using the 2009 dataset for \(K^+\)

Table 8 The NA61/SHINE results on the proton double differential cross section, \(d^2 \sigma _\text {p}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included
Table 9 The NA61/SHINE results on the \(K^0_S\) double differential cross section, \(d^2 \sigma _{K^0_S}/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included
Table 10 The NA61/SHINE results on the \(\varLambda \) double differential cross section, \(d^2 \sigma _{\varLambda }/(d p d \theta )\) (in [mb/rad/(GeV/c)]), in the laboratory system for p + C interactions at 31 GeV/c. The results are presented as a function of momentum, p (in [GeV/c]), in different angular intervals, \(\theta \) (in [mrad]). The statistical \(\varDelta _\text {stat}\) (in [mb/rad/(GeV/c)]) and systematic \(\varDelta _\text {syst}\) (in [mb/rad/(GeV/c)]) errors are quoted. The overall uncertainty due to the normalization procedure is not included

Figures 16 and 17 show a breakdown of the total systematic uncertainty in the tof-\(\mathrm {d}E/\mathrm {d}x\) analysis for the example of the angular interval [20,40] mrad.

4.5 The \(\mathrm {d}E/\mathrm {d}x\) analysis method

The analysis of charged pion production at low momentum was performed using particle identification based only on measurements of specific energy loss in the TPCs. For a large fraction of tracks tof can not be measured since the majority of low-momentum particles does not reach the ToF-F detector. A reliable identification of \(\pi ^+\) mesons was not possible at momenta above 1 GeV/c where the BB curves for pions, kaons, and protons cross each other (see Fig. 5). On the other hand, since the contamination from \(K^-\) and antiprotons is almost negligible for \(\pi ^-\) mesons, the \(\mathrm {d}E/\mathrm {d}x\) analysis could be performed for momenta up to 3 GeV/c allowing consistency checks with the other identification methods in the region of overlap.

The procedure of particle identification, described below, is tailored to the region where a rapid change of energy loss with momentum is observed. This procedure was used already for the 2007 data and more details can be found in Ref. [52]. Here just the most important steps of the analysis are described.

In order to optimize the parametrization of the BB function, samples of \(e^{\pm }\), \(\pi ^{\pm }\), \(K^{\pm }\), p, and d tracks with reliable particle identification were chosen in the \(\beta \gamma \) range from 0.2 up to 100. The dependence of the BB function on \(\beta \gamma \) was then fitted to the data using the Sternheimer and Peierls parametrization of Ref. [53]. This function was subsequently used to calculate for every track of a given momentum the expected \(\mathrm {d}E/\mathrm {d}x_\text {BB}\) values for all considered identity hypotheses for comparison with the measured \(\mathrm {d}E/\mathrm {d}x\). A small (a few percent) dependence of the mean \(\langle {\mathrm {d}E/\mathrm {d}x}\rangle _\text {data}\) on the track polar angle had to be corrected for.

The identification procedure was performed in \(\{p,\theta \}\,\)bins. Narrow momentum intervals (of 0.1 GeV/c for \(p<1\) GeV/c and 0.2 GeV/c for \(1<p<3\) GeV/c) were chosen because of the strong dependence of \(\mathrm {d}E/\mathrm {d}x\) on momentum. The event and track selection criteria described in Sect. 4.1 were applied. In each \(\{p,\theta \}\,\)bin an unbinned maximum likelihood fit (for details see Ref. [54]) was performed to extract yields of \(\pi ^+\) and \(\pi ^-\) mesons. The probability density functions were assumed to be a sum of Gaussian functions for each particle species, centered on \(\mathrm {d}E/\mathrm {d}x_\text {BB}\) with variances derived from the data. The \(\mathrm {d}E/\mathrm {d}x\) resolution is a function of the number of measured points and the particle momentum. In the \(\pi ^+\) analysis three independent abundances were fitted (\(\pi ^+\), \(K^+\) and proton), in the \(\pi ^-\) analysis only two (\(\pi ^-\) and \(K^-\)). The \(e^+\) and \(e^-\) abundances were determined from the total number of particles in the fit.

As an example, the \(\mathrm {d}E/\mathrm {d}x\) distributions for positively and negatively charged particles in the momentum interval [0.8,0.9] GeV/c and angular bin [180,240] mrad are shown in Fig. 18 and compared with the distributions obtained from the fitted function.

Finally, the Venus4.12 based simulation was used to calculate bin-by-bin corrections for pions from weak decays and interactions in the target and the detector material. The corrections include also track reconstruction efficiency and resolution as well as losses due to pion decays. Also \(\mu \) tracks coming from \(\pi \) decay were taken into account (not done for the 2007 data analysis). Simulation studies showed that this additional category of tracks has a non-negligible impact on the value of corrections increasing them by about \({\sim }8~\%\). The \(\mu \) tracks from \(\pi \rightarrow \mu \) decays can not be distinguished from \(\pi \) candidates in the data, as both particles show similar values of \(\mathrm {d}E/\mathrm {d}x\) due to the small difference in their masses.

Fig. 27
figure 27

Laboratory momentum distributions of \(\pi ^+\) mesons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(\pi ^+\) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the FTF_BIC-G495 and QGSP_BERT-G410 models. Ref. [56] shows predictions for all models considered in Sect. 6

Fig. 28
figure 28

Laboratory momentum distributions of \(\pi ^-\) mesons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(\pi ^-\) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the FTF_BIC-G496 and QGSP_BERT-G410 models. Ref. [56] shows predictions for all models considered in Sect. 6

Fig. 29
figure 29

Laboratory momentum distributions of \(K^+\) mesons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(K^+\) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the FTF_BIC-G495 and GiBUU1.6 models. Ref. [56] shows predictions for all models considered in Sect. 6

Fig. 30
figure 30

Laboratory momentum distributions of \(K^-\) mesons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(K^-\) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the FTF_BIC-G410 and Epos1.99 models. Ref. [56] shows predictions for all models considered in Sect. 6

4.5.1 Systematic uncertainties of the \(\mathrm {d}E/\mathrm {d}x\) analysis

In the \(\mathrm {d}E/\mathrm {d}x\) analysis a number of sources of systematic uncertainties were considered. Some are specific to the \(\mathrm {d}E/\mathrm {d}x\) analysis, others were already described in previous sections.

  1. (i)

    PID (\(\mathrm {d}E/\mathrm {d}x\)) The BB parametrization used in the analysis was fitted to the experimental data. In order to estimate the uncertainty related to the precision of the parametrization the results were calculated using the BB curves shifted by \(\pm 1~\%\). This value was chosen based on small discrepancies observed between the fitted BB parametrization and the measured energy loss for pions. The resulting relative systematic uncertainty (\(p_\text {BB}\)) was calculted as:

    $$\begin{aligned} p_\text {BB} \equiv \frac{n_{\text {iden,BB},\pi ^{\pm }}}{n_{\text {iden},\pi ^{\pm }}}, \end{aligned}$$
    (25)

    where \(n_{\text {iden,BB},\pi ^{\pm }}\) represents the number of identified \(\pi ^{\pm }\) when the BB curves are shifted by \(\pm 1~\%\), while \(n_{\text {iden},\pi ^{\pm }}\) gives the original number of identified charged pions.

    Clearly the calibration uncertainty of the BB function is important only for the momentum bins where the BB curves for two particle hypotheses are close to each other. A particularly difficult momentum region is [0.8–2.2] GeV/c where the BB curve for kaons approaches and crosses that for pions. The kaon relative abundance is low causing additional instability in the fit. Therefore a conservative estimate of the resulting uncertainty of the pion abundance in this momentum range was obtained by allowing the kaon abundance \(m_K\) to vary between 0 and 0.5 %. The limit was adjusted while studying neighboring bins with \(p=[0.7,0.9]\) GeV/c, where the fitted abundace \(m_K\) was not larger than 0.1 %. The corresponding relative systematic uncertainty (\(p_{m_K}\)) was calculated as:

    $$\begin{aligned} p_{m_K} \equiv \frac{n_{\text {iden},m_K,\pi ^{\pm }}}{n_{\text {iden},\pi ^{\pm }}}, \end{aligned}$$
    (26)

    where \(n_{\text {iden},m_K,\pi ^{\pm }}\) represents the fitted number of identified \(\pi ^{\pm }\) with the 0.5 % limit set on the fitted relative kaon fraction.

    One has to keep in mind that \(p_\text {BB}\) and \(p_{m_K}\) are correlated. Therefore the larger value (\(p_f\equiv \max [p_\text {BB},p_{m_K}]\)) was taken as the estimate of the systematic uncertainty \(p_f\) coming from the \(\mathrm {d}E/\mathrm {d}x\) identification procedure.

  2. (ii)

    Forward acceptance The uncertainties of the acceptance correction in the forward region were determined as described in Sect. 4.4.2 item (iv) also for low momentum tracks. A systematic uncertainty of 5 % was assigned for low angle intervals (\(\theta <\) 60 mrad), and 3 % for other intervals.

  3. (iii)

    Feed-down corrections An uncertainty of 30 % was assigned to the corrections for feed-down from non-\(\varLambda \) (purely simulation based) and \(\varLambda \) (simulation and data based) decays. This uncertainty is particularly significant in the low momentum region studied in the \(\mathrm {d}E/\mathrm {d}x\) analysis. For further information see Sect. 4.4.1.

  4. (iv)

    Reconstruction efficiency For estimating the uncertainty of the reconstruction efficiency corrected results for \(\pi \) spectra from the \(\mathrm {d}E/\mathrm {d}x\) analysis using different reconstruction algorithms were compared, see Sect. 4.4.2 item (iii). For most \(\theta \) angles this uncertainty is below 2 %.

  5. (v)

    Track cuts The impact of the dominant track cut in the \(\mathrm {d}E/\mathrm {d}x\) analysis was studied by changing the selection cut on the measured number of points by 10 % from the starting value of 30. The change of results is below 1 % and thus the associated systematic uncertainty is mostly negligible.

Figures 19 and 20 show a breakdown of the total systematic uncertainty in the \(\mathrm {d}E/\mathrm {d}x\) analysis for the example of the angular interval [20,40] mrad for \(\pi ^+\) and \(\pi ^-\), respectively.

4.6 The \(h^-\) analysis method

The \(h^-\) method utilizes the observation that negatively charged pions account for more than 90 % of primary negatively charged particles produced in p + C interactions at 31 GeV/c. Therefore \(\pi ^-\) spectra can be obtained without the use of particle identification by correcting negatively charged particle spectra for the small non-pion contribution calculated by simulations. The method is not applicable to positively charged hadrons due to the larger contribution of \(K^+\) and protons. The \(\pi ^-\) spectra obtained from the \(h^-\) analysis method cover a wide momentum range from about 0.2 GeV/c to 20 GeV/c, providing an independent cross-check in the region of overlap with the other two analysis methods discussed above.

The \(h^-\) analysis follows the previously developed procedure described in Refs. [5, 55]. In the first step, the raw \(h^-\) yields were obtained in \(\{p,\theta \}\,\)bins. Standard cuts, described in Sect. 4.1, were applied to provide good quality events and tracks. In case the track had less than 12 hits in the VTPCs, at least 4 hits were required in the GTPC to ensure a long enough track segment in the first part of the spectrometer. This is important for a good determination of the track parameters, particularly for tracks that start in the GTPC and continue to the MTPCs. A selection based on the \(\mathrm {d}E/\mathrm {d}x\) of the track was introduced (not used in the analysis of the 2007 data) to improve the purity of the track sample by rejecting the large electron contamination at low \(\theta \) angles. This was done to remove, in particular, electrons emitted by beam protons (\(\delta \)-rays) passing through the NA61/SHINE detector that are not accounted for in the simulations. The effect was not prominent in the 2007 data because the intensity of the beam was significantly lower than in 2009. The separation between electrons and mostly pions was found to be sufficient for all \(\theta \) bins when a momentum-dependent cut on \(\mathrm {d}E/\mathrm {d}x\) was applied for each \(\theta \) bin separately. The contribution of electrons was the largest for \(\theta \) below 20 mrad and momentum below 4 GeV/c reaching about 10 %. It decreased to 2 % in bins of larger \(\theta \).

Fig. 31
figure 31

Laboratory momentum distributions of protons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean proton multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the QGSP_BERT-G410 and Venus4.12 models. Ref. [56] shows predictions for all models considered in Sect. 6

In the next step, the raw yields of selected negatively charged hadrons were corrected using the standard NA61/SHINE simulation chain with the Venus4.12 model as primary event generator and GEANT3 for particle propagation and generation of secondary interactions. Like in the previous \(h^-\) analysis one global correction factor was calculated for each \(\{p,\theta \}\,\)bin. The correction includes the contribution of primary \(K^-\) and \(\bar{p}\), the contribution from weak decays of strange particles and secondary interactions in the target as well as in the detector material. It also accounts for track reconstruction efficiency and losses due to the limited geometrical acceptance.

Given the large available statistics, the \(h^-\) analysis technique provides the best precision for the \(\pi ^-\) spectra in the full \(\{p,\theta \}\,\)range covered by NA61/SHINE.

4.6.1 Systematic uncertainties of the \(h^-\) analysis

Most of the systematic uncertainties were evaluated in the same way as for the other charged hadron spectra analyses. Error sources which are specific to the \(h^-\) analysis include uncertainties of the contamination by \(K^-\), \(\bar{p}\) and of the electron rejection procedure. The following effects were taken into account for the estimate of systematic uncertainties:

  1. (i)

    Feed-down The uncertainty related to the correction for secondary interactions and for weak decays of strange particles remains the dominant contribution to the systematic uncertainty at low momentum. For both of these sources a 30 % error was assigned as described in Ref. [5]. The significant reduction of the uncertainty, compared to the 2007 analysis, comes from the use of new NA61/SHINE measurements of \(\varLambda \) production (see Sect. 4.4.1 for more details) and the removal of electrons at low \(\theta \) and low momentum.

  2. (ii)

    Forward acceptance The impact of the GTPC detector was evaluated following the procedure described in Sect. 4.4.2. The systematic uncertainty deduced from the difference of the spectra obtained with the reconstruction algorithms with and without use of the GTPC was found to be 4 % for \(0<\theta <10\) mrad and 2 % for \(10<\theta <40\) mrad in the overlapping acceptance regions. The variation of the number of hits required for tracks starting in the GTPC resulted in a systematic uncertainty of up to 4–5 % for the most forward region \(\theta <20\) mrad and at momenta \(p>5\) GeV/c.

  3. (iii)

    \(K^-\) and \(\bar{p}\) contamination The admixture of \(K^-\) and \(\bar{p}\) was estimated from simulations with the Venus4.12 model as the primary event generator and was assigned a systematic uncertainty of 20 %. The contribution of \(K^-\) and \(\bar{p}\) varies with momentum from 5 to 10 % at low \(\theta \) angles. For \(\theta >\) 100 mrad it increases with momentum and varies from 5 to 20 %.

  4. (iv)

    Reconstruction efficiency The reconstruction efficiency was evaluated by comparing results for different reconstruction algorithms used in the experiment. Differences of about 2 % were found. Since no dependence was observed on momentum and angle \(\theta \) this value was assigned to the systematic uncertainty.

  5. (v)

    Track selection method The uncertainty was estimated by varying the following selections: required minimum total number of points on the track, \(\mathrm {d}E/\mathrm {d}x\) cuts for electron removal, and maximally allowed impact parameter. The requirement on the number of points on the track was changed by 10 % from the nominal value of 30 and the corresponding uncertainty was found to be up to 1 %. The uncertainty associated with the cut to reject electrons was estimated by varying the cut value in \(\mathrm {d}E/\mathrm {d}x\) for each of the \(\theta \) bins by \(\pm \)3 %. The separation of electrons and mostly pions is good, so the impact on the spectra is negligible compared to that of varying the requirement on the number of points and no additional uncertainty was assigned. To test the sensitivity to the impact parameter cut, the analysis was repeated without the cut and the effect was found to be negligible.

Figure 21 shows a breakdown of the total systematic uncertainty for \(\pi ^-\) as a function of momentum in the angular interval [20,40] mrad as an example.

Fig. 32
figure 32

Laboratory momentum distributions of \(K^0_S\) mesons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(K^0_S\) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. Shaded boxes show predictions obtained from \(K^{\pm }\) yields using isospin (dark green) and quark counting (light green) hypotheses. The spectra are compared to predictions of the FTF_BIC-G495 and Epos1.99 models. Ref. [56] shows predictions for all models considered in Sect. 6

Fig. 33
figure 33

Laboratory momentum distributions of \(\varLambda \) hyperons produced in p + C interactions at 31 GeV/c in different polar angle intervals. Distributions are normalized to the mean \(\varLambda \) multiplicity in all production p + C interactions. Vertical bars show the statistical and systematic uncertainties added in quadrature, horizontal bars indicate the size of the momentum bin. The overall uncertainty due to the normalization procedure is not shown. The spectra are compared to predictions of the FTF_BIC-G410, GiBUU1.6 and Venus4.12 models. Ref. [56] shows predictions for all models considered in Sect. 6

5 Results on spectra

This section presents results on spectra of \(\pi ^{\pm }\), \(K^{\pm }\), and protons, as well as \(K^0_S\) and \(\varLambda \) in p + C interactions at 31 GeV/c. The large statistics of the 2009 dataset resulted in improved precision and larger coverage compared to the published 2007 data and allowed measurements of \(K^-\) spectra in NA61/SHINE for the first time. The comparison between the 2009 and 2007 results is discussed.

The new measurements are presented together with selected predictions of hadron production models, which are described in Sect. 6. Complete comparisons are shown in Ref. [56]. In order to avoid uncertainties related to the different treatment of quasi-elastic interactions and to the absence of predictions for inclusive cross sections, spectra are normalized to the mean particle multiplicity in all production interactions. For the data, the normalization relies on the p + C inclusive production cross section \(\sigma _\text {prod}\) which was found to be 230.7 mb (see Sect. 3.5). The production cross section is calculated from the inelastic cross section by subtracting the quasi-elastic contribution. Therefore production processes are defined as those in which only new hadrons are present in the final state. Details of the cross section analysis procedure can be found in Sect. 3 and in Refs. [5, 33, 34].

The experimental measurements are shown with total uncertainties which correspond to the statistical and systematic uncertainties added in quadrature. The overall uncertainty due to the normalization procedure (discussed in Sect. 4.2) is not shown.

5.1 \(\pi ^{\pm }\) results

The spectra of \(\pi ^{\pm }\) mesons were obtained using three different analysis techniques tof-\(\mathrm {d}E/\mathrm {d}x\), \(\mathrm {d}E/\mathrm {d}x\) and \(h^-\) described in Sects. 4.44.6. Within the corresponding systematic uncertainties, the results of various methods were found to be in a good agreement as shown in Figs. 22 and 23 for \(\pi ^+\) and \(\pi ^-\), respectively. In order to present a single spectrum for positively and negatively changed pions, the results were combined. For \(\pi ^+\) mesons, where there is complementarity of acceptance for different analysis techniques results from the \(\mathrm {d}E/\mathrm {d}x\) analysis are used for all angular intervals up to 420 mrad in the momentum range below 1 GeV/c. The momentum region above 1 GeV/c is covered by the tof-\(\mathrm {d}E/\mathrm {d}x\) analysis for angular intervals up to 360 mrad. In case of \(\pi ^-\) mesons, results of the \(h^-\) analysis are used in the full angular range up to 420 mrad since they provide the smallest total uncertainty in the region of the overlap between methods. The final spectra are shown for \(\pi ^+\) in Fig. 27 and for \(\pi ^-\) in Fig. 28. Numerical results are given in Tables 4 and 5 for \(\pi ^+\) and \(\pi ^-\), respectively. Thus, the final results span a broad kinematic range. When comparing the new \(\pi ^{\pm }\) results to the previously published measurements based on the 2007 data [5] one should note that the present results are shown in the form of \(d^2 \sigma /(d p d \theta )\), while the form \(d \sigma /(d p)\) was used in previous publications Refs. [5, 6]. The deviations between the two data sets are consistent within the quoted errors and are distributed uniformly over the phase space. Thus, the new measurements confirm the published 2007 results which were questioned in Ref. [57]. Both the statistical and the total systematic uncertainties are considerably smaller for the new 2009 results as shown for the angular interval [60,100] mrad for \(\pi ^+\) in Fig. 24 and for \(\pi ^-\) in Fig. 25. At low momentum systematic uncertainties dominate whereas at higher momentum the statistical uncertainty gives the largest contribution to the total uncertainty.

5.2 \(K^{\pm }\) results

The tof-\(\mathrm {d}E/\mathrm {d}x\) analysis technique was used to obtain the \(K^+\) spectra shown in Fig. 29 and the \(K^-\) spectra plotted in Fig. 30. The large 2009 dataset allowed for the first measurements of \(K^-\) yields in p + C interactions by NA61/SHINE. Large statistics for \(K^+\) made it possible to use narrow \(\{p,\theta \}\,\)bins in the analysis which is important for tuning the neutrino flux predictions in T2K. Numerical results are given in Tables 6 and 7 for \(K^+\) and \(K^-\), respectively. The analysis of \(K^+\) was repeated, as a cross-check, with a coarser \(\{p,\theta \}\,\)binning that corresponds to the previously published measurements based on the 2007 data [6]. Good agreement was found. The total uncertainty for the 2009 data remains dominated by the statistical uncertainty as shown in Fig. 26 for \(K^+\) as an example.

5.3 Proton results

The tof-\(\mathrm {d}E/\mathrm {d}x\) analysis technique was used to extract proton spectra. These measurements, shown in Fig. 31, cover a wide kinematic range above 1 GeV/c and are important for T2K since they provide the possibility to constrain the contributions from re-interactions in the long carbon target and in the elements of the beamline. Numerical results are given in Table 8. The new proton spectra are in a good agreement with preliminary results obtained using the 2007 data [58].

5.4 \(V^0\) results

The \(K_S^0\) and \(\varLambda \) spectra are shown in Figs. 32 and 33 and numerical results are given in Tables 9 and 10, respectively. As explained in Sect. 4.4.1, those measurements are used to reduce the dominant systematic uncertainties due to the feed-down correction in the charged hadron analyses. Results are consistent within the quoted systematic uncertainties with previously published measurements [14] which were obtained with a much coarser \(\{p,\theta \}\,\)binning due to the lower statistics of the 2007 data.

The spectra of \(K^0_S\) can be cross-checked by measurements of \(K^{\pm }\) yields, thanks to the unique capability to measure these three types of kaons simultaneously in the NA61/SHINE experiment. So far, only a few experiments have been able to perform such measurements and to test two different theoretical hypotheses that predict \(K^0_S\) yields from \(K^{\pm }\) production rates giving inconclusive results. The first approach assumes isospin symmetry in kaon production and predicts (see e.g. Ref. [59]):

$$\begin{aligned} N(K^0_S) = \frac{1}{2} \, (N(K^+) + N(K^-)). \end{aligned}$$
(27)

The second method uses a quark-counting argument [60], with a simplified quark parton model. The following assumptions are made on the number of sea and valence quarks:

$$\begin{aligned}&u_\text {s} =\bar{u}_\text {s} = d_\text {s} = \bar{d}_\text {s}, \, s_\text {s} = \bar{s}_\text {s}, \end{aligned}$$
(28)
$$\begin{aligned}&n \equiv u_\text {v} / d_\text {v}. \end{aligned}$$
(29)

Taking into account that interactions are with a carbon nucleus (\(n = 2\) for p + p collisions, \(n = 1\) for p + n), the relation between mean multiplicity of \(K^0_S\), \(K^+\) and \(K^-\) is:

$$\begin{aligned} N(K^0_S) = \frac{1}{8} \, (3\,N(K^+)+5\,N(K^-)). \end{aligned}$$
(30)

The second method is currently used to tune \(K^0_L\) production in the T2K flux simulation chain [17]. Figure 32 shows a comparison of the measured spectra of \(K^0_S\) to the predictions from measured charged kaon yields and reasonable agreement is observed. Unfortunately, the large uncertainties associated with the \(K^0_S\) measurements do not allow us to discriminate between the two hypotheses.

6 Comparisons with hadron production models

The spectra shown in Figs. 27, 28, 29, 30, 31, 32 and 33 are compared to predictions of seven hadronic event generators. These are Venus4.12  [45, 46], Epos1.99  [50],Footnote 3 GiBUU1.6  [61, 62], as well as FTF_BIC-G495, FTF_BIC-G496, FTF_BIC-G410 and QGSP_BERT physics lists defined in the GEANT4 toolkit.Footnote 4 For clarity of presentation predictions of only two models are plotted with the spectra of each hadron type. They were selected to show examples of predictions with small and large deviations from the measurements. The comparison of the measured spectra with all model predictions is available in Ref. [56].

None of the models provides a satisfactory description of all the measured spectra. The FTF-based physics lists of GEANT4 provide a reasonable description of \(\pi ^{\pm }\) and \(K^+\) spectra, but do not reproduce \(K^-\) and proton spectra. The Epos1.99 and GiBUU1.6 models show good agreement with the measured \(K^{\pm }\) spectra. The best description of the proton spectra is achieved by the Venus4.12 model which was used to calculate the corrections applied to obtain the results presented in this paper.

7 Summary

This paper presents precise measurements of interaction and production cross sections as well as of spectra of \(\pi ^{\pm }\), \(K^{\pm }\), protons, \(K^0_S\) and \(\varLambda \) in p + C interactions at 31 GeV/c. These data are crucial for predictions of the initial neutrino fluxes in the T2K long baseline neutrino oscillation experiment in Japan. Furthermore, they provide important input to improve hadron production models needed for the interpretation of air showers initiated by ultra high energy cosmic particles. The measurements were performed with the large acceptance NA61/SHINE spectrometer at the CERN SPS. A set of data collected with a 4 % \(\lambda _{\mathrm {I}}\) isotropic graphite target during the high-statistics NA61/SHINE run in 2009 was used for the analysis. The measured spectra are compared with predictions of several hadron production models. None of the models provides a satisfactory description of all the spectra.