arxiv: v1 [astro-ph.im] 9 Apr 2013

Similar documents
Parameters Sensitive to the Mass Composition of Cosmic Rays and Their Application at the Pierre Auger Observatory

Search for ultra-high Energy Photons with the Pierre Auger Observatory

arxiv: v1 [astro-ph.he] 31 Dec 2018

Numerical study of the electron lateral distribution in atmospheric showers of high energy cosmic rays

Mass Composition Study at the Pierre Auger Observatory

Search for clustering of ultra high energy cosmic rays from the Pierre Auger Observatory

The Pierre Auger Observatory in 2007

STUDY ON MASS COMPOSITION OF EXTENSIVE AIR SHOWER WITH ULTRA HIGH ENERGY COSMIC RAYS USING Q PARAMETER AND THEIR MUON COMPONENT

Primary Particle Type of the Most Energetic Fly s Eye Air Shower

Investigation on mass composition of UHE cosmic rays using CRPropa 2.0

The Physics of Ultrahigh Energy Cosmic Rays. Example Poster Presentation Physics 5110 Spring 2009 Reminder: Posters are due Wed April 29 in class.

Longitudinal profile of Nµ/Ne in extensive air showers: Implications for cosmic rays mass composition study

arxiv: v1 [astro-ph.im] 7 Sep 2015

Geosynchrotron radio emission from CORSIKAsimulated

Extensive Air Showers and Particle Physics Todor Stanev Bartol Research Institute Dept Physics and Astronomy University of Delaware

Ultrahigh Energy cosmic rays II

Measurement of the cosmic ray spectrum and chemical composition in the ev energy range

arxiv: v1 [astro-ph.im] 14 Sep 2017

Załącznik 3. Autoreferat w języku angielskim

A CORSIKA study on the influence of muon detector thresholds on the separability of primary cosmic rays at highest energies

Studies of Ultra High Energy Cosmic Rays with the Pierre Auger Observatory

On the Combined Analysis of Muon Shower Size and Depth of Shower Maximum

On the energy deposition by electrons in air and the accurate determination of the air-fluorescence yield

Constraints on the energy spectra of charged particles predicted in some model interactions of hadrons with help of the atmospheric muon flux

Hadronic interactions of ultra-high energy cosmic rays

Experimental Constraints to high energy hadronic interaction models using the Pierre Auger Observatory part-i

PoS(ICRC2017)326. The influence of weather effects on the reconstruction of extensive air showers at the Pierre Auger Observatory

The influence of the observatory latitude on the study of ultra high energy cosmic rays

Analytic description of the radio emission of air showers based on its emission mechanisms

arxiv: v2 [astro-ph.im] 24 Nov 2009

Journal of Asian Scientific Research STEEPNESS OF THE LATERAL DISTRIBUTION FUNCTION OF SECONDARY HADRONS IN EXTENSIVE AIR SHOWERS. M.

arxiv: v1 [astro-ph.he] 14 Jul 2017

Study of muon bundles from extensive air showers with the ALICE detector at CERN LHC

arxiv: v1 [astro-ph] 30 Jul 2008

Ultra High Energy Cosmic Rays: Observations and Analysis

PDF hosted at the Radboud Repository of the Radboud University Nijmegen

Detection of Cosmic Rays at Ultra-High Energies with Phase I of the Square Kilometre Array (SKADS) Olaf Scholten and Heino Falcke

arxiv:hep-ph/ v1 25 Nov 1999

The KASCADE-Grande Experiment

arxiv: v1 [astro-ph.im] 13 Sep 2017 Julian Sitarek University of Łódź, PL Lodz, Poland

RESULTS FROM THE PIERRE AUGER OBSERVATORY

Senior Design Proposal

The AUGER Experiment. D. Martello Department of Physics University of Salento & INFN Lecce. D. Martello Dep. of Physics Univ. of Salento & INFN LECCE

Possible sources of ultrahigh-energy cosmic protons A. V. Uryson

Ultra-High-Energy Cosmic Rays: A Tale of Two Observatories

arxiv: v2 [hep-ph] 23 Jun 2016

ON THE WAY TO THE DETERMINATION OF THE COSMIC RAY MASS COMPOSITION BY THE PIERRE AUGER FLUORESCENCE DETECTOR: THE MINIMUM MOMENTUM METHOD

Cosmic Rays - in Poland

