Measurement of Meson Resonance Production in $\pi^{-} + $C Interactions at SPS energies

We present measurements of $\rho^0$, $\omega$ and K$^{*0}$ spectra in $\pi^{-} + $C production interactions at 158 GeV/c and $\rho^0$ spectra at 350 GeV/c using the NA61/SHINE spectrometer at the CERN SPS. Spectra are presented as a function of the Feynman's variable $x_\text{F}$ in the range $0<x_\text{F}<1$ and $0<x_\text{F}<0.5$ for 158 GeV/c and 350 GeV/c respectively. Furthermore, we show comparisons with previous measurements and predictions of several hadronic interaction models. These measurements are essential for a better understanding of hadronic shower development and for improving the modeling of cosmic ray air showers.


Introduction
When cosmic rays of high energy collide with the nuclei of the atmosphere, they initiate extensive air showers (EAS). Earth's atmosphere then acts as a medium in which the particle shower evolves. It proceeds mainly through the production and interaction of secondary pions and kaons. Depending on the particle energy and density of the medium in which the shower evolves, secondary particles either decay or re-interact, producing further secondaries. Neutral pions have a special role. Instead of interacting hadronically, they immediately decay (cτ = 25 nm) into two photons with a branching ratio of 99.9%, giving rise to an electromagnetic shower component. When only the primary particle energy is of interest, and all shower components are sampled, a detailed understanding of the energy transfer from the hadronic particles to the electromagnetic shower component is not needed. However, for other measurements of air shower properties this understanding is of central importance.
A complete measurement of an air shower is not possible and particles are typically sampled only in select positions at the ground level or the ionization energy deposited in the atmosphere is measured. Therefore, the interpretation of EAS data, and in particular the determination of the composition of cosmic rays, relies to a large extent on a correct modelling of hadron-air interactions that occur during the shower development (see e.g. [1]). Experiments such as the Pierre Auger Observatory [2], IceTop [3], KASCADE-Grande [4] or the Telescope Array [5] use models for the interpretation of measurements. However, there is mounting evidence that current hadronic interaction models do not provide a satisfactory description of the muon production in air showers and that there is a deficit in the number of muons predicted at the ground level by the models when compared to the air shower measurements (see Refs. [6][7][8][9][10]).
To understand the possible cause of this deficit it is instructive to study the air shower development in a very simplified model [11] in which mesons are produced in subsequent interactions of the air cascade until the average meson energy is low enough such that its decay length is smaller than its interaction length. In each interaction a fraction f em of the shower energy is transferred to the electromagnetic shower component via the production and decay of neutral mesons. After n interactions the energy available in the hadronic part of the shower to produce muons is therefore E had = E 0 (1 − f em ) n , where E 0 denotes the primary energy of the cosmic ray initiating the air shower. In the standard simplified picture, one third of the interactions products of charged pions with air are neutral mesons. Assuming a typical value of n = 7 for the number of interactions needed to reach particle energies low enough that the charged mesons decay to muons rather than interact again, the simplistic model gives E had /E 0 6%. One way to increase this number is to account for the production of baryons and antibaryons to decrease f em [12]. Another possibilty has been recently identified [13,14] by noting that accelerator data on π + + p interactions [15][16][17] indicate that most of the neutral mesons produced in the forward direction are not π 0 s but ρ 0 mesons. With ρ 0 decaying into π + π − this would imply that the energy of the leading particle is not transferred to the electromagnetic shower component as it would be in the case of neutral pions and corresponingly f em is decreased leading to more muons at ground level.
Given these considerations it is evident that the modeling of air showers depends crucially on our knowledge of pion interactions with air. It can be shown (see e.g. [18,19]) that the relevant energies for the interactions in the last stage of the air shower development are in the range from 10 to 10 3 GeV. This range is accessible to fixed-target experiments with charged pion beams.
A large body of data is available at these energies for proton-nucleus interactions (e.g. [20][21][22][23][24]), but only a very limited amount of data exists for pion or kaon beams. A number of dedicated measurements for air-shower simulations have been performed by studying particle production on light nuclei at beam momenta up to 12 GeV/c (see, e.g. Ref. [25,26]). Unfortunately, at higher energies, there are no comprehensive and precise particle production measurements of π interactions with light nuclei of masses similar to air. Earlier measurements were either limited to a small acceptance in momentum space (e.g. Ref. [27]) or protons as target [15][16][17]28], or did not discriminate between the different secondaries [29].
To address the lack of suitable data for the tuning of hadronic interaction models used in air shower simulations, NA61/SHINE [30] collected new data with negatively charged pion beams at 158 and 350 GeV/c on a thin carbon target. Preliminary spectra of unidentified hadrons and identified pions were previously derived from this data set [31][32][33] and in this paper, we present the results of the measurement of ρ 0 , ω and K * 0 spectra in π − +C interactions at 158 and 350 GeV/c.
It is worthwhile noting that the measurements presented in this paper will not only be useful for interpretation of cosmic-ray calorimetry in air, but can also be beneficial for the understanding of hadronic calorimeters used in high-energy laboratory experiments. Hadronic interaction models used for calorimeter simulations are mostly tuned to and validated with the overall calorimeter response from test-beam data (see e.g. [34][35][36]). A tuning of these models to the data presented here will improve the description of the energy transfer from the hadronic to the electromagnetic shower component for individual interactions inside the calorimeter and thus increase the predictive power of the calorimeter simulation.
The paper is organized as follows: A brief description of the experimental setup, the collected data, data reconstruction and simulation is presented in Sec. 2. The analysis technique used to measure meson resonance production in π+C interactions is described in Sec. 3. The final results, with comparison to model predictions, and other experimental data are presented in Sec. 4. A summary in Sec. 5 closes the paper.   [30] (configuration for the π − +C data taking). The coordinate system used in this paper is indicated on the lower left. The incoming beam direction is along the z axis. The magnetic field bends charged particle trajectories in the x−z (horizontal) plane. The drift direction in the TPCs is along the y (vertical) axis. The beam and trigger instrumentation is indicated as an ellipse in the lower panel and detailed in the upper panel.
The 158 and 350 GeV/c secondary hadron beam was produced by 400 GeV/c primary protons impinging on a 10 cm long beryllium target. Negatively charged hadrons (h − ) produced at the target are transported downstream to the NA61/SHINE experiment by the H2 beamline, in which collimation and momentum selection occur. The beam particles, mostly π − mesons, are identified by a differential ring-imaging Cherenkov detector CEDAR [38]. The fraction of pions is ≈95% for 158 GeV/c and ≈100% for 350 GeV/c (see Fig. 2). The CEDAR signal is recorded during data taking and then used as an offline selection cut (see Sec. 3.1). The beam particles are selected by the beam trigger, T beam , then defined by the coincidence S1 ∧ S2 ∧ V0 ∧ V1 ∧ V1 p . The interaction trigger (T int = T beam ∧ S4) is given by the anti-coincidence of the incoming beam particle and S4, a scintillation counter, with a diameter of 2 cm, placed between the VTPC-1 and VTPC-2 detectors along the beam trajectory at about 3.7 m from the target, see Figs. 1(b) and 1(a). Almost all beam particles that interact inelastically in the target do not reach S4. The interaction and beam triggers were recorded in parallel. The beam trigger events were recorded with a frequency by a factor of about 10 lower than the frequency of interaction trigger events. The incoming beam trajectory is measured by a set of three Beam Position Detectors (BPDs), placed along the beamline upstream of the target, as shown in Fig. 1(a). These detectors are 4.8 × 4.8 cm 2 proportional chambers. Each BPD measures the position of the beam particle on the transverse plane with respect to the beam direction with a resolution of ∼100 µm (see Ref. [30] for more details).
For data taking on π − +C interactions, the target was an isotropic graphite plate with a thickness along the beam axis of 2 cm with a density of ρ = 1.84 g/cm 3 , equivalent to about 4% of a nuclear interaction length. During the data taking the target was placed 80 cm upstream of VTPC-1. 90% of data was recorded with the target inserted and 10% with the removed target. The latter set was used to estimate the bias due to interactions with the material upstream and downstream of the target.
Detector parameters were optimised using a data-based calibration procedure which also took into account their time dependences. Minor adjustments were determined in consecutive steps for: (i) detector geometry and TPC drift velocities and (ii) magnetic field map.
Each step involved reconstruction of the data required to optimise a given set of calibration constants and time dependent corrections followed by verification procedures. Details of the procedure and quality assessment are presented in Ref. [39].
The main steps of the data reconstruction procedure are: (i) finding of clusters in the TPC raw data, calculation of the cluster centre-of-gravity and total charge, (ii) reconstruction of local track segments in each TPC separately, (iii) matching of track segments into global tracks, (iv) fitting of the track through the magnetic field and determination of track parameters at the first measured TPC cluster, (v) determination of the interaction vertex using the beam trajectory fitted in the BPDs and the trajectories of tracks reconstructed in the TPCs (the final data analysis uses the middle of the target as the z-position, z = −580 cm) and (vi) refitting of the particle trajectory using the interaction vertex as an additional point and determining the particle momentum at the interaction vertex.
An example of a reconstructed π − +C interaction at 158 GeV/c is shown in Fig. 3. Amongst the many tracks visible are five long tracks of three negatively charged and two positively charged particles, with momentum ranging 5−50 GeV/c.
A simulation of the NA61/SHINE detector response is used to correct the measured raw yields of resonances. For the purposes of this analysis, the Epos 1.99 model was used for the simulation and calculation of correction factors. DPMJet 3.06 [40] was used as a comparison for estimation of systematic uncertainties. The choice of Epos was made due to both the number of resonances included in the model, as well as the ability to include the intrinsic width of these resonances in the simulation. Epos 1.99 rather than Epos LHC was used as it is better tuned to the measurements at SPS energies [41].
The simulation consists of the following steps: (i) generation of inelastic π − +C interactions using the Epos 1.99 model, (ii) propagation of outgoing particles through the detector material using the Geant 3.21 package [42] which takes into account the magnetic field as well as relevant physics processes, such as particle interactions and decays, (iii) simulation of the detector response using dedicated NA61/SHINE packages which also introduce distortions corresponding to all corrections applied to the real data, (iv) simulation of the interaction trigger selection by checking whether a charged particle hits the S4 counter, (v) storage of the simulated events in a file which has the same format as the raw data, (vi) reconstruction of the simulated events with the same reconstruction chain as used for the real data and (vii) matching of the reconstructed to the simulated tracks based on the cluster positions.
For more details on the reconstruction and calibration algorithms applied to the raw data, as well as the simulation of the NA61/SHINE detector response, used to correct the raw data, see Ref. [43].

