1 Introduction

NA61/SHINE (SPS Heavy Ion and Neutrino Experiment) [1] is a large hadron spectrometer at the CERN Super Proton Synchrotron (SPS). The NA61/SHINE collaboration is pursuing several physics goals including hadron production measurements for T2K (Tokai to Kamioka) [2] – an accelerator-based long-baseline neutrino experiment in Japan. The NA61/SHINE measurements are used to reduce the systematic uncertainties associated to the prediction of the (anti)neutrino fluxes in T2K. New measurements of \(\pi ^{\pm }\), \(K^{\pm }\) and \(p \) yields coming from the surface of the T2K replica target are presented here. These results aim at reducing the T2K (anti)neutrino flux uncertainties down to a 3–4% level. They can further be used to tune hadron interaction and transport models.

The paper is structured as follows: a motivation for these hadron measurements is first presented. In Sect. 2, a brief overview of the NA61/SHINE setup is shown followed by the description of the analysis in Sect. 3. Section 4 gives a concise description of all systematic uncertainties. Results and comparison with Monte Carlo (MC) models and with the previous NA61/SHINE measurements are presented in Sect. 5. Finally, in Sect. 6, proper usage of these results in the T2K neutrino beam simulation is discussed, followed by a short conclusion.

1.1 The T2K neutrino beam

The T2K neutrino beam is produced at the Japan Proton Accelerator Research Complex (J-PARC) [3] by directing a \(30\,\) \(\hbox {GeV}\) (kinetic energy) proton beam towards a 90-\(\hbox {cm}\)-long graphite target. Produced mesons, mostly pions and kaons [4], are focused by a set of three magnetic horns [2] and decay to neutrinos in the decay volume. Focusing horns are aluminum conductors that create a toroidal magnetic field with respect to the beam direction. The polarity of the current in the horns can be changed, so positively or negatively charged pions (kaons) can be focused. In this way, T2K can produce either a neutrino-enhanced (\(\nu _{\mu }\)) or an antineutrino-enhanced (\(\bar{\nu }_{\mu }\)) beam. Since direct hadron production measurements in situ are not possible, Monte Carlo models are used to predict the (anti)neutrino fluxes at the T2K near and far detectors. However, significant differences between hadron production models induce considerable systematic uncertainties on the (anti)neutrino fluxes. Without any experimental data to constrain the hadron production models, these systematic uncertainties would be larger than 25%. For this reason, T2K uses available hadron production measurements, but mostly relies on dedicated NA61/SHINE hadron production data [4].

1.2 The NA61/SHINE measurements for T2K

The NA61/SHINE experiment took data for T2K in 2007, 2009 and 2010. In 2007 and 2009, measurements were performed with a 30.92 \(\hbox {GeV}\!/\!c\) proton beam and a 2-\(\hbox {cm}\)-thick carbon target (4% of a nuclear interaction length, \(\lambda _i\)) to measure hadron multiplicities (\(\pi ^{\pm }\), \(K^{\pm }\), \(p \), \(K^0_{s}\), \(\varLambda \)) and the production cross section [5,6,7,8]. Production events represent the fraction of inelastic events in which at least one new hadron in the final state is produced. By using these measurements, the uncertainty on the neutrino flux in T2K was reduced to about \(10\%\) [4]. However, the hadron production component of the uncertainty still dominated the total uncertainty due to the insufficient precision of the production cross section measurements and re-interactions inside the target and aluminum horns, which cannot be directly constrained by the measurements of the primary proton-carbon interactions. To further reduce the hadron production uncertainty of the neutrino flux, hadron production measurements with a replica of the T2K target were needed. Measurements with the T2K replica target can directly constrain up to 90% of the neutrino flux because hadron yields at the surface of the target are measured not just for primary interactions, but also for re-interactions inside the target [9]. These measurements were also done in 2007, 2009 and 2010. Measurements from the 2007 run [9] were used as a proof-of-principle, while measurements from the 2009 run [10, 11] are being incorporated in the T2K neutrino flux simulation. The expected (anti)neutrino flux uncertainty is around 5% [12], representing a significant improvement with respect to the previously published uncertainty of \(10\%\). Measurements from the 2010 run are the main topic of this paper. With respect to the previous results, these measurements of \(\pi ^{\pm }\) yields have smaller statistical and systematic uncertainties. Furthermore, \(K^{\pm }\) and \(p \) yields are measured for the first time. This is expected to further reduce the uncertainties on the (anti)neutrino fluxes in T2K from about 10% down to the level of 3–4%. Moreover, since (anti)neutrino fluxes in T2K in the energy region above \(\sim \) 2 GeV are produced mainly by kaon decays, the corresponding uncertainties will be greatly reduced.

1.3 The T2K requirements

T2K imposes strict requirements on hadron production measurements with the T2K replica target [10]. Hadron yields must be measured as a function of the momentum, polar angle and longitudinal position of the hadron exit point on the target surface. In other words, vertices inside the target are not reconstructed. Tracks measured in a detector are only extrapolated to the target surface. Essentially, the target is treated as a black box and measured hadron yields are the sum of yields coming from primary interactions and re-interactions. In addition, T2K requires that the longitudinal position along the target surface is binned in at least six bins: five longitudinal bins \(18\,\) \(\hbox {cm}\) in size and the downstream target face as a sixth bin [13]. Since the T2K target is inserted in the first focusing horn, hadrons coming from different parts of the target will have different paths through the magnetic field and they will be focused differently by the horns. The previous NA61/SHINE measurements with 2007 and 2009 data have already proven that the NA61/SHINE setup is suitable for measuring hadron yields on the T2K replica target surface, although the target is placed outside of the tracking system.

2 NA61/SHINE experimental setup

The NA61/SHINE setup during the T2K replica target data-taking in 2010 consisted of five Time Projection Chambers (TPCs), three Time-of-Flight walls (ToF-F, ToF-L and ToF-R), three Beam Position Detectors (BPD-1, BPD-2, BPD-3), a 90-\(\hbox {cm}\)-long graphite target, five scintillator counters and two Cherenkov detectors. Two of the vertex TPCs (VTPC-1 and VTPC-2) are inside the magnetic field created by two superconducting magnets. For the study presented here the magnetic field of the dipole magnets was set to a bending power of 1.14 T m (standard magnetic field), while a small subset of data was also taken with the full magnetic field of 9 T m. A schematic overview of the setup is presented in Fig. 1. More details can be found in Ref. [1]. The coordinate system is defined as follows: the z-axis is in the nominal direction of the beam, the x-axis in the horizontal plane is such that positively charged particles are bent in the positive x-direction, and the y-axis is perpendicular to the horizontal plane and points upward. The origin is located in the centre of the VTPC-2.

Fig. 1
figure 1

A top view (a) and a side view (b) of the NA61/SHINE experimental setup used in 2010 for the T2K replica target data-taking. The beam comes from the left. The orientation of the coordinate system is shown in the bottom left corner, while its origin is located at the centre of VTPC-2

2.1 Beamline