UHECRs sources and the Auger data

STUDY OF EXTENSIVE AIR SHOWERS IN THE EARTH S ATMOSPHERE

Short review and prospects of radio detection of high-energy cosmic rays. Andreas Haungs

Primary cosmic ray mass composition above 1 PeV as measured by the PRISMA-YBJ array

Latest results and perspectives of the KASCADE-Grande EAS facility

Lawrence Berkeley National Laboratory Lawrence Berkeley National Laboratory

THE PIERRE AUGER OBSERVATORY: STATUS AND RECENT RESULTS

ANTARES sensitivity to steady cosmic gamma ray sources

arxiv: v2 [astro-ph] 13 Mar 2008

PoS(ICRC2015)349. TA Spectrum Summary

OVERVIEW OF THE RESULTS

GAMMA-RAY ASTRONOMY: IMAGING ATMOSPHERIC CHERENKOV TECHNIQUE FABIO ZANDANEL - SESIONES CCD

On the energy deposition by electrons in air and the accurate determination of the air-fluorescence yield

Upper Limit of the Spectrum of Cosmic Rays

CORSIKA modification for electric field simulations on pions, kaons and muons

arxiv:astro-ph/ v3 30 Sep 2004

arxiv:astro-ph/ v1 17 Dec 2004

UHE Cosmic Rays and Neutrinos with the Pierre Auger Observatory

Verification of the CORSIKA code in the TeV energy

What we (don t) know about UHECRs

Secondary particles generated in propagation neutrinos gamma rays

arxiv: v1 [astro-ph.im] 2 Jun 2017

arxiv: v1 [astro-ph.he] 25 Mar 2015

Cosmic Rays. Discovered in 1912 by Viktor Hess using electroscopes to measure ionization at altitudes via balloon

Status and results from the Pierre Auger Observatory

Ultra- high energy cosmic rays

99 Years from Discovery : What is our current picture on Cosmic Rays? #6 How cosmic rays travel to Earth? Presented by Nahee Park

Anisotropy studies with the Pierre Auger Observatory

Towards a fast and precise forward model for air shower radio simulation

Cosmogenic neutrinos II

arxiv:astro-ph/ v1 10 Dec 1999

Autoreferat - Summary of professional accomplishments

From the Knee to the toes: The challenge of cosmic-ray composition

UC Irvine UC Irvine Previously Published Works

White Paper on Ultra-High Energy Cosmic Rays

PoS(ICRC2015)424. YAC sensitivity for measuring the light-component spectrum of primary cosmic rays at the knee energies

EVIDENCE OF INTERMEDIATE-SCALE ENERGY SPECTRUM ANISOTROPY IN THE NORTHERN HEMISPHERE FROM TELESCOPE ARRAY

Detecting Stopping Track Muons with the IceCube Neutrino Observatory

Study of Number of photons at axis Shower with different de/dx and Fluorescence Yield

Detection of high energy electromagnetic and hadron components of air-shower cores in the new hybrid experiment Pamir-XXI

The Pierre Auger Observatory Status - First Results - Plans

Cosmic ray studies at the Yakutsk EAS array: energy spectrum and mass composition

Experimental studies of East-West effect of the charge ratio of atmospheric muons with energies relevant to the atmospheric neutrino anomaly

arxiv: v1 [astro-ph.he] 19 Oct 2017

P. Tinyakov 1 TELESCOPE ARRAY: LATEST RESULTS. P. Tinyakov. for the Telescope Array Collaboration. Telescope Array detector. Spectrum.

Accurate Measurement of the Cosmic Ray Proton Spectrum from 100TeV to 10PeV with LHAASO

RECENT RESULTS FROM THE PIERRE AUGER OBSERVATORY

arxiv: v1 [astro-ph.im] 11 Oct 2017

New Analyses of Double-Bang Events in the Atmosphere

Cosmic Rays. M. Swartz. Tuesday, August 2, 2011

John Ellison University of California, Riverside. Quarknet 2008 at UCR

The cosmic ray energy spectrum measured using the Pierre Auger Observatory

Transcription:

arxiv:1304.2567v1 [astro-ph.im] 9 Apr 2013 Discrepancies in the Monte Carlo simulations of propagation of ultra-high energy cosmic-ray photons in the geomagnetic field P. Homola a,, M. Rygielski a a H. Niewodniczański Institute of Nuclear Physics, Polish Academy of Sciences, ul. Radzikowskiego 152, 31-342 Kraków, Poland Abstract The discrepancies in the results produced by the two most commonly used Monte Carlo programs for simulation of propagation of ultra-high energy cosmic ray photons in the presence of the geomagnetic field are presented. Although photons have not yet been discovered in the cosmic ray flux at highest energies, the capabilities of the present cosmic ray detectors make their discovery possible, according to the predictions of conventional models, within the next few years. It is therefore necessary to have a reliable and well maintained software for relevant simulations. The results of this paper are important for simulations of propagation of photons at energies above 10 19 ev. Photons of such high energies might interact with the geomagnetic field giving rise to a cascade of particles even above the atmosphere. This effect is called a preshower effect. The preshower effect is important for air shower evolution and has to be accounted for in full Monte Carlo simulations of propagation of highest energy cosmic-ray photons. In this paper we compare the two most frequently used Monte Carlo codes for preshower simulations: PRESHOWER, used as a stand-alone program or as a part of CORSIKA, and MaGICS, used as a part of AIRES. Keywords: ultra-high energy cosmic rays, extensive air showers, geomagnetic cascading, gamma conversion, PRESHOWER, Aires, MaGICS Corresponding author: Tel.: +48 12 6628348; fax: +48 12 6628012. Email address: Piotr.Homola@ifj.edu.pl (P. Homola) Preprint submitted to Astroparticle Physics April 10, 2013

1. Introduction The composition of ultra-high energy cosmic rays (UHECR) has been unknown since the last half century. Recent results are uncertain about whether the flux of cosmic rays at highest energies is dominated by protons, heavier nuclei or whether it is composed by a mixture of nuclei of different masses (see e.g. Ref. [1]). Serious candidates for primary cosmic rays are also photons and neutrinos which are expected at small rates [2, 3, 4]. This paper is focused on UHE photons as cosmic rays. Small fractions of photons in the flux of UHECR are predicted by the GZK mechanism [5] describing interactions of charged cosmic ray nuclei with cosmic microwave background radiation. As a result of these interactions the energy of primary nuclei is reduced and high energy photons and neutrinos appear as products. If the GZK predictions are true, these photons and neutrinos should be seen at low rates in the cosmic ray flux. With the capabilities of present cosmic ray detectors, e.g. the Auger Observatory [6], these guaranteed photon rates are likely to be verified within the next few years. An identification of photons in cosmic rays would be a great scientific achievement and it would open a new observation window to the Universe. On the other hand, the lack of the GZK photons in the cosmic ray flux would challenge our present understanding of cosmic-ray physics, and it would be even a more interesting observation. Thus the capability to identify photons among UHE cosmic rays is very important. A full readiness for observation of GZK photons requires a reliable Monte Carlo simulation code that treats not only photon-induced extensive air showers (EAS) but simulates also the propagation of photons before they enter the atmosphere. The simulation of photons above the atmosphere is important because of the preshower effect [7] that may occur when a photon traverses a region where the geomagnetic field component transverse to the photon trajectory is particularly strong. As described e.g. in Refs. [8, 9], high energy photons in the presence of magnetic field may convert into e +/ pair and the newly created electrons emit bremsstrahlung photons, which again may convert into e +/ if their energy is high enough. As a result of these interactions, instead of a high energy photon, a bunch of particles of lower energies, socalled a preshower, reaches the atmosphere. Obviously, the occurrence of the preshower effect has an important impact on air shower development and changes many shower observables. This paper is a contribution towards the development and maintenance of 2