Analysis
In this section we present the analysis technique developed for the measurement of the ρ 0 , ω and K * 0 spectra in π − +C production interactions. Production interactions are interactions with at least one new particle produced, i.e. interactions where only elastic or quasi-elastic scattering occurred are excluded. The procedure used for the data analysis consists of the following steps: (i) application of event and track selection criteria, (ii) combination of oppositely charged tracks, (iii) accumulating the combinations in bins of Feynman-x, x F , calculated by using the mass of the ρ 0 meson for the boost between the lab and centre of mass frames, (iv) calculation of the invariant mass of each combination, assuming pion masses for the particles, (v) fitting of the invariant mass distributions with templates of resonance decays to obtain raw yields and (vi) application of corrections to the raw yields calculated from simulations.
These steps are described in the following subsections.

Event and track selection
A total of 5.49×10 6 events were recorded at 158 GeV/c and 4.48×10 6 events were recorded at 350 GeV/c. All events used in the analysis are required to pass cuts to ensure both an interaction event and events of good quality. These cuts are: (i) Well-contained measurements of the beam with the BPDs and a successful reconstruction of the beam direction.
(ii) Pion identification with the CEDAR (only for 158 GeV/c as the impurity of the 350 GeV/c beam is below 0.1%).
(iii) No extra (off-time) beam particles detected within ±2 µs of the triggered beam particle. (iv) All events must have an interaction trigger as defined in Sec. 2.
(v) The main vertex point is properly reconstructed.
(vi) The z-position of the interaction vertex must be between −597 cm and −563 cm.
The cut (vi) is illustrated in Fig. 4 and its purpose is to remove the majority of interactions that do not occur in the target. This cut will increase the Monte Carlo correction because some in-target events are removed due to the vertex z resolution. However, as there is good agreement between the data and Monte Carlo vertex z distributions, this will only have a minor impact on systematic uncertainties. An alternative method to correct for out-of-target interactions would be to measure the resonance yields in the targetremoved data, but the template-fitting method used in this paper can not be applied to data sets with small statistics such as the target-removed data.
The range of this cut, (−597, −563) cm, was selected to maximise the event number, while minimising the contamination due to off-target events. The residual contribution of non-target interactions after applying this cut is 0.8%.
The number of events after these cuts is 2.78×10 6 for 158 GeV/c and 2.59×10 6 for 350 GeV/c. The efficiency of these cuts is shown in Table 1 for 158 GeV/c and 350 GeV/c beam momentum.
After the event cuts were applied, a further set of quality cuts were applied to the individual tracks. These were used to ensure a high reconstruction efficiency as well as reducing contamination by tracks from secondary interactions. These cuts are: (i) The track is well reconstructed at the interaction vertex.
(ii) The fitted track is inside the geometrical acceptance of the detector.
(iii) The total number of clusters on the track should be greater than or equal to 30.
(iv) The sum of clusters on the track in VTPC-1 and VTPC-2 should be greater than or equal to 15, or the total number of clusters on the track in GTPC should be greater than or equal to 6.  (v) The distance of closest approach of the fitted track to the interaction point (impact parameter) is required to be less than 2 cm in the x-plane and 0.4 cm in the y-plane.
For the acceptance cut, (ii), we studied the selection efficiency with simulations as a function of azimuthal angle φ for bins in total momentum p and transverse momentum p T . This leads to a three-dimensional lookup table that defines the regions in (φ, p, p T ) for which the selection efficiency is larger than 90%. Within this region, the detector is close to fully efficient and the corresponding correction factor is purely geometric, since the production of resonances is uniform in φ for an unpolarised beam and target.
The efficiency of each track-selection cut is shown in Table 2 for the data collected at 158 GeV/c and 350 GeV/c.
No particle identification was used in this analysis. This increases the background but simplifies the analysis and increases the longitudinal momentum range of the results. The longitudinal momentum fraction, x F , was calculated as where p L is the longitudinal momentum of the ρ 0 -candidate in the centre of mass frame in the pionnucleon interaction and √ s is the centre of mass energy of the interaction. p L is calculated using the mean mass of the ρ 0 meson (m ρ 0 = 0.775 GeV/c 2 ) when boosting between the lab frame and the centre of mass frame. The mass of the nucleon used in the calculations is taken to be the average of the proton and neutron masses. There is no difference between x F and the Feynman-x, x F = p L /p L (max), for a particle pair originating from a ρ 0 meson decay. For ω or K * 0 decays the difference is less than 0.01 in the x F range covered by the results presented here. This difference approaches zero with increasing x F . For simplicity, in the following, x F is denoted as x F .