The NA61/SHINE spectrometer [1] is served by the so-called H2 beamline at the north area of the SPS. The beamline is designed to transport both primary and secondary hadrons and ions from the maximum SPS energy (\(400\,\) \(\hbox {GeV}\!/\!c\)) down to \(13\,\) \(A\,\hbox {GeV}\!/\!c\). Secondary hadron beams of various momenta are produced by impinging a primary \(400\,\) \(\hbox {GeV}\!/\!c\) proton beam on a beryllium target. Produced hadrons are selected by two spectrometers and a set of collimators according to their rigidity (momentum to charge ratio). The secondary beam is then transported towards NA61/SHINE. The beam is defined by three scintillator counters used in coincidence (\(S_1\), \(S_2\) and \(S_3\)) and two scintillator counters with holes used in anticoincidence (\(V_0\) and \(V_1^p\)). The \(S_3\) counter has a radius equal to the target radius, and it was placed \(0.5\,\) \(\hbox {cm}\) upstream of the target. The \(V_0\) counter has a 1 cm diameter hole centered on the beam axis, which allows the selection of a narrower beam, if necessary. A Cherenkov Differential Counter with Achromatic Ring Focus [14] (CEDAR) and Threshold Cherenkov Counter (THC) were used in coincidence and anti-coincidence respectively to identify beam particles. By changing the gas pressure in these detectors, it is possible to estimate the beam composition. The \(30.92\,\) \(\hbox {GeV}\!/\!c\) beam contains around 76.3% \(\pi ^+\), 1.6% \(K^+\), and 12% protons [13]. The estimated purity of the selected proton sample is better than 99.9%. Finally, the beam position is measured by a set of six multi-wire proportional chambers. Two chambers, one measuring position along the x-axis and another measuring the position along the y-axis, are part of one BPD. The precision of the position measurement in one BPD is around 200 \(\upmu \)m [1].

The third BPD was mounted on the same support as the target, just upstream of the \(S_3\) counter.

2.2 Target

The T2K target [2] has a modular structure which includes a graphite core, a thin titanium case, cooling pipes filled with helium. The replica target design matches dimensions and material of the T2K graphite core. It was made of Toyo Tanso IG-43 graphite [15]. The target density was estimated by measuring its volume and mass, and it is equal to \(1.83\pm 0.03\,\) g cm\(^{-3}\). This value is 1.5% higher than the density of the T2K target, but well within the measurement uncertainty. The target shape was machined to form a 2 cm thick disk with an 88 cm long rod coming from its centre. The radii of the disk and rod are 3.5 cm and 1.3 cm, respectively. The disk was used to mount an aluminium flange which was, in turn, tightened to a target holder. The upstream side of the flange has a hole to minimize beam interactions with aluminium and provide space for the \(S_3\) counter used in the trigger. A schematic overview of the target can be seen in Fig. 2. The position and tilt of the target were adjusted by the screws on the target holder. The downstream face of the target was placed around 67 cm from the upstream side of VTPC-1.

Fig. 2
figure 2

The T2K replica target with aluminium flange attached to the upstream disk. The hole at the upstream side of the flange was used for the \(S_3\) counter. A technical drawing of the T2K replica target with the upstream flange zoomed in is shown on the bottom of the figure

2.3 Tracking system

The tracking system consists of two Vertex TPCs located in the magnetic field with an additional small TPC called the Gap TPC (GTPC) located between them, and two Main TPCs (MTPC-L and MTPC-R), located downstream symmetrically with respect to the beamline. All TPCs were inherited from the previous NA49 experiment [16]. The GTPC was introduced in order to measure forward-going particles with small polar angles, \(\theta < 10\) mrad, in the laboratory frame. The magnetic field was set so that the total bending power of the magnets was 1.14 T m. This allowed a momentum resolution of \(\sigma _p/p^2 = 5 \times 10^{-3}\,\)(\(\hbox {GeV}\!/\!c\))\(^{-1}\), except for very forward tracks that only passed through the GTPC and MTPCs and had a momentum resolution of \(22 \times 10^{-3}\,\)(\(\hbox {GeV}\!/\!c\))\(^{-1}\) [13]. The angular resolution is around 3–4 mrad and it does not change much as a function of angle. The longitudinal position resolution changes with angle. For angles around 20 mrad it is around 15 cm. For larger angles, it goes down to around 2.5 cm. Particles emitted from the downstream face of the target behave differently. Forward going particles are usually emitted from the center of the downstream target face. Therefore, extrapolation usually works quite well in this case. However, higher-angle particles coming from the downstream face of the target are usually emitted closer to the edge. In that case, migration effects increase.

The measured energy loss (\({\text {d}} E\!/\!{\text {d}} x\)) in the TPCs provided excellent particle identification capabilities; the achieved resolution is around 4%. In the region where the energy loss distributions for different particles cross, time-of-flight measurements (\(tof \)) were used for particle identification.

2.4 Time-of-flight walls

Although the NA61/SHINE spectrometer has three different Time-of-Flight (ToF) detectors, for the T2K replica target measurements only the forward wall (ToF-F) was used for particle identification. The left and right walls (ToF-L and ToF-R) have superior granularity, but their coverage is insufficient. The ToF-F wall was constructed in 2007 and upgraded in 2009 for the T2K hadron production measurements. It consists of 80 scintillator bars with dimensions W\(\times \)H\(\times \)L = \(10\times 120\times 2.5\) cm arranged in ten separate modules. The signal is read out by two PMTs placed at both ends of the bars. The estimated \(tof \) resolution was 115 ps [13].

2.5 Triggers

The proton beam profile on target at NA61/SHINE is wider than that at J-PARC. Previous studies [10] have shown that longitudinal (z) distribution of the hadrons emitted from the replica target surface depends on the width and position of the incoming proton beam at the target upstream face. In the simplest case where the beam has some radial distribution and where beam divergence and possible re-interactions in the target are neglected, a hadron, produced at position \(z_i\) along the target with polar angle \(\theta \) and radial position \(\varDelta r\) with respect to the target longitudinal axis, would escape the target at a minimal longitudinal position, z, given by:

$$\begin{aligned} z = z_i + \frac{\varDelta r}{\tan \theta }. \end{aligned}$$
(1)

Evidently, for narrower beams, the longitudinal (z) distribution of the hadrons exiting the target surface is pushed more downstream. With a sufficiently narrow beam, one can suppress the number of hadrons coming from the first 18 cm of the target by an order of magnitude or more. Although this effect seems to be purely geometrical, a Monte Carlo simulation suggest that different beam widths and positions can lead to slightly different numbers of low momentum pions produced in re-interactions. The difference in the number of pions is around 1%. The NA61/SHINE proton beam achieved in 2009 [10] is much wider than the J-PARC beam. To avoid large differences between the NA61/SHINE beam and the J-PARC beam, four special triggers were used during the 2010 data-taking (see Fig. 1):

$$\begin{aligned} T_1&= S_1 \cdot S_2 \cdot \,\,\quad \, \overline{V}_0 \cdot \overline{V}_1^p \cdot CEDAR \cdot \overline{THC}, \end{aligned}$$
(2a)
$$\begin{aligned} T_2&= S_1 \cdot S_2 \cdot S_3 \cdot \,\,\,\,\,\quad \overline{V}_1^p \cdot CEDAR \cdot \overline{THC},\end{aligned}$$
(2b)
$$\begin{aligned} T_3&= S_1 \cdot S_2 \cdot S_3 \cdot \overline{V}_0 \cdot \overline{V}_1^p \cdot CEDAR \cdot \overline{THC},\end{aligned}$$
(2c)
$$\begin{aligned} T_4&= S_1 \cdot S_2 \cdot S_3 \cdot \,\,\,\quad \, \,\overline{V}_1^p. \qquad \qquad \qquad \end{aligned}$$
(2d)