a reliable codes for simulation of ultra-high energy photons before they enter the Earth s atmosphere. We compare the results produced by the two most commonly used Monte Carlo programs for the preshower effect simulation: PRESHOWER [8], which can be used as a stand-alone program or as a part of CORSIKA air shower simulation package [10], and MaGICS v. 1.4.0, used as a part of AIRES package [11]. PRESHOWER and MaGICS are the only programs of their class with open source codes and they come along with the most frequently used software for Monte Carlo cosmic-ray shower simulations. As the level of convergence of the results that can be obtained with the two programs has been found to be unsatisfactory, we have to make it clear to the community involved in simulations of ultra-high energy photon simulations. Descriptions of both programs as well as the formulation of the physical processes behind the preshower effect can be found elsewhere. In case of PRESHOWER, the reader is referred to Ref. [8], the MaGICS code is described at AIRES website ([11]), and the preshower effect is described and discussed e.g. in Refs. [8, 9]). It has to be mentioned that the PRESHOWER results were checked (see Ref. [8]), to be in a good general agreement with previous studies: [7, 12, 13, 14, 15, 16, 17]. However, the results presented in all the mentioned publications were obtained with the codes unavailable publicly, which made a detailed comparison with the PRESHOWER results unfeasible. There are three important aspects of preshower simulations and in all of them the discrepancies between PRESHOWER and MaGICS have been found 1. The first aspect, discussed in Section 2, is the geomagnetic field model and the calculation of the field component transverse to the primary particle motion. The differences in the second aspect, concerning the magnetic pair production by primary photons, are analyzed in Section 3, and the discrepancies of the third kind, related to the bremsstrahlung of preshower electrons, are presented in Section 4. As using both PRESHOWER and MaGICS to plot Figures of Sections 2, 3 and 4 is not straightforward, a short explanation of technical details was added in the Appendix. The paper is concluded in Section 5. 1 There is a new version of PRESHOWER which has just been released ([18]). The results of the new version, including major improvements of the algorithm and the update of the geomagnetic field model, are fully consistent with the first release of PRESHOWER. 3

2. The geomagnetic field and its component transverse to particle motion In both PRESHOWER and MaGICS, the IGRF magnetic field model is used: in PRESHOWER IGRF-8 and in MaGICS IGRF-10. IGRF-10 is the model more recent than IGRF-8 2. The differences between the models concern mainly the limit for future interpolations. The geomagnetic field components obtained with these two versions should agree very well for a date within the usability range of both models. Simple tests performed using the models implemented in PRESHOWER and MaGICS and the online geomagnetic field calculator with implemented IGRF-11 [20] show a very good agreement of the geomagnetic field components. There is, however, a clear discrepancy in the geomagnetic field component transverse to the particle motion (B ) computed by PRESHOWER and MaGICS. Figure 1 shows an example of how B changes with the altitude above the sea level for a primary cosmic ray coming to the Pierre Auger Observatory in Argentina from geographical North at a zenithal angle 60. The plots were obtained with PRESHOWER (solid red line), MaGICS (dotted blue line) and MaG- ICS with a correction described below (dashed black line). The differences reach a factor 2 for lower altitudes. Since the geomagnetic field components in the two programs are in a good agreement it is clear that the difference between B (PRESHOWER) and B (MaGICS) must come from the procedures computing B. After a short investigation a bug was found in one of the routines performing rotations in MaGICS. The existence of this bug has been verified in a simple test with an inclined trajectory coming from the geographic North. In a separate routine MaGICS calculates the geographic latitude and longitude of a point along the primary photon trajectory. These coordinates are the input for the procedure computing the geomagnetic field components. If the calculation of the geographical coordinates performed in MaGICS is correct, then the longitude of each of the points along the mentioned trajectory should remain unchanged. Surprisingly, the MaGICS longitude varies along the tested trajectory. A simple correction of a sign in one of the rotations performed by MaGICS fixed the problem. The transverse 2 The most recent version, implemented in the new release of PRESHOWER, is IGRF- 11 [19] 4

0.08 0.07 0.06 PRESHOWER MaGICS MaGICS-corrected 0.05 B [G] 0.04 0.03 0.02 0.01 0 100 1000 10000 altitude a.s.l. [km] Figure 1: Comparison of B (r) for the IGRF models used in PRESHOWER (IGRF-8, solid red line), MaGICS (IGRF-10, dotted blue line) and MaGICS with applied corrections (dashed black line). The presented plots were obtained for the location of the Pierre Auger Observatory in Argentina and an arbitrarily selected trajectory with zenithal angle θ=60 coming from geographical North. 5