Signal extraction
The raw yields of ρ 0 , ω and K * 0 mesons were obtained by performing a fit of inclusive invariant mass spectra. These were calculated by assuming every track that passes the cuts is a charged π. Then, for all pairs of positively and negatively charged particles, the invariant mass was calculated assuming pion masses for both particles. Examples of invariant mass spectra at 158 GeV/c and 350 GeV/c are shown in Fig. 5.
In the inclusive invariant mass spectra, there is a large combinatorial background, especially at low x F . The method used to estimate the background is the so-called charge mixing method, which uses the invariant mass spectra calculated exactly as explained above, but using same-charge instead of oppositecharge tracks. The resulting charge mixing background spectra are shown in Fig. 5. As the normalisation of these spectra will differ from the true background, the normalisation of the charge-mixed spectra is included as a parameter in the fit to the data. The uncertainty introduced by choosing this method of calculating the background is estimated by comparing it with a background found from simulations. This Monte Carlo background is defined as the sum of: • combinations of tracks that come from decays of different resonances, i.e. one track from a ρ 0 and one from an ω (this can be done as the parent particles of tracks are known in the simulation), • combinations of tracks coming directly from the interaction vertex and • combinations of tracks coming from resonances (both meson and baryon) that are not included in the individual fitting-templates listed below.
As can be seen in Fig. 5, there is a good overall agreement between the two background estimation methods and the residual differences are used to estimate the systematics due to background subtraction. The boundaries of the default fit range are chosen to include all resonances of interest and to select the invariant mass region for which there is good agreement between the two background estimates, and hence the results have small systematic biases. This leads to the fit range in m inv (π + π − ) of 0.475−1.35 GeV/c 2 .
Event mixing was also investigated as an alternative way to estimate the background by taking particles from different events to make invariant mass spectra of π + π − candidates, but this method was found to not describe the shape of the background in simulations over the mass range of the ρ 0 , ω and K * 0 distributions needed to obtain reliable fit results. Refining the event mixing method by splitting the data into multiplicity classes did not improve the quality of this method.
As there is a large number of resonances in the m inv (π + π − ) region around the mass of the ρ 0 , such as the ω and K * 0 mesons, they all have to be taken into account. This has previously been shown in Ref. [44], where only taking into account ρ 0 and ω mesons resulted in an inadequate fit, with a spurious peak at 0.6 GeV/c 2 in the π + π − invariant mass spectra, due to decays of K * 0 mesons, where the kaon is assigned the mass of a pion. As there is no particle identification used in this analysis, the effect due to K * 0 meson Combinations / 0.08 GeV production is expected to be strong and it must be included in the fitting procedure. Other contributions that are not represented by an individual template, such as Λ decay products, are included in the Monte Carlo background.
The fitting procedure uses templates of the invariant mass distribution for each resonance of importance. This method of template fitting is similar to ideas used by many other experiments such as ALICE [45], ATLAS [46], CDF [47] and CMS [48], where it is also known as the cocktail fit method. The templates are constructed by passing simulated π − +C production interactions, generated with the Epos 1.99 [12] hadronic interaction model using Crmc 1.5.3 [49], through the full NA61/SHINE detector Monte Carlo chain and then through the same reconstruction routines as the data. Crmc is an event generator package with access to a variety of different event generators, such as DPMJet 3.06 [40] and Epos LHC [50].
The template method also allows for the fitting of resonances with dominant three body decays, such as ω, as well as resonances with two-body non-π + π − decays, such as K * 0 . A list of all decays with a branching ratio of over 1% that are used in the templates is shown in Table 3. The templates and the data are split into bins of x F , calculated as in Eq. 1.
The templates in the fit are the charge mixing background and the following resonances: ρ 0 , K * 0 , ω, f 2 , f 0 (980), a 2 , ρ 3 , η and K 0 S . The templates were generated from reconstructed simulations that have all the standard reconstruction cuts applied; they include effects due to the resolution of the detector and the fiducial acceptance. The templates used in the fits are presented in App. B. As can be seen, the a 2 and ρ 3 templates are broad and featureless similar to the background template. For this reason, these resonances cannot be fitted reliably and will be subtracted together with the background from figures displaying the result of the template fitting in the following.
The fit to the π + π − mass spectrum is performed between masses of 0.475 GeV/c 2 and 1.35 GeV/c 2 using the expression where f i is the contribution for particle i, T i is the associated invariant mass template and m inv is the invariant mass. f i is constrained to be between 0 and 1. The templates are normalised to the same number Table 3: Decays of resonances for which m inv (π + π − ) templates were calculated and fitted. Only decays with a branching ratio greater than 1% into at least one positively and one negatively charged particle are considered. Branching ratios were taken from [51] .