The \(T_1\) trigger is the only trigger that selects beam protons that did not necessarily hit the target or when a hit in the \(S_3\) scintillator was not detected. The \(T_2\) and \(T_3\) triggers select only beam protons that hit the target. The only difference is that \(T_3\) selects a narrower beam because the \(V_0\) counter has a smaller hole. The fourth trigger selects all beam particles that hit the target. It is important to note that \(T_1\), \(T_2\) and \(T_4\) were prescaled – only a fraction of them was recorded. The prescaling was applied to \(T_2\) to achieve the desired radial distribution of the beam. If an event is a \(T_2\) but not a \(T_3\), this means that the triggered beam particle is in the tail of the radial distribution on the upstream target face. To reduce the beam tail, only one out of two such events was registered. The achieved radial distribution is shown in Fig. 3. Perfect agreement with the T2K beam profile is not possible since in T2K the beam profile changes on a run-by-run basis. Any differences must be studied before using these measurements in the T2K neutrino beam simulation. Such study is presented in Sect. 6.

Fig. 3
figure 3

Radial distributions of the incoming proton beam with respect to the center of the target: \(T_3\) beam profile (blue), \(T_2\) beam profile (red) and T2K beam profiles for two different runs (green). Beam profiles in T2K change on a run-by-run basis and perfect agreement is not possible. All distributions are normalised to the corresponding total number of protons on target

In total, \(10.2 \times 10^6\) triggers were recorded. Around 11.7% of the triggers were recorded with the maximum magnetic field of 9 T m. This allowed the recording of beam protons that pass through the target without interacting and the measurements of their parameters in the TPCs. However, all secondary hadrons below \(6\,\) \(\hbox {GeV}\!/\!c\) were bent out of the TPCs and did not reach the ToF-F wall. The analysis of data recorded with the maximum magnetic field is a subject of an independent publication. In this paper, the data taken with the standard magnetic field configuration (89.3% of triggers) were analysed, while the high magnetic field subset was used for alignment between the BPDs and TPCs (see Sect. 3.1).

Fig. 4
figure 4

Target position with respect to the BPDs: distribution of beam particles in \(x-y\) at the target upsteam face (a), BPD-TPC alignment in x (b) and BPD-TPC alignment in y (c)

3 Analysis

The reconstruction and simulation procedures used for the replica target analysis are described in earlier publications [9, 10].

The analysis of the data taken with the standard magnetic field configuration was performed with the so-called \(tof \)-\({\text {d}} E\!/\!{\text {d}} x\) method, which makes use of the TPC measurements of the specific energy loss (\({\text {d}} E\!/\!{\text {d}} x\)) and the time-of-flight measurements [9, 10]. The specific energy loss of a track is calculated as a truncated mean [16] of the charges of the clusters (points) on the track traversing the TPCs. After event and track selection, selected tracks were binned in momentum (p), polar angle (\(\theta \)), both measured in the laboratory frame, and longitudinal position of the exit point on the target surface (z), as required by T2K. The different hadron yields were estimated by fitting a two-dimensional \({\text {d}} E\!/\!{\text {d}} x\)\(\hbox {m}^2_{tof}\) distribution for every bin. These raw yields were then corrected for all inefficiencies by applying Monte Carlo and data-based correction factors. Before any event or track selection is applied, it was necessary to determine the target position with respect to the BPDs and TPCs in order to refine the original surveyor measurements.

3.1 Target position and alignment

The target upstream face x and y positions with respect to the BPDs can be determined just by plotting the \(T_2\) beam profile at the target upstream z position. The position of the target centre was obtained by maximising the number of entries in the circle with radius equal to 1.3 cm. This was only possible because \(S_3\) counter, which was part of the trigger, had the same radius as the target and it was placed just upstream of the target. The target upstream z position was measured by surveyors before the data-taking. Once the relative alignment of the target and BPDs was known, the alignment of the TPCs with respect to the BPDs could also be determined. To do so, the data taken with the high magnetic field configuration were used to select events with only one high momentum track corresponding to the beam track. Those tracks were extrapolated to the surveyed z position of the target using an analytical method (see Ref. [17]) with error propagation that accounts for multiple scattering (see Ref. [18]). The positions of the beam tracks extrapolated forward from the BPDs and backward from the TPCs were compared and the mean value of the differences was taken to be the misalignment of the TPCs with respect to the BPDs (see Fig. 4).

Because of the non-negligible probability of re-interactions and long extrapolation distance, it is difficult to reconstruct interaction vertices in the target. However, by extrapolating TPC tracks and selecting only those for which the point of closest approach to the beam track is within the extrapolation uncertainty, it was possible to check the surveyors’ measurement of the target z position. The z distribution of the points of closest approach was plotted and a rising edge could be seen as shown in Fig. 5. The z position at the half-max of this rising edge was taken to be the upstream target face. Full agreement with the surveyor position measurement was obtained.

Fig. 5
figure 5

The distribution of z positions of closest approach for TPC tracks extrapolated to the beam track. Only tracks whose distance to the beam track is within extrapolation uncertainty were selected. The red line shows fitted rising edge and the position of the half maximum was taken to be the target upstream z position

The final step was to determine the tilt of the target in \(x-z\) and \(y-z\) planes. First, the target was assumed to be parallel to the z-axis. Then, only events with beam tracks passing through the whole length of the target were selected. The TPC tracks were again extrapolated backwards until the minimum distance from the beam track was reached. By plotting the x and y distributions for 18 slices in z and checking the width and position of the distributions, it is straightforward to extract any possible tilt of the target. For example, if the target is tilted in positive x direction, edges of the x distributions would be shifted towards the centre because the target is moved from the beam. The shift would increase with z. No appreciable tilt was found. In Table 1 the measured position of the target is summarized with uncertainties for all parameters.

Table 1 Coordinates of the upsteam face of the T2K replica target (in the NA61/SHINE coordinate system, see Fig. 1) and their uncertainty as well as the tilt of the target

3.2 Event selection

Three different criteria were imposed on the recorded events. Beam particles were required to hit the target, in other words, an event must correspond to \(T_2\) or \(T_3\) trigger. Also, the position of each beam particle must have been measured by all three BPDs. And finally, the reconstructed path of the beam particle must have passed through the whole length of the target.

Fig. 6
figure 6

The \(\theta - \phi \) distribution of selected tracks: regions of flat acceptance are selected. The selected regions in azimuthal angle \(\phi \) depend on the polar angle \(\theta \) interval

Table 2 Fractions of (anti)neutrino fluxes at Super-Kamiokande produced by \(\pi ^+\), \(\pi ^-\), \(K^+\), \(K^-\), and \(p \) emitted from the surface of the T2K target (estimated using Fluka2011.2c.5 simulations) and covered by the measurements presented in this paper. The fractions are presented for the forward and reverse horn current configurations. The last column is a sum of the coverage for five hadrons presented in this paper and does not include other particles contributing to the neutrino flux (\(K^0_{s}\), \(\varLambda \), \(\mu \))
Fig. 7
figure 7

The \(p-\theta \) distribution of positively charged pions emitted from the surface of the T2K target which contribute to the (anti)neutrino flux in Super-Kamiokande. The top row shows the phase space plots in the forward horn current configuration, while bottom plots show the phase space for the reverse horn current configuration. The NA61/SHINE coverage from the 2010 replica target measurement is overlaid on top of the plots

Only 75% of the events passed this selection. Events were mostly discarded at the second requirement due to inefficiencies in the BPD measurements. The event selection should also ensure that events containing off-time TPC tracks were not selected as these tracks can potentially bias the measured hadron yields. The beam intensity during the data-taking was around 8.3 kHz which means that the mean time difference between beam particles was around 120 μ s. However, the ToF-F wall has a time acquisition window of 100 ns, and because of the requirement that all tracks must have a \(tof \) hit for particle identification, most of the off-time TPC tracks were automatically discarded. The fraction of accepted off-time tracks was negligible.