geomagnetic field profile produced by MaGICS with the above correction is shown in Fig. 1 and its agreement with the PRESHOWER curve is very good. The fixed procedure is used not only in the calculation of the geographic coordinates but also to obtain pair production and bremsstrahlung probabilities in MaGICS. Is is therefore a reasonable approach to continue the comparison of the other results using the MaGICS version including the correction described above. Throughout this paper we will refer to this corrected version as to MaGICS-corrected. 3. Magnetic pair production of ultra-high energy photons Another important parameter calculated by the preshower programs is the probability of pair production by ultra-high energy photons in the presence of the geomagnetic field. This parameter will be hereafter referred to as gamma conversion probability or p conv. p conv is a crucial parameter in photon shower simulation as it determines the occurrence of preshowers above the atmosphere. If an ultra-high energy cosmic ray photon initiates a preshower, the resultant air shower reaches its maximum much earlier than a shower developing without a preshower. It is therefore desirable that the available simulations give similar approximations of this crucial parameter. Unfortunately this is not the case. Neither MaGICS nor MaGICS-corrected give p conv in agreement with PRESHOWER. The differences in p conv reach 20% and depend on the arrival direction. In Fig. 2 we show an example of p conv dependence on the arrival direction for PRESHOWER, MaGICS and MaGICS-corrected. The plots were obtained for a primary photon of energy 7 10 19 ev arriving at the Pierre Auger Obsrevatory at a fixed zenithal angle of 60 and varying azimuth. In the frame of reference used to prepare Fig. 2, the azimuth increases counterclockwise and its value of 0 means the shower arriving from geographic North. It is clear that the results from MaGICS and PRESHOWER seriously disagree, even after a correction described earlier. The source of this disagreement remains unknown and requires a deeper analysis. 4. Magnetic bremsstrahlung of preshower electrons The third important difference between MaGICS and PRESHOWER is in the probability of magnetic bremsstrahlung emission by preshower electrons, hereafter p brem. Large p brem, or in other words more efficient bremsstrahlung 6

1 0.8 PRESHOWER MaGICS MaGICS-corrected primary energy: 7x10 19 ev zenith: 60 o conversion probability 0.6 0.4 0.2 0 0 50 100 150 200 250 300 350 azimuth [deg] Figure 2: Total probability of γ conversion for primary energy of 7 10 19 ev and different arrival directions as computed by PRESHOWER (solid red line) MaGICS (dotted blue line) and MaGICS-corrected (dashed black line). Computations have been performed for magnetic conditions at Pierre Auger Observatory in Argentina. The azimuth increases counterclockwise and its value of 0 means the shower arriving from geographic North. 7

emission, results in splitting the primary energy into more particles of lower energies than in case of smaller p brem. Fig. 3 shows some preshower statistics for an example of primary photon of energy 10 20 ev arriving from geographical South at the Pierre Auger Observatory at a zenithal angle of 60. Along this direction the transverse component of the geomagnetic field is particularly strong. We will call this direction a strong field direction. The histograms shown include all the particles and no normalization was applied. A comparison is made between the simulations obtained with PRESHOWER (solid black histograms) and MaGICS-corrected (dashed red histograms) 3. 1000 simulation runs have been performed with each of the programs for a photon primary of energy 10 20 ev arriving at the Pierre Auger Observatory from geographical South at a zenithal angle of 60. For such an arrival direction and primary energy the conversion probability p conv turns out to be higher in MaGICS (0.96) than in PRESHOWER (0.92). As a result, more photons simulated with MaGICS happened to undergo the pair production process and initiated a preshower than it was in the case of PRESHOWER simulations. Despite the larger total number of preshowers resulting from MaGICS-corrected simulations, the energy spectrum of photons in the top left plot of Fig. 3 shows that the total number of secondary photons in preshowers generated by MaGICS-corrected is significantly smaller than in the case of PRESHOWER simulations. The significantly smaller total number of photons in MaGICS-corrected simulations shows then a serious inconsistence between the analyzed programs. The smaller number of photons in MaGICS-corrected is consistent with higher energies of electrons simulated by this program, which can be seen in the plots in the bottom row of Fig. 3. The total number of preshower particles and total energy carried by electrons in PRESHOWER and MaGICS-corrected are compared directly in Figs. 4 and 5. The results obtained with original MaGICS were checked to be very close to those obtained with MaGICS-corrected and they are not shown here to keep the plots clear. The discrepancy between the results of PRESHOWER and MaGICS-corrected is significant. Preshower electrons in MaGICS emit significantly fewer bremsstrahlung photons than in PRESHOWER simulations. This must have implications on air shower 3 It was checkedthat the originalversionofmagics gives results which are verysimilar to MaGICS-corrected, therefore the histograms obtained with original MaGICS have not been shown in Fig. 3 to keep the plots clear. 8