Resonance
Decay of combinations as the data over the range of the fit. The fit uses a standard Poissonian likelihood function where k j is the actual number of combinations in the invariant mass bin j and µ j is the expected number of combinations, taken from Eq. (2).
Two examples of the template-fitting are shown in Fig. 6 for 158 GeV/c and 350 GeV/c. The fitted chargemixing background as well as the contribution of the featureless a 2 and ρ 3 resonances are subtracted to highlight the different resonances. The full set of template fits are displayed in App. C for all x F -bins and the two beam energies.
After the fractions of each templates have been determined in the fit, the raw mean multiplicity n i of meson i per event in a given x F bin is determined from where N acc is the number of events after selection cuts, f i is the result of the fit and T i is the template of the meson of interest i, e.g. ρ 0 .

Correction factors
In order to obtain the true number of ρ 0 , ω and K * 0 mesons produced in π − +C production interactions, three different corrections were applied to the raw yields. These corrections were calculated using 20 million events generated by the Epos 1.99 model using the Crmc package.
(i) The Monte Carlo simulations that were used to obtain the templates for the fitting procedure were used to calculate corrections due to geometrical acceptance, reconstruction efficiency, losses due to trigger bias, quality cuts and bin migration effects. For each x F bin, the correction factor C(x F ) is given by where a) n gen MC (x F ) is the mean multiplicity per event of ρ 0 (ω, K * 0 ) mesons produced in a given x F bin in π − +C production interactions at a given beam momentum, including ρ 0 (ω, K * 0 ) mesons from higher mass resonance decays and b) n acc MC (x F ) is the mean multiplicity per event of reconstructed ρ 0 (ω, K * 0 ) mesons that are accepted after applying all event and track cuts.
The statistical uncertainties of the corrections factors were calculated assuming binomial distributions for the number of events and resonances.
(ii) The contribution from ρ 0 mesons produced by re-interactions in the target. This was estimated from the simulations. This contribution is less than 1% for all bins apart from x F < 0.15, where the contribution is 1.7%. (iii) The fitting method was validated by applying the same procedure to the simulated data set, using the background estimated from either the charge mixing method or the true background obtained from the simulation. This difference is then applied as a multiplicative correction to the raw yield, is the true yield of resonance i and f fit i is the yield that comes from the fit to the simulations. This correction is calculated separately for both background estimations and applied to the fits to the data that used the same estimation.
The breakdown of these correction factors can be seen, for the ρ 0 spectra at p beam = 158 and 350 GeV/c, in Fig. 7. The correction factor C(x F ) is broken down into three contributions: bias from the interaction trigger (T2), geometrical acceptance, and selection efficiency. The geometrical acceptance dominates for large x F values.
The correction derived from Monte Carlo simulations could introduce a bias in the result if the p T spectrum of the model differed from the true shape. This is because the extrapolation to full p T phase space is based on the model spectrum. To investigate this effect another hadronic interaction model was used, DPMJet 3.06 [40]. This model also provides p T spectra for each resonance measured in this analysis, and the difference between the correction factors found for DPMJet 3.06 and Epos 1.99 is less than 4%. This suggests that any bias introduced by the extrapolation to full p T phase space is small. The difference between the correction factors is used in the estimate of the systematic uncertainties.
The final measurement is calculated by taking the average of the result using the two different background description methods, charge mixing and Monte Carlo background, with all the correction factors that change calculated separately for the two methods. The difference between these two methods is taken to be a systematic uncertainty.