Fig. 8
figure 8

The \(p-\theta \) distribution of negatively charged pions emitted from the surface of the T2K target which contribute to the (anti)neutrino flux in Super-Kamiokande. The top row shows the phase space plots in the forward horn current configuration, while bottom plots show the phase space for the reverse horn current configuration. The NA61/SHINE coverage from the 2010 replica target measurement is overlaid on top of the plots

Fig. 9
figure 9

The \(p-\theta \) distribution of positively charged kaons emitted from the surface of the T2K target which contribute to the (anti)neutrino flux in Super-Kamiokande. The top row shows the phase space plots in the forward horn current configuration, while bottom plots show the phase space for the reverse horn current configuration. The NA61/SHINE coverage from the 2010 replica target measurement is overlaid on top of the plots

Fig. 10
figure 10

The \(p-\theta \) distribution of negatively charged kaons emitted from the surface of the T2K target which contribute to the (anti)neutrino flux in Super-Kamiokande. The top row shows the phase space plots in the forward horn current configuration, while bottom plots show the phase space for the reverse horn current configuration. The NA61/SHINE coverage from the 2010 replica target measurement is overlaid on top of the plots

3.3 Track selection

Track selection was rather simple and can be divided into two parts. First, a track was required to have fitted momentum, energy loss, and time-of-flight measurements. Afterwards, cuts were applied to increase the quality of the selected track sample. Tracks can have segments in different TPCs and therefore, can be divided into different topologies. For each topology, a different requirement on the number of clusters was applied. For example, if a track passes through the VTPCs, at least 25 points in the VTPCs were required. A cut on the number of clusters in MTPCs was not applied to such tracks. However, tracks with momentum measured only in the GTPC have between four and seven GTPC points. At least six points in the GTPC were required as well as additional 30 points in the MTPCs. This ensured that the track parameters were measured with sufficient precision and that the track did not pass very close to the MTPC walls where possible field distortions are the largest. Afterwards, the azimuthal angle distributions were plotted for polar angle intervals of 20 mrad or 40 mrad. Two different types of azimuthal regions were removed: the regions with rapidly changing acceptance and the regions in which the Monte Carlo acceptance does not correspond to the data. This may be caused by slightly different sizes of the TPCs or distortions of the magnetic field which are not present in the magnetic field maps used in the Monte Carlo simulation. The selected regions in (\(\phi , \theta \)) space are presented in Fig. 6. This reduces the possibility of bias once the Monte Carlo corrections were applied to the data.

Fig. 11
figure 11

The \(p-\theta \) distribution of protons emitted from the surface of the T2K target which contribute to the (anti)neutrino flux in Super-Kamiokande. The top row shows the phase space plots in the forward horn current configuration, while bottom plots show the phase space for the reverse horn current configuration. The NA61/SHINE coverage from the 2010 replica target measurement is overlaid on top of the plots

Fig. 12
figure 12

Distribution of specific energy loss in the TPCs as a function of particle momentum for negatively (left panel) and positively (right panel) charged particles

Finally, the selected TPC tracks were extrapolated towards the target surface. The track parameters and covariance matrices were saved for the positions where tracks hit the target surface or the minimum distance from the target surface was less than \(3\sigma _R\), where \(\sigma _R\) is the extrapolated radial uncertainty. This cut reduced the number of selected tracks that were not coming from the target, but were created in decays or interactions outside of the target.

Fig. 13
figure 13

A mass squared distribution of selected tracks, calculated from the \(tof \) measurements, as a function of particle momentum. Known squared masses of \(\pi ^\pm \), \(K^\pm \), \(e^\pm \) and \(p \) (\(\overline{p }\)) are overlaid on top

Fig. 14
figure 14

An example of the joint \(\hbox {m}^2_{tof}\)- \({\text {d}} E\!/\!{\text {d}} x\) fit for a single (\(p, \theta , z\)) bin. The top left panel shows the 2D distribution of the data with a contour plot of the fitted function in red. The bottom left panel shows the extracted number of \(\pi ^+\), \(K^+\), \(p \) and \(e ^+\). The top right and bottom right panels show projections of the data and fitted function to \(\hbox {m}^2_{tof}\) and \({\text {d}} E\!/\!{\text {d}} x\) axis, respectively

Fig. 15
figure 15

Beam slope \(\text {d}x/\text {d}z\) vs. x position (a) and \(\text {d}y/\text {d}z\) vs. y (b) for beam particles selected by the \(T_2\) trigger. The distributions are used to randomly generate beam particles in the NA61/SHINE Monte Carlo simulation

3.4 Phase space

Fig. 16
figure 16

Efficiency of the scintillator bars in the ToF-F wall as a function of the x-coordinate. It is clear that the efficiency drops if the bar is closer to the beamline (x = 0 cm). This is due to an increasing track density with decreasing distance to the beam

Fig. 17
figure 17

Uncertainties on \(\pi ^+\) yields shown as a function of p and \(\theta \): statistical uncertainties (top row), total systematic uncertainties (middle row) and total uncertainties (bottom row). Each column corresponds to a different longitudinal bin

Selected tracks were binned in (\(p, \theta , z\)) space. As required by T2K [10], six longitudinal bins in total were used: the 90-\(\hbox {cm}\)-long graphite rod was divided into five bins of 18 cm each and the target downstream face was considered as an additional sixth bin. Different (\(p, \theta \)) binning was applied for extracting \(\pi ^\pm \), \(K^\pm \) and \(p \) yields. The reason for this is due to statistics: several times fewer kaons than pions are expected, so coarser binning must be used for kaons. Unequal bin sizes were used to reduce the large variability in the statistical uncertainty for low and high momenta. The appropriate size of the bins was estimated from Fluka2011.2c.5 simulations [19,20,21]. Also, the starting value for the momentum binning was carefully adjusted. The necessity for this comes from the fact that the ToF-F response was not simulated in the Monte Carlo. Instead, in the reconstruction chain applied to simulated events the \(tof \) measurements were just assigned to the tracks that hit the ToF-F wall, and later on the inefficiency of the ToF-F wall was corrected with a data-based correction. Actually, very low momentum particles, depending on their mass, cannot reach the ToF-F wall within the ToF-F acquisition window. Therefore, Monte Carlo corrections in this region would be heavily biased. For example, momentum bins for protons must start at \(0.5\,\) \(\hbox {GeV}\!/\!c\).

Fig. 18
figure 18

Uncertainties on \(\pi ^-\) yields shown as a function of p and \(\theta \): statistical uncertainties (top row), total systematic uncertainties (middle row) and total uncertainties (bottom row). Each column corresponds to a different longitudinal bin

Fig. 19
figure 19

Uncertainties on \(K^+\) yields shown as a function of p and \(\theta \): statistical uncertainties (top row), total systematic uncertainties (middle row) and total uncertainties (bottom row). Each column corresponds to a different longitudinal bin

Fig. 20
figure 20

Uncertainties on \(K^-\) yields shown as a function of p and \(\theta \): statistical uncertainties (top row), total systematic uncertainties (middle row) and total uncertainties (bottom row). Each column corresponds to a different longitudinal bin

Fig. 21
figure 21

Uncertainties on \(p \) yields shown as a function of p and \(\theta \): statistical uncertainties (top row), total systematic uncertainties (middle row) and total uncertainties (bottom row). Each column corresponds to a different longitudinal bin