16000 14000 12000 10000 8000 6000 4000 2000 0 x 10 18 8000 7000 6000 5000 4000 3000 2000 1000 0 12 14 16 18 20 log10(e/ev) 12 14 16 18 20 log10(e/ev) 160 140 120 100 80 60 40 20 0 17 18 19 20 x 10 17 5000 4000 3000 2000 1000 log10(e/ev) 0 17 18 19 20 log10(e/ev) Figure 3: Energy distribution of photons (top left) and electrons (top right) in 1000 simulation runs with 10 20 ev primary photons arriving at the Pierre Auger Observatory from geographical South at a zenithal angle of 60. The spectra weighted by energy are plotted in the bottom panel. The black solid histograms were obtained with PRESHOWER and the dashed red ones with MaGICS-corrected. The histograms obtained with original MaGICS are not shown to keep the plots clear. It was checked that the difference between the MaGICS and MaGICS-corrected histograms is very small and would be hardly visible in the scale suitable for comparison to PRESHOWER histograms. The histograms shown include all the particles and no normalization was applied. The height of the bin at log10(e/ev)=20 of the MaGICS-corrected histogram (dashed red) in the lower left plot, 43 10 20 ev, might be hardly readable in a black-and-white version of the paper. 9

# of preshower particles at the top of the atmosphere 1200 1000 800 600 400 200 PRESHOWER MaGICS-corrected 0 0 500 1000 1500 2000 2500 3000 3500 4000 4500 first conversion altitude a.s.l. [km] Figure 4: Number of preshower particles at the top of the atmosphere (100 km a.s.l.) for different altitudes of primary γ conversion simulated with PRESHOWER (red circles) and MaGICS-corrected (blue crosses). All the simulated preshowers were initiated by photons of energies 10 20 ev arriving from the strong field direction. The results obtained with original MaGICS were checked to be very close to those obtained with MaGICS-corrected and they are not shown here to keep the plots clear. 10

total energy carried by electrons [ev] 1e+19 1e+18 PRESHOWER MaGICS-corrected 0 500 1000 1500 2000 2500 3000 3500 4000 4500 first conversion altitude a.s.l. [km] Figure 5: Energy carried by preshower electrons at the top of the atmosphere (100 km a.s.l.) vs. the altitude of the primary γ conversion for a primary photon energy of 10 20 ev arriving from the strong field direction. The simulations were performed with PRESHOWER (red circles) and MaGICS-corrected (blue crosses). The points in excess of the general trend are the cases where one of the bremsstrahlung photons converted into an electron pair which increased the total energy carried by electrons. The results obtained with original MaGICS were checked to be very close to those obtained with MaGICS-corrected and they are not shown here to keep the plots clear. 11

development: an air shower simulated with increased p brem develops earlier in the atmosphere. The source of this discrepancy, as well as the reason for the disagreement in p conv, remains unknown and requires a further study. 5. Summary We have compared the simulation results of the two most popular open source codes for preshower simulations, PRESHOWER and MaGICS. A significant disagreement was found between the main physical quantities derived by the two programs: the component of the geomagnetic field transverse to the primary trajectory (B ), the probability of primary gamma conversion into an electron-positron pair (p conv ), and the probability of bremsstrahlung emission of preshower electrons (p brem ). The source of the disagreement was found only in the case of B computation. After fixing the coding mistake found in MaGICS a good agreement between the B values obtained with the two programs has been achieved. The sources of the other two discrepancies remain unknown and require a further study. The discrepancies between the results of PRESHOWER and MaGICS are meaningful for simulations of air shower development. Taking into account that an air shower is simulated as a simple superposition of air showers induced by each of the preshower particles, one can assume that the depth of shower maximum, X max, is determined mostly by the highest energy particle in a preshower that reaches the top layers of the atmosphere. This highest energy particle could be a photon or an electron, depending on the preshower development and the geomagnetic conditions. If it is a photon, then based on the results presented in Fig. 3 one would expect only a minor difference in X max, as photons of high energies are similarly numerous in both PRESHOWER and MaGICS. But if an air shower development is determined mostly by a preshower electron, then the resulting X max could be even a few tens of g/cm 2 deeper if we use a preshower computed by MaGICS than in case of using PRESHOWER. This is because of the difference in electron energy calculated by the two programs (see Fig. 5) and a known direct relation between the energy of primary particles and X max : a higher primary energy results in a deeper X max of an air shower. A quantification of the influence of the discrepancies between PRESHOWER and MaGICS on air shower simulations would require a separate analysis. Nevertheless, it is clear already now that reaching an agreement between results derived with PRESHOWER and MaGICS would be an important step towards a better reliability of ultra-high energy photon 12