Uncertainties and Cross Checks
The statistical uncertainties in the ith x F -bin are given by where n i and σ(n i ) are the raw meson mean multiplicity per event and the uncertainty on this multiplicity that comes from the template fit. The contribution due to the uncertainty of the meson multiplicity dominates as the uncertainty ∆C i of the corrections factors is only from the statistics of the simulation (20 million events) which is much larger than that of the data.
The main contributors to the systematic uncertainties are (i) The fitting method used for estimating the background shape and the fit procedure. The systematic uncertainty is taken to be half the difference between the two methods, using either charge mixing or Monte Carlo background, after the respective validation corrections have been applied. This estimate therefore combines the systematic uncertainty due to both the fitting method validation correction and the background estimation used and this is the dominant systematic uncertainty.
(ii) Correction factors. The correction factors calculated above were compared with factors found using a different hadronic interaction model, DPMJet 3.06.
(iii) Track cuts. The effect of the event and track selection cuts were checked by performing the analysis with the following cuts changed, compared to the values shown in Sec. 3.1.
a) The cut on the z-position of the interaction vertex was changed to be between −590 cm and −570 cm.
b) The window in which off-time beam particles were not allowed was decreased from 2 µs to 1.5 µs.
c) The minimum number of clusters on the track was decreased to 25.
d) The sum of clusters on the track in VTPC-1 and VTPC-2 was decreased to 12 or increased to 18.
e) The impact parameter cuts were increased to less than 4 cm in the x-plane and 2 cm in the y-plane.
The systematic uncertainties were estimated from the differences between the results obtained using the standard analysis and ones obtained when adjusting the method as listed above. The individual systematic uncertainties were added in quadrature to obtain the total systematic uncertainties. They are dominated by the correction factor contribution, up to 15%, whereas the other contributions are less than 4%. Other sources of uncertainty, such as using templates from a different model, are found to be much smaller.
The fraction of target removed tracks is less than 0.15% in all x F bins. The shape of the target removed distributions, after applying all the track and event cuts, is consistent with the background description so there is no additional correction or systematic uncertainty considered.
Several cross checks were performed to validate the results and check their stability. These include extending the range of the m inv (π + π − ) fit, using the Breit-Wigner function to describe the ρ 0 instead of a template as well as a few other more simple checks.