The overall phase space binning covers more than \(96\%\) of (anti)neutrinos crossing the T2K far detector (Super-Kamiokande) which are produced by the charged hadrons emitted from the target. More than \(97\%\) of (anti)neutrinos produced by pions are covered, while the coverage drops for kaons and protons. This is summarised in Table 2. The phase space of the charged hadrons coming from the T2K target surface that contribute to the (anti)neutrino fluxes in Super-Kamiokande are plotted in Figs. 7, 8, 9, 10 and 11. The top row in each figure represents the coverage for the forward horn current (FHC) corresponding to the neutrino mode, while the bottom row represents the coverage for the reverse horn current (RHC) corresponding to the anti-neutrino mode. Each column represents a different longitudinal bin. The phase space coverage of the measurements presented in this paper is overlaid on top of the figures as a black line. Since NA61/SHINE added new forward TPCs in 2017 [22], possible future measurements could improve coverage for the forward-going high momentum \(K^\pm \) and \(p \) [23].

Fig. 22
figure 22

Systematic uncertainties for the measured yields as a function of momentum. Each column corresponds to a different particle type, from left to right: \(\pi ^+\), \(\pi ^-\), \(K^+\), \(K^-\), and \(p \). Each row corresponds to a different longitudinal bin. Specific theta ranges are given on top of each plot. Presented (\(p,\theta , z\)) bins are selected to show typical sizes of the systematic uncertainties

Fig. 23
figure 23