shower simulations. Acknowledgements We thank Henryk Wilczyński for valuable discussions. This work was partially supported by the Polish Ministry of Science and Higher Education under grant No. N N202 2072 38. Appendix A. Reading variables from PRESHOWER and MaG- ICS A thorough comparison of the results produced by PRESHOWER and MaGICS requires a few manual interventions within the codes of the programs. These interventions are needed to read all the variables of interest and not all of these variables are delivered at the outputs. Additional difficulty is that MaGICS is not a stand-alone program and can be used only within its mother program AIRES. Although we are not aware of any fundamental reasons for which MaGICS could not be detached from AIRES (with some coding effort), we gave up this idea to minimize the risk of errors. With this approach the computing has increased but it was still acceptable. In order to obtain the plots presented throughout the paper we extracted the following variables: B bot [G] (Fig. 1): B tr (P); bperp 10 5 (M) altitude a.s.l.[km] (Fig. 1): r curr 10 5-6371 (P); this particle->altitude 10 3 (M) conversion probability (Fig. 2): p conv (P); function conversion probability() (M) azimuth [deg] (Fig. 2): the deg (P); atan2(shower axis[1],shower axis[0]) 180/Π (M) particle type (Figs. 3, 4 and 5): output file part out.dat (P); this particle->particleid (M) particle energy (Figs. 3, 4 and 5): output file part out.dat (P); this particle->energy (M) 13

primary gamma conversion altitude [km] (Figs. 4 and 5): output file multirun.dat (P); first particle->altitude 10 3 (M) where (P) stays for PRESHOWER and (M) for MaGICS. References [1] The Pierre Auger Collaboration, Proc. 32nd ICRC, Beijing, China (2011), Vol. 2, 105 [2] The Pierre Auger Collaboration, Astroparticle Physics 31 (2009) 399-406, doi:10.1016/j.astropartphys.2009.04.003 [3] The Pierre Auger Collaboration, Phys. Rev. D 79, 102001 (2009), doi: 10.1103/PhysRevD.79.102001 [4] The Pierre Auger Collaboration, Proc. 32nd ICRC, Beijing, China (2011), Vol. 2, 55 [5] K. Greisen, Phys. Rev. Lett. 16, (1966) 748; G.T. Zatsepin and V.A. Kuzmin, Zh. Eksp. Teor. Fiz. 4, (1966) 114 [6] The Pierre Auger Collaboration, Nucl. Instr. and Meth. A 523 (2004), 50 [7] B. McBreen and C.J. Lambert, Phys. Rev. D 24, (1981) 2536 [8] P. Homola et al., Comp. Phys. Commun. 173 (2005) 71 [9] M. Risse and P. Homola, Mod. Phys. Lett. A 22 (2007), 749 [10] D. Heck, J. Knapp, J.N. Capdevielle, G. Schatz, and T. Thouw, Report FZKA 6019, Forschungszentrum Karlsruhe, 1998 (available at wwwik.fzk.de/ heck/corsika/) [11] S.J. Sciutto, [arxiv:astro-ph/9911331]; www.fisica.unlp.edu.ar/auger/aires [12] S. Karakula and W. Bednarek, Proc. 24 th Int. Cosmic Ray Conf., Rome, (1995) 266 [13] T. Stanev and H. P. Vankov, Phys. Rev. D 55 (1997) 1365 14

[14] X. Bertou, P. Billoir and S. Dagoret-Campagne, Astropart. Phys. 14 (2000) 121 [15] W. Bednarek, New Astron. 7 (2002) 471 [16] H. P. Vankov, N. Inoue, and K. Shinozaki, Phys. Rev. D 67 (2003) 043002 [17] H. P. Vankov et al., Proc. 28 th Int. Cosmic Ray Conf., Tsukuba, (2003) 527 [18] P. Homola et al., Comp. Phys. Commun. 184 (2013) 1468 [19] http://www.ngdc.noaa.gov/iaga/vmod/igrf.html [20] http://www.ngdc.noaa.gov/geomagmodels/igrfwmm.jsp 15