Fit range
The default fit range used in this analysis was restricted to the mass ranges of the resonances of interest. We tested an extended fit range by including all data down to the kinematic threshold of m inv (π + π − ) = 2m π . For this purpose additional templates needed to be taken into account including electrons and positrons pair-produced in the target by photons from π 0 decays. The sum of all resonances produced by the Epos 1.99 model can however not describe the low m inv (π + π − ) region satisfactorily. In particular, a significant bump at a mass of ≈0.4 GeV/c 2 appears to be in the data that does not have a counterpart in the templates. No resonance, meson or baryon, could be found in Epos 1.99 that could describe this bump. To avoid any bias the region of 0.35 GeV/c 2 < m inv (π + π − ) < 0.4 GeV/c 2 was excluded from the fit. Further discussions about the study of this bump are given in App. D.
Once this region is excluded from the fit a reasonable description of the m inv distribution down to the kinematic limit can be achieved, as shown in Fig. 8. However, the fit quality is worse and the agreement between the two background estimates is weaker. The poorer fit quality is most likely a combination of poorer performance of the estimate of the combinatorial background close to the kinematic threshold and the missing template to describe the bump at ≈0.375 GeV/c 2 .
The yields obtained with the extended range differ by less than the systematic uncertainties from the yields with the original range, with the exception of one bin, and, to be conservative, the corresponding differences, which are of the order of 10%, are included in the systematic uncertainty.

ρ 0 mass
We checked for possible nuclear effects on the ρ 0 mass [52,53] by removing the ρ 0 template from the fit and replacing it with a Breit-Wigner function. The function used is the one used in Ref. [54] with a modification to the decay width following Refs. [55] and [56], where the decay width is a function of mass m inv ,  where m R is the mean mass of the fitted resonance and Γ is given by where q and q R are the pion three-momenta in the rest frame of the resonance, calculated with mass m inv and m R , respectively. The parameter δ in the cutoff function has a value δ = 0.3 GeV/c.
We considered the mass as a free parameter and fixed the width value to the one provided by the particle data group [51]. The obtained mass values are consistent with the values quoted by the particle data group as shown in Fig. 9. The weighted average of the fitted masses is 0.772 ± 0.001 GeV/c 2 , with no significant difference between the 158 and 350 GeV/c data.
A simpler Breit-Wigner function was also tested, It is the function used to both sample resonances and generate their widths in Epos 1.99. Even though this function does not directly take into account effects which are considered in the event generator, such as decay products approaching the lower kinematic limit, or energy conservation for decay products at higher mass, the resulting fitted masses are compatible with the results from the more complicated Breit-Wigner function, Eq. (7).
The yields of the ρ 0 when fitting with this Breit-Wigner function differ slightly from the yields calculated using the standard analysis method. These small differences of the order of 3% are included in the systematic uncertainties. A comparison of the yields from the standard template analysis method, the extended fit range and when fitting a Breit-Wigner function (Eq. (7)) is shown in Fig. 10. As can be seen the differences are within the systematic uncertainties of the standard analysis. These small differences, of the order of 3% for the fits with a Breit-Wigner function and 10% for the extended fit range, are added in quadrature to the systematic uncertainties.

Further checks
Further cross checks were performed to probe the stability of the fit and yield result. These include (i) The data, along with the templates, were split into two equally sized regions of polar angle. If there was any polar-angle dependence of the result introduced by insufficient modeling of different parts of the detector, this would appear in a difference between the spectra from these independent data sets. The resulting multiplicity spectra were consistent within statistical uncertainties.
(ii) The data set was split according to different time ranges, both a night and day split as well as a first half and second half split in run taking. Any possible systematic differences in the detector which depend on time would result in discrepancies in the spectra from the different time ranges. Both resulting x F spectra were again consistent within statistical uncertainties.
(iii) Instead of assuming the pion mass for both tracks, one track was allocated the kaon mass. This means that the number of combinations used has to double, as both combinations of masses have to be taken into account for any given pair of tracks to allow for the kaon to be either of the two charges. This also then increases the background even further and because of the different shape of the background under the π K invariant mass distribution, the systematic uncertainty for this method is larger than for the π π method. The multiplicity spectra from this method were consistent within statistical and systematic uncertainties of the standard analysis method.
All these performed cross checks gave results consistent within the total uncertainties of the standard analysis.