Double differential yields of positively charged pions for the most upstream longitudinal bin (\(0\le z < 18\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 24
figure 24

Double differential yields of positively charged pions for the second upstream longitudinal bin (\(18\le z < 36\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (red) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

3.5 Particle identification

Since large fractions of the phase space are covered, a robust particle identification method is needed. For the momentum range between \(1\,\) \(\hbox {GeV}\!/\!c\) and \(3\,\) \(\hbox {GeV}\!/\!c\) (see Fig. 12), the energy loss distributions cross, hence particle identification based on the energy loss alone is not possible. However, in these regions, \(tof \) measurements can be used to distinguish between particles. Kaons can be separated easily up to \(3\,\) \(\hbox {GeV}\!/\!c\), while protons can be separated up to \(8\,\) \(\hbox {GeV}\!/\!c\), as can be seen in Fig. 13. For higher momentum, the \(tof \) resolution becomes too poor, while energy loss measurements allow for better identification. It is clear that both approaches are complementary and therefore they can be combined to cover all the bins. The \(tof \) measurement was used to calculate the particle mass squared (\(\hbox {m}^2_{tof}\)) and it was combined with the energy loss. Particles were represented by islands in the \(\hbox {m}^2_{tof}\)-\({\text {d}} E\!/\!{\text {d}} x\) space. Therefore, raw hadron yields could be obtained by fitting an appropriate function to the distribution for each phase space bin. Both, \(\hbox {m}^2_{tof}\) and \({\text {d}} E\!/\!{\text {d}} x\) were assumed to be normally distributed. This assumption for \({\text {d}} E\!/\!{\text {d}} x\) must be closely examined. In general, \({\text {d}} E\!/\!{\text {d}} x\) is not normally distributed, as its distribution is similar to the Landau distribution. The measured \({\text {d}} E\!/\!{\text {d}} x\) in NA61/SHINE is calculated as a truncated mean (see Ref. [16]) of all energy depositions for all clusters. Therefore, we assume that truncated mean is normally distributed. This is only valid if all tracks have the same number of TPC clusters. The selected tracks can have a different number of clusters which can significantly affect the \({\text {d}} E\!/\!{\text {d}} x\) resolution if the number of TPC clusters is small. However, the \({\text {d}} E\!/\!{\text {d}} x\) resolution in NA61/SHINE saturates at around 3.5% for tracks with more than 70 clusters. Around 98.5% of the selected tracks have more than 70 clusters. This is a good justification for using only a single Gaussian for describing energy loss in a single phase space bin for one particle species. Our previous measurements prove this assumption (see Refs. [8, 10]). The total fitting function was constructed from four two-dimensional Gaussians, one for each particle species (\(e^\pm \), \(\pi ^\pm \), \(K^\pm \), \(p \) (\(\overline{p }\))). The fitting was done in the RooFit framework [24] by using extended log-likelihood minimization which treats the number of observed particles as a Poisson random variable. An example of a fit is shown in Fig. 14. In total, there were 20 parameters in the fit: eight mean values, eight standard deviations, and four particle multiplicities. The obtained raw multiplicities must be corrected for various inefficiencies with Monte Carlo and data-based corrections.

Fig. 25
figure 25

Double differential yields of positively charged pions for the third upstream longitudinal bin (\(36\le z < 54\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 26
figure 26

Double differential yields of positively charged pions for the fourth upstream longitudinal bin (\(54\le z < 72\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 27
figure 27

Double differential yields of positively charged pions for the fifth upstream longitudinal bin (\(72\le z < 90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 28
figure 28

Double differential yields of positively charged pions for the downstream target face (z = 90 cm). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (blue) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 29
figure 29

Double differential yields of negatively charged pions for the most upstream longitudinal bin (\(0\le z < 18\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (blue) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 30
figure 30

Double differential yields of negatively charged pions for the second upstream longitudinal bin (\(18\le z < 36\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 31
figure 31

Double differential yields of negatively charged pions for the third upstream longitudinal bin (\(36\le z < 54\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 32
figure 32

Double differential yields of negatively charged pions for the fourth upstream longitudinal bin (\(54\le z < 72\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 33
figure 33

Double differential yields of negatively charged pions for the fifth upstream longitudinal bin (\(72\le z < 90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 34
figure 34

Double differential yields of negatively charged pions for the downstream target face (z = 90 cm). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 35
figure 35

Double differential yields of positively charged kaons for the most upstream longitudinal bin (\(0\le z < 18\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 36
figure 36

Double differential yields of positively charged kaons for the second upstream longitudinal bin (\(18\le z < 36\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 37
figure 37

Double differential yields of positively charged kaons for the third upstream longitudinal bin (\(36\le z < 54\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 38
figure 38

Double differential yields of positively charged kaons for the fourth upstream longitudinal bin (\(54\le z < 72\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 39
figure 39

Double differential yields of positively charged kaons for the fifth upstream longitudinal bin (\(72\le z < 90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 40
figure 40

Double differential yields of positively charged kaons for the downstream target face (z = 90 cm). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

3.6 Monte Carlo correction factors

Interactions in the target were simulated by Fluka2011.2c.5 [19,20,21]. The kinematics of the particles at their exit position on the surface of the target was then fed to Geant3  / GCALOR [25] for propagation through the NA61/SHINE detector. The incoming proton beam information from the data was used to generate the Monte Carlo beam profile. The beam track parameters for each simulated proton were thrown randomly according to the beam divergence and position distributions shown in Fig. 15. The x- and y- positions and divergences were considered to be independent. In total, nearly \(40 \times 10^6\) protons on target (POT) were simulated.

A simple Monte Carlo correction was applied to the raw yields:

$$\begin{aligned} C_{ijk} = \frac{N_\text {sim}^{ijk}}{N_\text {rec,sim}^{ijk}}, \end{aligned}$$
(3)

where \(N_\text {sim}^{ijk}\) is the number of simulated hadrons in the bin (\(p,\theta , z)= (i,j,k\)) and \(N_\text {rec,sim}^{ijk}\) is the number of simulated hadrons reconstructed in the same bin. This correction can be separated into several factors, which allow for a better determination of the associated systematic errors:

$$\begin{aligned} \frac{1}{C_{ijk}} = \varepsilon _{ijk}^\text {feed-down}\cdot \varepsilon _{ijk}^\text {mig}\cdot \varepsilon ^\text {sel}_{ijk} \cdot \varepsilon ^\text {rec}_{ijk} \cdot \varepsilon ^\text {loss}_{ijk}\cdot \varepsilon ^{\phi }_{ijk}, \end{aligned}$$
(4)

where \(\varepsilon ^{\phi }_{ijk}\) is the geometrical efficiency (because of the \(\phi \) cut), \(\varepsilon ^\text {loss}_{ijk}\) is the hadron loss efficiency due to decays and interactions in the detector (hadrons which are produced in re-interactions and by chance extrapolated to the target surface are included in this correction), \(\varepsilon ^\text {rec}_{ijk}\) is the reconstruction efficiency, \(\varepsilon ^\text {sel}_{ijk}\) is the selection efficiency, \(\varepsilon _{ijk}^\text {mig}\) is the bin migration efficiency and \(\varepsilon _{ijk}^\text {feed-down}\) is the feed-down efficiency. The geometrical efficiency gives the percentage of \(4\pi \) solid angle covered by the NA61/SHINE detector after the selection. Some of the produced hadrons inside the detector coverage can decay or re-interact in the detector and therefore, they do not hit the TOF-F wall. The percentage of surviving hadrons is given by the hadron loss efficiency. The reconstruction efficiency is a convolution of the efficiency of software algorithms used for the reconstruction and the efficiency of the detector. The selection efficiency corrects for the hadrons lost in the quality selection. The values of momentum (p), polar angle (\(\theta \)) and longitudinal position along the target surface (z) for each hadron are reconstructed with finite precision. Consequently, some of the hadrons will be placed in a wrong \((p, \theta , z\)) bin. The ratio of the number of hadrons which are reconstructed in a given bin to the number of hadrons which are simulated in the same bin represents the migration efficiency. The feed-down efficiency corrects for weak decays outside of the target whose decay products are extrapolated to the target surface.

Fig. 41
figure 41

Double differential yields of negatively charged kaons for the most upstream longitudinal bin (\(0\le z < 18\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 42
figure 42

Double differential yields of negatively charged kaons for the second upstream longitudinal bin (\(18\le z < 36\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 43
figure 43

Double differential yields of negatively charged kaons for the third upstream longitudinal bin (\(36\le z < 54\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 44
figure 44

Double differential yields of negatively charged kaons for the fourth upstream longitudinal bin (\(54\le z < 72\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 45
figure 45

Double differential yields of negatively charged kaons for the fifth upstream longitudinal bin (\(72\le z < 90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 46
figure 46

Double differential yields of negatively charged kaons for the downstream target face (\(z=90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 47
figure 47

Double differential yields of protons for the most upstream longitudinal bin (\(0\le z < 18\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 48
figure 48

Double differential yields of protons for the second upstream longitudinal bin (\(18\le z < 36\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 49
figure 49

Double differential yields of protons kaons for the third upstream longitudinal bin (\(36\le z < 54\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 50
figure 50

Double differential yields of protons for the fourth upstream longitudinal bin (\(54\le z < 72\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 51
figure 51

Double differential yields of protons for the fifth upstream longitudinal bin (\(72\le z < 90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Fig. 52
figure 52

Double differential yields of protons for the downstream target face (\(z=90\,\) \(\hbox {cm}\)). Vertical bars represent the total uncertanties. Predictions from the NuBeam (solid blue line) and QGSP_BERT (dashed black line) physics lists from Geant4.10.03 [27, 28] are overlaid on top of the data

Although only the total Monte Carlo correction was applied to raw yields, it was useful to study each contribution separately in order to estimate possible biases. The systematic uncertainties for each correction are presented in the next section. As previously described, the efficiency of the ToF-F detector was not included in the Monte Carlo correction.

3.7 ToF-F efficiency correction factors

A different track selection was used to estimate the ToF-F efficiency from the data. Only tracks that reached the end of the MTPCs were selected. Since the ToF-F wall was placed just downstream of the MTPCs, it was necessary to make sure that tracks did not re-interact or decay before hitting the ToF-F wall. The efficiency of each scintillator bar was simply calculated as the number of tracks with hits in the ToF-F wall divided by the total number of selected tracks. Inefficiency was caused mainly by two effects. First, if two tracks hit a scintillator bar in the same event, the hit was discarded during reconstruction since it was not possible to distinguish between these tracks (close to the beamline there is a 4% probability another track will be matched to the same ToF-F hit, while this probability is below 1% further away from the beamline). Second, a hit is also discarded if the difference in time of flight measured by the top and bottom PMTs in a bar was larger than 2000 ps. During the data-taking period, four scintillator bars had only one PMT working or there was a DAQ problem for these channels. These scintillators did not suffer from the inefficiency caused by the quality cut during reconstruction. However, these bars had a worse time resolution by a factor of \(\sqrt{2}\). The efficiency of each bar is shown in Fig. 16. Efficiency uncertainties were calculated as binomial errors. This information was then used to estimate the ToF-F efficiency for each phase space bin. Tracks in a single bin usually contain hits in several scintillators (usually around three or four). The error on the efficiency for each bin was taken as a ToF-F systematic uncertainty.

3.8 Ad hoc correction factors

A 50% drop in the number of ToF-F hits in the data was observed for a couple of upstream longitudinal bins and high polar angle (\(\theta \approx 300\,\) mrad). However, such a drop was not seen in the MC simulation and could not be related to the ToF-F inefficiency. Under further inspection, it was discovered that the corresponding tracks actually did not reach the MTPCs but were bent out or absorbed while passing very close to the edge of the magnetic field map used in the simulation. It is thus possible that the field map in this region is biased. It appears to be biased asymmetrically as negatively-charged tracks were more affected than positively-charged ones, pointing out to asymmetric \(E \times B\) corrections in the TPCs. Nevertheless, the affected bins represent only around \(1\%\) of the total \(\pi ^\pm \) bins and other hadrons were not affected, since they were not measured in the affected area because of the low statistics. To account for this inefficiency, an additional ad hoc correction factor was applied:

$$\begin{aligned} C^{adhoc}_{ijk} = \left( \frac{n^{MC}_{sel, tof}}{n^{MC}_{sel}}\right) _{ijk}/ \left( \frac{C_{ijk}^{tof} n^{data}_{sel, tof}}{n^{data}_{sel}}\right) _{ijk}, \end{aligned}$$
(5)

where \(n^{MC(data)}_{sel, tof}\) is the number of selected tracks with \(tof \) hit in the Monte Carlo (data), \(n^{MC(data)}_{sel}\) is the number of selected tracks in the Monte Carlo(data) without the \(tof \) requirement, and \(C^{tof}_{ijk}\) is the ToF-F efficiency for the given phase space bin. It is clear that this correction can be model-dependent and therefore this point must be addressed for a possible systematic bias.

4 Systematic uncertainties

The systematic uncertainties of this analysis were carefully studied. A brief summary is given below, while more detailed information can be found in Ref. [13].

The following systematic uncertainties were considered:

  1. (i)

    Hadron loss uncertainty. Apart from the ToF-F inefficiency, tracks can miss the ToF-F wall, re-interact in the detector, or decay before reaching the end of the MTPCs. Possible imperfections in the Monte Carlo description of the detector can create biases while correcting for the previously described effects. To check for potential biases, an attempt to impose more strict cuts and to select only tracks with a long segment in the MTPCs was made. After re-calculating and comparing the yields to the standard results, the difference was taken as a systematic uncertainty. In the majority of bins, this uncertainty is well below \(1\%\). However, for tracks with a momentum of several \(\hbox {GeV}\!/\!c\) in the 20–40 mrad region in the most upstream longitudinal bin, the hadron loss uncertainty goes up to \(20\%\) (for a single bin it reached \(50\%\)). These tracks cross the beamline and pass very close to the walls of the MTPCs.

  2. (ii)

    Backward track extrapolation (bin migration) uncertainty. The uncertainty on the target position can induce systematic bin migration while extrapolating tracks backwards to the surface of the target. The position of the target was changed in the Monte Carlo and hadron yields were recalculated. Differences were taken as systematic uncertainties. For tracks with a very small angle originating from the first two longitudinal bins, this uncertainty goes up to \(8\%\). Also, high angle tracks extrapolated toward the downstream face of the target are sensitive to the x and y shifts of the target, and for them the bin migration uncertainty is up to \(5\%\). For all other regions of the phase space, the bin migration uncertainty drops below \(1\%\).

  3. (iii)

    Reconstruction efficiency uncertainty. This uncertainty was estimated in the previous NA61/SHINE publications [8, 10]. Since the experimental setup and the reconstruction software did not change, the same value was used for the measurements presented in this paper. A conservative value of \(2\%\) is assigned for all bins.

  4. (iv)

    Particle identification (PID) uncertainty. The width of the energy loss distribution for a single bin depends on the number of clusters in tracks. The energy loss distribution should be a sum of Gaussians, where each Gaussian represents tracks with a distinct number of clusters. Selected tracks, in this case, are very long and the width of the energy loss distribution becomes nearly constant. For this reason, a single Gaussian was used to describe the energy loss distributions. However, at higher momenta and, thus, for larger momentum bins, the mean values will also shift and possibly create an asymmetry in the distribution. To check for potential biases, a sum of two Gaussians was used and the obtained yields were compared. The mean values of Gaussians were kept independent, while the width of the second Gaussian was forced to be larger than the width of the first Gaussian. For low momentum, no difference was found, however, for higher momentum and larger bins, a difference of up to \(1\%\) was observed for \(\pi ^\pm \) and \(p \). A constant value of \(1\%\) was assigned to all of these bins. Positively charged kaons are located under the proton peak in the energy loss distribution and the pion peak in the \(\hbox {m}^2_{tof}\) distribution for momentum larger than \(3\,\) \(\hbox {GeV}\!/\!c\). For this reason, the uncertainty for \(K^+\) can reach \(15\%\) for the higher momentum bins. In case of \(K^-\), the obtained uncertainties are similar to the ones for \(K^+\).

  5. (v)

    Feed-down uncertainty. Produced \(K^0_{s}\) and \(\varLambda \) in the target can decay before reaching the VTPC-1 and some of the daughter particles reconstructed in the TPCs can be extrapolated to the target surface. Since the correction for this effect is calculated with the Monte Carlo simulation, the number of produced \(K^0_{s}\) and \(\varLambda \) is model dependent. A systematic uncertainty of \(30\%\) on the feed-down correction factor was assigned, following the standard approach in Refs. [8, 10]. The systematic uncertainty is up to \(2\%\) for \(\pi ^\pm \) and protons. Mostly low momentum bins in the first and last longitudinal bins are affected.

  6. (vi)

    The ToF-F efficiency uncertainty. The uncertainty of the ToF-F efficiency was taken as a systematic uncertainty. It goes up to \(2\%\), but for most of the bins it is well below \(1\%\).

  7. (vii)

    Ad-hoc uncertainty. A constant conservative uncertainty of \(25\%\) was assigned to the bins that are corrected by the ad-hoc correction factor. The value was based on half the size of the typical ad hoc correction (\(50\%\)).

Total systematic uncertainties for individual analysis bins and for each particle type are shown in Figs. 17, 18, 19, 20 and 21 (middle row).

Respective contributions to the total systematic uncertainties for different particle types are shown in Fig. 22. Different regions of the phase space have different dominant contributions. For example, the dominant contribution in the third longitudinal bin (\(z_3\)) for \(\pi ^{\pm }\) yields comes from the reconstruction efficiency uncertainty, while the dominant contribution for \(K^\pm \) comes from the PID uncertainty.

5 Results and comparison with hadron production models

Results are presented in the form of double differential yields normalised by the total number of protons on target:

$$\begin{aligned} \frac{1}{N_{POT}}\left( \frac{d^2 n}{dp \cdot d\theta }\right) _{ijk} = \frac{1}{N_{POT}}\frac{N^{\alpha }_{ijk}C_{ijk}}{\varDelta p_{ijk}\varDelta \theta _{ij}}, \end{aligned}$$
(6)

where (ijk) are the (\(p, \theta , z\)) bin numbers, \(N_{POT}\) is the number of protons on target, \(\alpha = \pi ^+, \pi ^-, K^+, K^-, p \) is the hadron species, \(N^{\alpha }_{ijk}\) is the number of extracted hadrons in a given bin, \(C_{ijk}\) is the correction factor, \(\varDelta p_{ijk}\) is the momentum bin size, and \(\varDelta \theta _{ij}\) is the polar angle bin size. Uncertainties on the hadron yields are shown in Figs. 17, 18, 19, 20 and 21. The top rows show statistical uncertainties, the middle rows show systematic uncertainty and the bottom rows show total uncertainties. For \(\pi ^+\), \(\pi ^-\) and \(p \) statistical uncertainties dominate in the low (\(<40\,\) mrad) and high (\(>200\,\) mrad) polar angle region. While for \(40< \theta < 200\,\) mrad, the systematic uncertainties are comparable to or larger than the statistical uncertainties. For kaons, the total uncertainty is mostly dominated by the statistical uncertainty. Tables with numerical results are presented in Ref. [26].

5.1 Comparisons with models

The results were compared with NuBeam and QGSP_BERT physics lists from Geant4.10.03 [27, 28]. Detailed comparisons are presented in Figs. 23, 24, 25, 26, 27 and 28 for \(\pi ^+\) yields, in Figs. 29, 30, 31, 32, 33 and 34 for \(\pi ^-\) yields, in Figs. 35, 36, 37, 38, 39 and 40 for \(K^+\) yields, in Figs. 41, 42, 43, 44, 45 and 46 for \(K^-\) yields, and in Figs. 47, 48, 49, 50, 51 and 52 for \(p \) yields. The NuBeam physics list provides better predictions of \(\pi ^+\), \(\pi ^-\), \(K^+\), and \(K^-\) yields. However, both physics lists fail to accurately predict \(p \) yields. Similar behaviour was noticed in the previous NA61/SHINE measurements of primary proton-carbon interactions at \(31\,\) \(\hbox {GeV}\!/\!c\) [8], where it was shown that most of the models poorly reproduce proton yields. The earlier observation [10] that a better agreement with Fluka2011 predictions can be obtained by lowering the production cross section in Fluka2011 is confirmed.

5.2 Comparison with previous NA61/SHINE measurements

As previously mentioned, NA61/SHINE provided measurements of the \(\pi ^\pm \) yields emitted from the T2K replica target using data collected in 2009 [10]. Since the beam profiles for the data taken in 2009 and 2010 are different, a direct comparison between the 2009 measurements and the measurements presented in this paper is not possible. The beam profile for the 2009 measurements is wider, and the 2009 pion yields are expected to be larger for the low angle upstream longitudinal bins. The differences decrease for more downstream longitudinal bins and higher angles. But even for the downstream face of the target and high angles (\(>100\,\) \(\hbox {mrad}\)) perfect agreement is not expected since Monte Carlo simulations show small differences in re-interactions for different beam profiles. Detailed Monte Carlo studies can be found in Ref. [13]. However, under the assumption that major differences are only due to geometry – i.e. low angle secondaries cannot exit the target from the first longitudinal bin if the beam is very narrow, one can apply scaling to the radial beam distribution and achieve a similar radial distribution as in the previous measurement. The radial beam distribution was divided into 26 bins, \(0.5\,\) \(\hbox {mm}\) in size. A simple weight was applied to all selected tracks:

$$\begin{aligned} w = \left( \frac{N_{{ POT}, i}^{2009}}{N_{{ POT}}^{2009}}\right) \Big /\left( \frac{N_{{ POT}, i}^{2010}}{N_{{ POT}}^{2010}}\right) , \end{aligned}$$
(7)

where \(N_{{ POT}, i}^{2009(2010)}\) is the number of beam protons hitting the target in the \(i-th\) radial bin in data from 2009(2010) and \(N_{ POT}^{2009(2010)}\) is the total number of beam protons hitting the target. After scaling, the particle identification procedure was applied in the phase space binning as defined in Ref. [10]. Also, Monte Carlo and tof correction factors were calculated, but the ad hoc correction was not applied. It is important to note that systematic uncertainties were not reevaluated for the new phase space bins. Qualitative comparisons of \(\pi ^+\) and \(\pi ^-\) yields can be seen in Figs. 53,  54, respectively. Only two polar angle bins are selected and presented for all longitudinal bins. A quantitative agreement between the two sets of measurements is not expected due to the simplified assumptions described above, as well as differences in the beam divergence which were not accounted for. Indeed, some differences in the \(\pi ^+\) yields can be observed for small angles. However, in general, these two sets of measurements are consistent within about \(20\%\). Note that the systematic uncertainties were not reevaluated for these special 2010 measurements and they are not shown on the plots. Additionally, only differences in the radial beam distribution were taken into account, while differences in the beam divergence were ignored.

Fig. 53
figure 53

Double differential yields of positively charged pions as a function of momentum for the polar angle between \(20\,\) \(\hbox {mrad}\) and \(40\,\) \(\hbox {mrad}\) (a) and between \(100\,\) \(\hbox {mrad}\) and \(140\,\) \(\hbox {mrad}\) (b). Each panel shows a different longitudinal bin. The 2009 measurements are shown in black, while the 2010 data are shown in red

Fig. 54
figure 54

Double differential yields of negatively charged pions as a function of momentum for the polar angle between \(20\,\) \(\hbox {mrad}\) and \(40\,\) \(\hbox {mrad}\) (a) and between \(100\,\) \(\hbox {mrad}\) and \(140\,\) \(\hbox {mrad}\) (b). Each panel shows a different longitudinal bin. The 2009 measurements are shown in black, while the 2010 data are shown in red

In order to demonstrate the reliability of the computed \(\pi ^-\) yields, an independent full chain of data analysis was performed. By means of the software tools and procedures used in the analysis of data collected in 2009 [10] the differential yields of negatively charged hadrons (\(h^-\)) were extracted. The analysis was done with the standard selection and reconstruction cuts. The quantities computed with the measured data were corrected with a corresponding Monte Carlo correction. The \(h^-\) yields were computed with the most appropriate \(T_2\) and \(T_3\) trigger definitions. The resulting \(h^-\) yields were compared with the \(\pi ^-\) yields obtained within the analysis framework described above. Such a comparison is reasonable since at the beam momentum of 31 \(\hbox {GeV}\!/\!c\) the negatively-charged hadrons are strongly dominated by negatively-charged pions. It was concluded that both approaches provide yields in acceptable agreement. Some minor differences were observed only for the first longitudinal target bin, for small momentum (below 6 GeV/c) and polar angles (\(\theta \) below 40 mrad), and in the \(\theta \) interval [300; 400] mrad for the first three longitudinal target bins.

6 Dependence of the T2K re-weighting factors on the proton beam profile

The results presented in Sect. 5 will be used in the T2K neutrino beam simulation for re-weighting of the hadron yields on the target surface. Details of the currently used re-weighting procedure based on NA61/SHINE thin-target measurements are presented in Ref. [4].

The weights are simply calculated as the ratio of the data yields and the Fluka2011 yields for each \((p,\,\theta ,\, z)\) bin as follows:

$$\begin{aligned} W_{ijk} = \left( \frac{1}{N_{{ POT}}}\frac{n_{ijk}}{\varDelta p_{ijk} \varDelta \theta _{ij}}\right) _{data} \Big / \left( \frac{1}{N_{{ POT}}}\frac{n_{ijk}}{\varDelta p_{ijk} \varDelta \theta _{ij}}\right) _{{} { MC}}.\nonumber \\ \end{aligned}$$
(8)
Fig. 55
figure 55

Ratio of the simulated re-weighting factors produced with the \(T_2\) and \(T_3\) beam profiles for positively charged pions (a) and protons (b)

These weights are applied to all neutrinos that have a hadron ancestor exiting the target surface in the phase space covered by NA61/SHINE. As previously mentioned, hadron yields coming from the surface of the long target depend on the width and position of the incoming proton beam hitting the upstream face of the target. Since it was shown that this effect is mostly geometrical, there is the possibility that the re-weighting factors are invariant under the beam profile change. To test this hypothesis, Fluka2011.2c.5 was used as input for data and the NuBeam physics list from Geant4.10.03 as input for the Monte Carlo. Around \(40 \times 10^6\) protons on target were simulated for NA61/SHINE \(T_2\) and \(T_3\) beam profiles using both models. Re-weighting factors were calculated for both beam profiles and compared. Examples of the ratios for \(\pi ^+\) and \(p \) are shown in Fig. 55. Some differences can be noticed for the upstream z bins, while for other bins any differences are mostly below \(2\%\). It is important to note that the differences between the \(T_2\) and \(T_3\) beam profiles are very large in comparison to differences between the \(T_2\) and T2K beam profiles.

Thus, one can use the measured NA61/SHINE double differential hadron yields in the T2K flux simulation in the following way:

  1. (i)

    Run the simulation of interactions inside the target for the NA61/SHINE \(T_2\) beam profile.

  2. (ii)

    Calculate the re-weighting factors.

  3. (iii)

    Run the simulation with the T2K beam profile.

  4. (iv)

    Re-weight the new simulation using the previously calculated re-weighting factors.

7 Summary and conclusions

Measurements of the double differential yields of \(\pi ^+\), \(\pi ^-\), \(K^+\), \(K^-\) and \(p \) emitted from the surface of a 90-\(\hbox {cm}\)-long carbon target (T2K replica) with incoming \(31\,\) \(\hbox {GeV}\!/\!c\) protons were performed by the NA61/SHINE experiment at the CERN SPS. Yields of \(\pi ^+\) and \(\pi ^-\) were measured with improved precision compared to the previously published NA61/SHINE results, while \(K^+\), \(K^-\) and \(p \) yields were obtained for the first time. These measurements are crucial for reducing the hadron production component of the T2K (anti)neutrino flux error, which is the dominant component in the flux uncertainty. Any reduction of the flux uncertainties will directly improve measurements of the (anti)neutrino-nucleus cross sections as well as of the (anti)neutrino oscillation parameters in T2K. A simple method of using these results in T2K which avoids problems with the dependence on the incident proton beam profile is proposed.

The results were compared with the NuBeam and QGSP_BERT physics lists from Geant4.10.03 and show that none of the models predicts accurately the measured proton yields. This information can be used by model builders to improve hadronic Monte Carlo generators.