Results
The yields of ρ 0 , ω, and K * 0 mesons in π − +C production interactions at 158 GeV/c and 350 GeV/c were calculated in bins of x F as follows where N prod is the number of interaction events minus the events with elastic and quasi-elastic scattering (which are not included), N part is the true number of produced resonances, n(x F ) is the raw mean multiplicity per event of the meson from Eq. (4), ∆x F is the width of the x F bin and C(x F ) is the total correction factor for losses of event and multiplicity, as detailed above. Measured points with large statistical or systematic uncertainties (greater than 50%) are not shown. This cut removes three data points at large x F for the ω spectrum and one data point at large x F for the K * 0 spectrum at 158 GeV/c. In case of the data taken at 350 GeV/c only a limited x F -range between 0 and 0.5 is accessible within the acceptance of NA61/SHINE. Only one data point of the ω spectrum survived the cut on the maximum uncertainty and none for the K * 0 spectrum. Therefore we present only ρ 0 spectra for the 350 GeV/c data.
The spectra of ρ 0 , ω, and K * 0 mesons produced in production π − +C interactions are shown in Fig. 11. The average x F in each bin is used to display the data points in this and in the following figures. It is worthwhile noting that this average is not corrected for the detector acceptance within the bin and is calculated from  all oppositely charge combinations including combinatorial background. For a detailed comparison of this data with model predictions it is therefore recommended to compare to model predictions binned in the same way as the data rather than comparing them at the average x F .
As can be seen in Fig. 11, no dependence of the ρ 0 multiplicities on beam energy was found within the uncertainties of the measurement. Out of the three resonances studied here, the multiplicity of ρ 0 mesons is the largest at large x F , i.e. the region most relevant for the development of cosmic-ray air showers. Numerical results, including statistical and systematic uncertainties, are given in Tables 4, 5, and 6. It is worthwhile noting that due to improvements in the analysis procedure the final ρ 0 multiplicities at 158 GeV/c listed in Tab. 4 are about 25% smaller than the preliminary results presented in [33].
The measured spectra are compared to model predictions by QGSJet II-04 [57], Epos 1.99 [12], DPM-Jet 3.06 [40], Sibyll 2.1 [58], Sibyll 2.3 [59] and Epos LHC [50] in Figs. 12 and 13. For the purpose of display, the multiplicities were scaled by x F . It can be seen that in the low x F region (< 0.3) all hadronic interaction models overestimate the ρ 0 yield with discrepancies of up to +80%. At intermediate x F (0.4 < x F < 0.7) the ρ 0 production is underestimated by up to −60%. It is interesting to note that even if QGSJet II-04, Sibyll 2.3 and Epos LHC were tuned to π + +p data from NA22 [17], these models cannot reproduce the measurement presented here. The large underestimation in QGSJet II-04 is mainly for non-forward ρ 0 production which is not treated explicitly in the model. This explains the large difference in spectral shape compared to the other hadronic models and the large deviations between the model and the measurement. The best description of our data in the forward range (x F > 0.4) is given by Sibyll 2.3, which describes the data within 10%.
The shape of the measured ω spectrum is in approximate agreement with all of the models shown (QGSJet II-04 does not include ω mesons in the model). Also the measured normalisation is approximately reproduced by all models but Epos 1.99, which produces too many ω mesons above x F > 0.1.
The measured multiplicity of K * 0 mesons is not reproduced by any of the models over the full x F range. DPMJet 3.06 gives a correct description of the yields only at low x F but underpredicts the multiplicity at large x F and the opposite is true for Epos LHC and Epos 1.99 which are in agreement with the measurement only at x F 0.6. Sibyll 2.3 and Sibyll 2.1 predict a too low number of K * 0 mesons at all x F values.
The ratio between combinations of the three meson measurements are shown in App. E, where it can be seen that no model can consistently describe the results.
The comparison between results from this analysis to measurements of other experiments are presented in Fig. 14 for ρ 0 and ω mesons. The two other experiments shown are NA22 [17] and LEBC-EHS (NA27) [60], both of which used a hydrogen target. NA22 had a π + beam at 250 GeV/c while LEBC-EHS had a π − beam at 360 GeV/c. The results from NA22 and LEBC-EHS are scaled by their measured inelastic cross sections: 20.94 ± 0.12 mb for NA22 [61] and 21.6 mb for LEBC-EHS [60]. There is good agreement between the previous measurements with proton targets and the results from this analysis for x F < 0.6. At larger x F the ρ 0 yields measured in this analysis show a decrease that is not present in the π+p data and could thus be an effect of the nuclear target used for the measurement presented here. The comparison of the measurements of the ω multiplicities shows no significant differences between the other experiments and results from this analysis.

Summary
This article presents experimental results on ρ 0 , ω and K * 0 x F -spectra in π − +C production interactions at 158 GeV/c and the ρ 0 spectra at 350 GeV/c from the NA61/SHINE spectrometer at the CERN SPS. These results are the first π − +C measurements taken in this energy range and are important to tune hadronic interaction models used to understand the measurements of cosmic-ray air showers.
The comparisons of the measured spectra to predictions of hadronic interaction models suggests that for all models further tuning is required to reproduce the measured spectra of ρ 0 , ω and K * 0 mesons in the full range of x F . Recent re-tunes of these models to resonance data in π + p interactions resulted in changes of the muon number at ground of up to 25% [14,59]. The new data provided here for π+C interactions gives a more adequate reference for pion-air interactions relevant for air showers and will help to establish the effect of forward resonance production on muons in air showers with the precision needed for using the muon number to estimate the particle type of primary cosmic rays, as e.g. planned within the upgrade of the Pierre Auger Observatory [62].  Figure 14: Scaled x F -spectra of meson production in π − +C production interactions at 158 and 350 GeV/c (350 GeV/c shifted by 0.035). The error bars show the statistical, the bands indicate systematic uncertainties (where available). The black points are from this experiment, blue squares are from NA22 [17], red triangles are from LEBC-EHS (NA27) [60]. ρ 0 spectra are shown on the left and ω spectra on the right. Table 4: Average multiplicity of ρ 0 in π − +C interactions at 158 GeV/c and 350 GeV/c, binned in x F .  Table 5: Average multiplicity of ω in π − +C interactions at 158 GeV/c, binned in x F .  Table 6: Average multiplicity of K * 0 in π − +C interactions at 158 GeV/c, binned in x F .   Figure 16: Invariant mass distribution of opposite charged particles, calculated assuming pion masses, in π − +C interactions at 158 GeV/c. Dots with error bars denote the data and the fitted resonance templates are shown as filled histograms. The fitted background and high mass resonances have been subtracted. Two fits with different m inv (π + π − ) ranges are shown on the left and right column. The fit range is equal to the displayed range, but in the extended-range fit on the right the mass region 0.35 < m inv (π + π − ) < 0.4 is excluded (see discussion App. D), as indicated by the grey points. (c) 0.6 < x F < 0.7 Figure 17: Invariant mass distribution of opposite charged particles, calculated assuming pion masses, in π − +C interactions at 158 GeV/c. Dots with error bars denote the data and the fitted resonance templates are shown as filled histograms. The fitted background and high mass resonances have been subtracted. Two fits with different m inv (π + π − ) ranges are shown on the left and right column. The fit range is equal to the displayed range, but in the extended-range fit on the right the mass region 0.35 < m inv (π + π − ) < 0.4 is excluded (see discussion App. D), as indicated by the grey points. (c) 0.9 < x F < 1 Figure 18: Invariant mass distribution of opposite charged particles, calculated assuming pion masses, in π − +C interactions at 158 GeV/c. Dots with error bars denote the data and the fitted resonance templates are shown as filled histograms. The fitted background and high mass resonances have been subtracted. Two fits with different m inv (π + π − ) ranges are shown on the left and right column. The fit range is equal to the displayed range, but in the extended-range fit on the right the mass region 0.35 < m inv (π + π − ) < 0.4 is excluded (see discussion App. D), as indicated by the grey points.  Figure 19: Invariant mass distribution of opposite charged particles, calculated assuming pion masses, in π − +C interactions at 350 GeV/c. Dots with error bars denote the data and the fitted resonance templates are shown as filled histograms. The fitted background and high mass resonances have been subtracted. Two fits with different m inv (π + π − ) ranges are shown on the left and right column. The fit range is equal to the displayed range, but in the extended-range fit on the right the mass region 0.35 < m inv (π + π − ) < 0.4 is excluded (see discussion App. D), as indicated by the grey points.

D. Discussion of the bump in the extended range fit
The fits with the extended invariant mass range show a bump in the data at low x F that is not described by the template fit (see right columns in Figs. 16 to 20). A large number of templates from different resonances were investigated to describe the excess of combinations at low invariant masses. The resonances were chosen from the particles with the highest yield in the region of invariant mass where the excess was located. Most of these resonances have a dominant decay which is either into three (or more) particles, or two-body decays but into particles other than two pions. As the invariant mass in this analysis is calculated assuming the particles are pions from a two-body decay, this will shift the calculated mass away from the true mass of the resonance. The studied resonances are listed in the table below and they were chosen by looking at the invariant mass distribution of particles produced in Epos 1.99 that produce a combination of negative and positive tracks in the region of m inv (π + π − ) ≈ 0.375 GeV/c 2 . Particles not produced by this model were not considered.
resonance mass / (GeV/c 2 ) ≈peak in m inv (π + π − )/(GeV/c 2 ) dominant decay φ 1.020 0. We found that none of these resonances can describe the bump seen at a m inv (π + π − ) ≈ 0.375 GeV/c 2 . The best-fit particles are the first two in the table: φ and Λ. However both of these have features that are not present in the data. φ has a peak in m inv (π + π − ) just below the bump and the Λ-template is too broad with no peak near the bump. All other templates were either too broad, had no peak, or their peak was too far away from the bump. The conversion of γ into e + e − was also investigated, but the corresponding templates also can not describe the bump. Furthermore, we tried combinations of the resonances listed above without success, though we can not exclude that a particular combination could fit the bump since not all possible combinations were explored.
From a study of the ionisation energy deposit of the tracks in the TPCs we conclude that the bump is caused by pion combinations. The bump is not caused by re-interactions in the detector or the decay of long lived particles as it remains present even under the tightening of impact parameter cuts, which would remove such particles. It is interesting to note that the mass of the bump compatible with the f 0 (500) meson, however the width seen here is much smaller than quoted by the particle data group [51]. .