Open Access
Issue
A&A
Volume 675, July 2023
Article Number A132
Number of page(s) 15
Section Numerical methods and codes
DOI https://doi.org/10.1051/0004-6361/202243364
Published online 11 July 2023

© The Authors 2023

Licence Creative CommonsOpen Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

This article is published in open access under the Subscribe to Open model. Subscribe to A&A to support open access publication.

1 Introduction

The influence of the effect of pair production on the spectra of extragalactic sources of very-high-energy (VHE) γ-rays has been well established via measurements of suppression of the highest energy γ-ray fluxes of blazars (H.E.S.S. Collaboration 2017; Abeysekara et al. 2019; Acciari et al. 2019). Observations of this effect allow for the measurement of the spectrum of extragalactic background light (EBL), which is difficult to measure directly because of obscuration by Zodiacal light (Matsuura et al. 2017). The EBL is produced by cumulative emission from star-forming galaxies accumulated over their cosmological evolution (Franceschini et al. 2008). Its measurement over a range of red-shifts provides information on the history of star formation in the Universe (Fermi-LAT Collaboration 2018). The γ-ray measurements of EBL are also potentially interesting with regard to the search for narrow features in the EBL spectrum (Korochkin et al. 2020b), such as those produced by axion-like particles (Korochkin et al. 2020a).

Absorption of the VHE γ-rays on EBL results in production of electron-positron pairs in the intergalactic medium. These pairs lose energy via inverse Compton scattering of the cosmic microwave background (CMB) photons, thereby producing secondary γ-ray emission that is detectable by γ-ray telescopes (Aharonian et al. 1994). The observational visibility of this secondary emission depends on the strength and correlation length of magnetic field in the intergalactic medium and on the energy range of the secondary γ-rays. Very strong intergalac-tic magnetic field (IGMF) completely isotropises trajectories of electrons and positrons so that the secondary emission appears as a γ-ray “halo” around a primary point source (Aharonian et al. 1994). Moderately strong IGMF induces extended secondary γ-ray emission, whose properties depend on the IGMF parameters (Neronov & Semikoz 2007; Murase et al. 2008; Neronov & Semikoz 2009). Weak magnetic field results in the secondary flux morphologically indistinguishable from the point source, but identifiable through specific timing properties (Plaga 1995). The non-detection of the secondary emission in the 1–100 GeV range has been used to derive a lower bound on IGMF at the level of ~10−16 G under the assumption of large IGMF correlation length (Neronov & Vovk 2010; Tavecchio et al. 2010, 2011; Dolag et al. 2011; Takahashi et al. 2012; Arlen et al. 2014; Abramowski et al. 2014; Finke et al. 2015; Tiede et al. 2020; Ackermann et al. 2018; Alves Batista & Saveliev 2020; Podlesnyi et al. 2022; Acciari et al. 2023).

The sensitivity of observations of the extended or delayed secondary emission from the electron-positron pairs in the inter-galactic medium and of the measurements of IGMF will be crucially improved by the Cherenkov Telescope Array (CTA) (Cherenkov Telescope Array Consortium 2019). This will enable search for the extended secondary emission in a previously inaccessible energy range, thus extending the range of IGMF strengths that can be probed by the γ-ray technique (Korochkin et al. 2021). The sensitivity improvement will result in a more precise characterization of the effect of absorption of the primary γ-ray flux by the EBL and more precise measurements of the primary γ-ray source spectra, as well as in the extension of the measurements into larger redshift range (Abdalla et al. 2021). Moreover, the γ-ray measurements can help distinguish primordial magnetic fields produced during inflation from the field originating from cosmological phase transitions, by constraining the correlation length of the field (Korochkin et al. 2022). Additionally, the γ-ray technique is also sensitive to the effect of the baryonic feedback among the large-scale structure that creates magnetised bubbles around galaxies (Bondarenko et al. 2022).

Improved sensitivity for the secondary γ-ray flux from extra-galactic sources provided by CTA has to be matched by the improved precision of modeling of this flux. Several numerical codes have been previously developed for such modeling, including CRPropa (Alves Batista et al. 2016) and ELMAG (Blytt et al. 2020). These codes are based on Monte Carlo modeling of development of electromagnetic cascades in the intergalactic medium in the presence of magnetic fields (Elyiv et al. 2009). Details of the implementation (of magnetic field structure, of cosmological evolution, etc.) differ between the codes. This may lead to code-dependent discrepancies in model predictions of the properties of secondary emission. Each code adopts certain models of the relevant physical processes and Monte Carlo event generators. This results in systematic modeling errors that are difficult to assess.

In the following, we compare the precision of the predictions of the CRPropa and ELMAG with those of the newly developed CRbeam code1 (first version of the code has been reported by Berezinsky & Kalashev 2016). The modular structure of the CRbeam and CRPropa allows all relevant processes to be tested independently of each other. Specifically, we consider the Breit–Wheeler pair production and inverse Compton scattering on the EBL and CMB. For each interaction, we compare interaction rate and energy distribution of secondary particles inferred from simulations with the theoretical predictions. Also, disabling all interactions makes it possible to compare the propagation of electrons in a magnetic field. For ELMAG, on the contrary, such independent testing of interactions is impossible, therefore we use the results of simulations with ELMAG to compare the properties of the cascade signal, when all relevant interactions are turned on.

We find that the predictions for the spectral, imaging, and timing properties of the secondary emission may differ by about 50% in the CTA’s energy range of interest. We trace the origin of some of these discrepancies and find that they can be reduced after corrections. In particular, for relatively nearby sources with a redshifts z ≲ 0.15, the discrepancies between all three codes (CRbeam, CRPropa, and ELMAG) are down to 10% in all our tests after introducing corrections. We find, however, that the scatter of the predictions increases substantially with increasing redshift even when our corrections are applied. We argue that the main reason for the remaining discrepancies is the implementation of cosmological evolution of the EBL in CRPropa, which still lead to non-negligible differences between model calculations for sources at large redshifts.

We note that a certain fraction of the electron-positron energy may be carried away via plasma instabilities and thus affect the electromagnetic cascades Broderick et al. (2012). However, at the moment, there is no self-consistent description of the effect and its impact on the development of the cascades depends strongly on the assumptions used Miniati & Elyiv (2013), Alves Batista et al. (2019), Alawashra & Pohl (2022). For this reason, we do not include plasma instabilities in our comparison.

In all analyses presented here, we used the following versions of the codes: CRbeam 1.0, CRPropa3-3.1.7, and ELMAG 3.01. Additionally, we have verified that the results of CRPropa are stable in relation to previous versions CRPropa3-3.1.5 and CRPropa3-3.1.6.

For the cosmological parameters, we adopted the following values: Hubble constant H0 = 70 km s−1 Mpc−1, the matter density parameter Ωm = 0.3, and the dark energy density parameter ΩΛ = 0.7. We used these values in all three considered codes and they are remain unaltered in all tests.

2 Absorption of the primary γ-rays

We started our comparison from the modeling of absorption of primary γ-rays on EBL. To date, the EBL spectrum and its evolution with redshift have not been measured with sufficient accuracy. Most of the knowledge on EBL based on EBL models presented in the literature. Among them, we chose the EBL model of Franceschini et al. (2008) as the baseline model for our tests, since it is available in all codes and also its spectrum as a function of redshift is presented in tabular form.

First, we calculated the optical depth by numerical integration of the EBL spectrum, taking into account its evolution over time. This corresponds to the black dashed line in the Fig. 1. Next, we calculated the optical depth using Monte Carlo codes, propagating 106 monoenergetic photons and counting the number of survivors. The procedure is repeated for an array of observed photon energies and initial redshifts. We note, however, that deviations at the percentage level in the EBL optical depth may naturally arise due to different interpolation methods used in different codes. We do not consider differences of this kind in our analysis.

Figure 1 shows a comparison of the calculated optical depths for photons of different energies (Franceschini et al. 2008 EBL model). We can see that CRbeam modeling reproduces the assumed analytical model with percent-level precision in the energy range above 200 GeV for a wide range of source red-shifts. Differences of up to 20% at the energies of E < 100 GeV do not have substantial effects on the model results because the optical depth in this energy range is small, even for sources at redshift z ~ 1.

The results of simulations with ELMAG are also in good agreement with theory in the energy region above 100 GeV, although it predicts ~5% larger optical depth. Strong differences from theory are clearly noticeable in the energy range 10–100 GeV, where ELMAG predicts a significantly higher optical depth. For sources with redshifts z ≲ 0.5, this discrepancy will have no effect, since in this case, even the wrong optical depth is much less than unity. Nevertheless, differences may arise for sources with z ~ 1, since in this case, in the ELMAG the optical depth τ ~ 1 – and not less than unity as it should be according to the theory2.

To the contrary, the calculations of CRPropa differ significantly from the assumed analytical model already for sources at redshifts z > 0.3. The difference reaches 30% at 100 GeV for the source at redshift z = 0.3 and reaches up to 100% for further away sources (not shown in the bottom panel of the figure). The discrepancy between the numerical and analytical model in the CRPropa code is due to simplified evolution of the EBL with redshift in which the real evolution of EBL is replaced by the renormalization of EBL spectrum taken at z = 0 with a factor s(z) (Alves Batista et al. 2016). One can see from (Alves Batista et al. 2016) that this approach reproduces correctly the change the of EBL photon density over time. On the over hand it completely ignores the relative evolution of two EBL bumps because the shape of the spectrum remains fixed. Since the photon number density in the infrared peak of the EBL is much higher than in optical this means that the renormalization of the spectrum traces only evolution of the infrared peak while evolution of the optical peak becomes unphysical and strongly coupled to the infrared peak. Thus, one can understand the reason for overestimated absorption in CRPropa. Absorption of TeV γ-rays occurs mainly on optical background photons. At redshift z = 0 in the EBL model of Franceschini et al. (2008) the two EBL peaks are of comparable strength while at z = 1 the far infrared peak become much stronger than optical. Consequently applying the EBL spectrum shape at z = 0 two compute optical depth at z = 1 results in enhanced absorption at energies ~100 GeV−10 TeV. This CRPropa limitation is known (Alves Batista et al. 2016). Our result shows explicitly that such a simplification starts to produce unphysical results already starting from moderate redshifts ~0.3.

In order to make our analysis more general, we carried out the same simulations with two other popular EBL models: Domínguez et al. (2011) and Gilmore et al. (2012). The advantage of the former model is that it has well defined error bars and so it is possible to estimate if the uncertainties introduced by Monte Carlo codes fall within the EBL uncertainty region. Unfortunately, this model is not available in the CRbeam code, so we made our comparison using only two codes. The latter EBL model is present in all three codes. The results are shown in Figs. B.1 and B.2, confirming the general trends found for the Franceschini et al. (2008) EBL model. CRbeam reproduces optical depth in wide range of energies and red-shifts with percent-level accuracy. ELMAG generally predicts 5–10% stronger absorption at all redshifts almost independent of energy. Finally, CRPropa while producing accurate results for low-redshift sources suffers from simplified EBL evolution at high redshifts and significantly overestimates optical depth. For the EBL model of Domínguez et al. (2011), the optical depth at z > 0.3 from CRPropa is far beyond the uncertainty region (see Fig. B.1). We note, again, that the enhanced absorption for z > 0.3 in all three EBL models in CRPropa is the consequence of the fact that the infrared EBL bumps of all these models are higher than optical at high redshifts.

On the other hand, we would like to point out that the EBL spectral energy distribution is not well known, especially at large redshifts. Recent EBL measurements with γ-ray absorption (Acciari et al. 2019) have an order-of-magnitude uncertainty at z ~ 1. In this sense, the deviations from EBL models, arising from a simplified CRPropa approach, are of same order as our ignorance of high redshift EBL spectrum. In the future, with improved СТА measurements of sources at high red-shifts, it will become possible to construct an improved EBL model at different redshifts. Such a model has to be used in tandem with the full redshift evolution code that is similar to CRbeam.

thumbnail Fig. 1

Comparison of the optical depth for primary γ-rays for sources at cosmological redshifts in CRbeam, CRPropa and ELMAG. In all cases, the EBL model of Franceschini et al. (2008) is assumed. Top panels show the optical depth as a function of γ-ray energy for a range of redshifts. Bottom panels show discrepancies between the code calculations and the analytical model. For CRPropa, the differences between the analytical model and code calculations are not shown for redshifts of >0.3 because they exceed 50%.

thumbnail Fig. 2

Differences in model predictions for the spectra of secondary γ-rays produced by interaction of monoenergetic primary γ-ray beam with energy Eγo = 10 TeV. Top panels show the primary and secondary γ-ray spectra for sources at different redshifts. Bottom panels show the differences between CRbeam, CRPropa, and ELMAG models.

3 Emission of secondary γ-rays via inverse Compton scattering

The precision in modeling properties of the secondary γ-ray emission depends on the precision in the calculation of the optical depth of the primary γ-ray flux (discussed in the previous section), as well as of the energy distribution of the produced pairs and of the differential cross-section of inverse Compton scattering.

An example calculation of secondary γ-ray spectrum by CRbeam, CRPropa, and ELMAG is shown in Fig. 2 for a monoenergetic primary γ-ray source at different redshifts, corresponding to known blazar type active galactic nuclei Mrk 421 (z = 0.03), 1ES 0229+200 (z = 0.14) and PKS 0502+049 (z = 0.954), covering a wide range of redshifts. The magnetic field was assumed to be zero.

Although all three codes fulfills the law of conservation of energy we find significant discrepancies in cascade spectra. The discrepancies reach 50% for CRbeam-CRPropa comparison and some 30% for CRbeam-ELMAG, in the case of the source at the redshift z ~ 1. Smaller discrepancies, at the level of 20% over a broad energy range up to 100 GeV, are found for smaller redshift sources. Nevertheless, it is also in this case that the discrepancies rise to >5O% at the high-energy end of the secondary γ-ray spectrum.

The difference in cascade signal between CRbeam and ELMAG can be fully explained by the difference in the optical depth for the primary γ-rays. Indeed, for a nearby source with a redshift z = 0.03, a 5% greater optical depth for 10 TeV gamma rays results in a 5% amplification in the cascade signal over the entire energy range. For a more distant source with z = 0.14, most of the primary gamma rays are absorbed; therefore, a 5% difference in the optical depth does not appear and the normalization of the cascade signals in the region above 100 MeV coincide. However, increased absorption leads to an increase in the suppression of the high-energy part of the secondary signal. This is manifested in the fact that in the ELMAG the cascade signal is weaker in the region above 100 GeV and stronger in the region below 100 MeV. The same is true for a source at the red-shift z = 0.954. In addition, a dip at 10–100 GeV is noticeable in the ELMAG spectrum corresponds to the order-of-magnitude excess absorption in ELMAG in this energy range, which leads to an even stronger amplified cascade signal below 100 MeV3.

Unlike ELMAG, the difference between CRPropa and CRbeam cannot be explained by this single cause. Part of the discrepancy is certainly due to the differences in the calculation of the optical depth for the primary γ-rays producing pairs on the EBL. However, further differences in the modeling of the secondary flux are involved. This is indicated by the significant differences of the results of calculation with different codes for low-redshift sources, for which the optical depth calculations do not show strong discrepancies.

We have found that for low-redshift sources, the main difference comes from the calculation of the inverse Compton scattering spectra by electrons and positrons. Figure 3 shows a comparison of analytically calculated spectra of the inverse Compton scattering on the CMB with the output of CRbeam and CRPropa for this process. We can see that the CRPropa calculations do not match the theoretical formula Blumenthal & Gould (1970). The discrepancies are of the order-of-one all over the energy range of the inverse Compton emission for electrons with energies up to 1016 eV. This large discrepancy is “smeared” and becomes less noticeable in the calculation of the spectrum of inverse Compton emission from a broad energy distribution of electrons (shown in Fig. 2). Vertical dashed lines in the Fig. 3 corresponds to the mean energy of secondary gamma-rays after inverse Compton scattering 〈E′〉 = 4/3γ2ECMB〉, where γ is the gamma factor of the electron and 〈ECMB〉 = 6.3 × 10−4 eV is the mean energy of CMB photons. It is clear that the mean energy of the secondary γ-rays in CRPropa is higher than theoretically expected.

We have also identified a similar problem of the CRPropa code in the calculation of the inverse Compton scattering on the EBL (see middle panel of Fig. 3) and in the spectra of γγ pair production. The bottom panel of Fig. 3 illustrates this problem for the case of pair production on CMB. In CRPropa, the electron-positron spectrum differs from the known analytical formulae (Gould & Schréder 1967), shown by the dashed lines. Generally, CRPropa predicts wider energy distribution of pairs than it should be according to the theory.

Having noticed these discrepancies, we analyzed the implementation of the CRPropa code and found out that the error with the energy distribution of secondary particles has a common origin for all three cases (inverse Compton scattering on CMB and EBL, and pair-production on CMB). The error occurs from the pre-calculated tables that come with the code. These tables are used to sample the energy at the center of mass as the interaction occurs. After recalculating the tables, the results obtained with the CRPropa with these corrected tables match analytical calculations, as can be seen from Fig. 3 (in all plots, we use the “CRPropa-corrected” label for the CRPropa with recalculated tables). After this correction, model calculations of the spectra of secondary emission for our benchmark case of monoenergetic primary γ-ray beam agree between CRbeam and CRPropa for low-redshift sources down to ≤5% level, as seen in Fig. 24. The discrepancies still grow with increasing source redshift, for the reasons explained in the previous section.

We also verified that the interaction rates for inverse Compton scattering and pair production on CMB calculated using CRbeam and CRPropa are in agreement with each other and with a relative difference from theory not exceeding one percent (see Fig. 4). The 30% lower inverse Compton scattering interaction rate in CRPropa for energies lower than 10 GeV is present only in the CRPropa3-3.1.7 version and absent from previous versions.

Finally, we checked the distributions of secondary particles after electromagnetic interactions at redshift z = 1. The conclusions are the same as in the case of z = 0. The distributions from CRbeam perfectly follow the theoretical curves, while CRPropa results deviate from theory in the same way as at z = 0. These deviations are also eliminated by recalculating interaction tables, as described above.

4 Propagation of electrons and positrons

Imaging and timing properties of the secondary γ-ray signal are determined by the details of propagation of electrons and positrons under the influence of IGMF. The inverse-Compton scattered γ-rays are emitted after electrons and positrons are deflected by an angle δ determined by the energy of electron, Ee, and strength of the magnetic field, B. In the simplest case of homogeneous magnetic field the angle is given by the analytical formula: (1)

where e is the electron charge, D is the propagation distance, and RL = Ee/eB is the gyroradius.

Both CRPropa and CRbeam correctly solve the equations of motions of the electrons in magnetic fields. However, the approaches of the two codes differ when accounting for cos-mological effects. In CRbeam, the particle coordinates are expressed in physical distances, while in CRPropa, the comoving coordinates are used (Alves Batista et al. 2016). This difference affects the propagation of electrons which can be illustrated by a simple test. Suppose the electron is deflected by a homogeneous magnetic field that is perpendicular to the electron’s velocity. Figure 5 shows the calculation of deflection angle of electrons for this simplest case, found with the CRbeam and CRPropa codes. We can see that both calculations give the same result at the red-shift z = 0, where the physical and comoving distance elements are equal, left panel of Fig. 5. However, the CRPropa calculation predicts (1 + z) stronger deflection at the redshift z = 1, which is explained by the fact that dxcomoving = (1 + z) dxphysical, so that an electron travels (1 + z) longer distance in the same magnetic field (see middle panel of Fig. 5).

This difference becomes most pronounced when the electron travels over cosmological distances. The right panel of Fig. 5 shows the deflection of electron starting at redshift z (x-axis of the panel) and caught at z = 0. We can see that the deflection angles in CRPropa are proportional to the comoving distances and in CRbeam to the light travel distances. The simplest way to get the correct deflection angles in CRPropa is to set the evolution of the magnetic field with redshift, namely, B(z) = B0/(1 + z), what can be done using the built-in methods of CRPropa.

The field rescaling trick should also be used when an electron propagates in a realistic turbulent magnetic field with the strength B0 and correlation length λB0· The physical evolution with redshift of this field is given by the simple relations: B(z) = (1 + z)2 В0, λB(z) = λB0/(1 + z). However, because of the use of comoving coordinates in CRPropa, it is necessary to set B(z) = B0 (1 + z) to get correct deflection angles. This modified evolution should be used both when the correlation length of the field is greater than the propagation distance and when it is smaller.

We have compared the results on electron deflection in turbulent magnetic field at z = 0. For the magnetic field we used Kolmogorov spectrum with the maximum scale LB and minimum scale equal to LB/100. To ensure sufficient accuracy we limit maximum step size of the electron to LB /50. Figure 6 shows the dependence of deflection angle on propagation distance for electrons moving in turbulent magnetic fields. The codes are in good agreement with each other and reproduce analytical formula of Neronov & Semikoz (2009) in the case of a small correlation length: (2)

where λB is the magnetic field correlation length. For the Kolmogorov spectrum, λBLB/5.

We also tested the turbulent magnetic field generator in ELMAG. Using the built-in test_turbB function, we separately calculated the average value of each component of the magnetic field. Assuming that the field of the strength В is uniform and isotropic, it was expected that (3)

As a result of tests, we found that the values of the x and у components of the magnetic field are about 20% less than predicted theoretically, while there is no such difference for the z component. The reason for this was not found, so we simply re-scaled the x and у components of the field to the correct value. The results of ELMAG with such a re-scaled field are indicated on the plots as “ELMAG-corrected.”

thumbnail Fig. 3

Energy distribution of γ-rays produced via inverse Compton scattering on CMB (labeled as ICS on CMB) by electrons with different energies, indicated as tags for each set of spectra (top). Spectra of γ-rays from inverse Compton scattering on EBL (labeled as ICS on EBL) for a range of electron energies (middle). Energy spectra of pairs produced in interactions of γ-rays with CMB photons (bottom). Energies of the primary γ-rays are shown as tags for each group of spectra. In all cases, the codes used for the model calculations are specified in the legend.

thumbnail Fig. 4

Interaction rates for the pair production and inverse Compton scattering on the CMB at the redshifts z = 0 and z = 1.

thumbnail Fig. 5

Deflection of electrons of different energies in constant magnetic field with fixed physical strength in CRbeam and CRPropa.

thumbnail Fig. 6

Deflections of electrons at z = 0 in turbulent magnetic fields with different maximum scales LB. Panels show the root mean square deflection angle dependence on the physical path length.

5 Properties of primary and secondary emission from sources at different distances

The realistic modeling of spectral, imaging, and timing properties of the primary and secondary γ-ray signals from extragalac-tic sources combines the modeling of the pair production, inverse Compton scattering, and electron propagation (discussed above). Discrepancies in the modeling of these ingredients propagate to the discrepancies of the overall signal models. We discuss these discrepancies in this section. As in the previous sections, here we use the EBL model of Franceschini et al. (2008).

The left side of Fig. 7 shows the result of modeling of the primary and secondary γ-ray signals for the nearby blazars such as Mrk 421 and Mrk 501. For the intrinsic spectrum of the source, we assume a power law model, with a cutoff at Ecut = 30 TeV and a slope α = 1.7.

As discussed in Sect. 2, all the codes provide identical predictions for the optical depth for the primary γ-rays in this case. As noticed in Sect. 3, predictions for the spectra of pair production and inverse Compton scattering in the CRPropa code deviate from known analytical formulae. This leads to discrepancies between the models of secondary γ-ray fluxes in CRbeam and CRPropa codes, noticeable in the TeV energy range, which is most interesting for СТА. The top panel of the figure shows that the differences reach a factor of two above 3 TeV. The middle and bottom panels of the figure show the temporal and angular profiles of extended emission after an instantaneous injection of energy at the source at time t = 0 with the spectrum described above. The differences in the spectral properties of the secondary signal between CRbeam and CRPropa are not so pronounced in the low-energy temporal and angular profiles in the lower energy bands, accessible to the Fermi Large Area Telescope (Fermi/LAT) instrument. However, these differences expand in the СТА energy band above 100 GeV. As discussed in Sect. 3, the discrepancy between the CRbeam and CRPropa predictions can be removed after a correction to the CRPropa code. Difference between CRbeam and ELMAG also decreases after re-scaling magnetic field in ELMAG (see Sect. 4). In this case, all the codes produce results that agree at the ~10% level, as can be seen from the left side of Fig. 7.

To the contrary, corrections to the CRPropa code do not remove the discrepancies between different model predictions for a source at high redshift (for details, see the right side of Fig. 7). A very significant difference in model predictions is noticeable at the highest energy ends of the spectra, visible in the top right panel of Fig. 7. CRPropa predicts a strong suppression of the flux above 200 GeV, while CRbeam predicts a gradual suppression in the energy range between 200 and 300 GeV. This discrepancy is crucially important for the study of high-redshift sources with СТА. The discrepancy is noticeable also in the attenuated primary source spectra shown by the grey curves in Fig. 7. We attribute this discrepancy for high-redshift sources in CRPropa to the simplified modeling of absorption on EBL, as described in Sect. 2. Such a modeling approach is insensitive to separate evolution of optical EBL peak and have to be improved before any sensible results on the EBL evolution can be extracted from the СТА data.

The discrepancies in the timing and imaging properties of the secondary γ-ray signal are just as large, as shown in the middle and bottom panels on the right side of Fig. 7. Contrary to the low-redshift sources, differences in predictions for the peaking time of the delayed signal are large already for lower energy γ-rays detectable with Fermi/LAT.

ELMAG results on high-redshift sources after correction are in good agreement with CRbeam, except for the largest time delays and deflection angles. The difference around 100 GeV can be explained by the increased absorption in ELMAG (see Sect. 2).

The results for the source 1ES 0229+200 at redshift z = 0.14 are presented in Fig. 8. Calculations are done for IGMF with Kolmogorov spectrum with strength В = 10−15 G and maximum scale LB = 10 Mpc. In this figure the full cascade contribution for zero magnetic field is denoted as “full.” The curves marked “jet” show the extended and delayed fluxes for non-zero IGMF for different angular and time intervals. The results for the CRbeam code are compared with CRPropa and ELMAG before (upper panel) and after (lower panel) corrections. All the codes give similar results for most of the parameters, after corrections.

thumbnail Fig. 7

Spectral (top), timing (middle), and imaging (bottom) properties of primary and secondary γ-ray signals for a IGMF with strength 10−15 G and maximum scale LB = 10 Mpc. Left panels show calculations for the source at redshift z = 0.03, right panels are for the source at redshift z = 0.954. Calculations with CRbeam code (pink solid) compared with CRPropa (black thin solid), corrected CRPropa (blue solid), ELMAG (black dotted), and corrected ELMAG (green solid with dots) codes. The cascade signals on the upper panels are shown for the sources been active in the past in the time intervals indicated as tags near the curves while the curve without the tag corresponds to the permanently active source. The intrinsic spectrum of the source (thick black solid line) remains fixed during source activity. Note: on the plots of the angular and time distributions, the relative normalization of the curves for different energies is adjusted for visibility.

6 Discussion

Our comparative study of model predictions for the primary and secondary very-high-energy γ-ray signals from astronomical sources at different redshifts has revealed significant differences in model predictions obtained with different Monte Carlo codes: CRbeam, CRPropa, and ELMAG. We have identified large differences in the model calculations of observables that are crucial for cosmological probes that will be enabled by the new СТА γ-ray observatory.

We found the origin of these discrepancies and eliminated most of them. Once corrections are introduced to the codes, the discrepancies are significantly reduced. We contacted the developers of ELMAG and CRPropa and they fixed problems discussed in this paper in the new versions of their codes, ELMAG 3.03 and CRPropa3-3.2. Most remarkably, following these corrections, the difference in the cascade signal does not exceed 3% between the codes when modeling a nearby source with z ≲ 0.1 and zero IGMF. Including nonzero IGMF slightly increases the scatter in the results, but it is generally less than 10%. This number can be considered as an estimate of the systematic modeling error in the measurements of cosmological evolution of EBL and measurements of IGMF with CTA.

The agreement of the results degrades as the redshift of the source approaches z ~ 1. The largest discrepancies, which can reach up to an order of magnitude, are observed in the results of CRPropa, as compared with the results of CRbeam and ELMAG (which remain close). We attribute this divergence to the simplified modeling of the EBL evolution with redshift in CRPropa. Such a simplified approach assumes a fixed shape for the EBL spectrum, which limits the possibilities for studying its evolution by modeling the spectra of distant sources.

thumbnail Fig. 8

Cascade contributions for the source at the redshift z = 0.14 and for a turbulent IGMF with Kolmogorov spectrum with a strength of B = 10−15 G and maximum scale of LB = 10 Mpc (corresponding correlation length λB ≈ 2 Mpc). The jet opening angle was assumed to be θjet = 5°, and the observer was at an angle θobs = 3° with respect to the jet axis. Red solid lines is for CRbeam code, blue dashed lines is for CRPropa code and green dash-dotted lines: the ELMAG code. Line labels indicate the constraints on the source activity time dt and angular distance from the source Ѳ that were used when constructing the cascade signal. The label “jet” denotes the cascade signal without constraints on dt (dt = ∞) and θ (θ = 2π). For comparison, we also added a cascade spectrum in the absence of a magnetic field (label “full”).

Acknowledgements

The work of D.S. and A.N. has been supported in part by the French National Research Agency (ANR) grant ANR-19-CE31-0020.


1

CRbeam code is available at the link https://github.com/okolo/mcray/tree/main/src/app/crbeam

2

While our manuscript was under revision, the new version ELMAG 3.03 was released in which our comments were taken into account and the bug with enhanced absorption at an energy ~100 GeV was fixed. The simulations with ELMAG 3.03 are presented in Appendix A.

3

Calculations with the updated version ELMAG 3.03 are shown in Figs. A.1 and A.2.

4

We have informed the developers of CRPropa about this problem and while the paper was under review, a new version CRPropa3-3.2 was released Alves Batista et al. (2022). In the new version the bug with pre-calculated tables (which affected all electromagnetic interactions) was fixed, so the results marked as “CRPropa corrected” on our plots can be read as “CRPropa3-3.2”.

Appendix A ELMAG 3.03

thumbnail Fig. A.1

Comparison of the optical depth for primary γ-rays for sources at cosmological redshifts calculated with ELMAG 3.03 for the EBL model of Franceschini et al. (2008). Details are the same as in Fig. 1. We can see the improvement in the energy range below 100 GeV compared with ELMAG 3.01, see Fig. 1.

thumbnail Fig. A.2

Model spectra of secondary γ-rays produced by interaction of monoenergetic primary γ-rays with energy Eγo = 10 TeV. Same as Fig. 2, but calculated with CRbeam and ELMAG 3.03. After corrections to the implementation of the EBL model of Franceschini et al. (2008) in ELMAG 3.03, CRbeam, and ELMAG show much better agreement.

Appendix B Additional tests with different EBL models

thumbnail Fig. B.1

Optical depth of the EBL model of Domínguez et al. (2011) calculated with CRPropa and ELMAG in comparison with the analytical model. Figure layout and details are the same as in Fig. 1. Grey bands indicate optical depth uncertainty provided by Domínguez et al. (2011). Calculations with CRbeam are not shown as the EBL model of Domínguez et al. (2011) is not available in CRbeam.

thumbnail Fig. B.2

Optical depth of the EBL model of Gilmore et al. (2012) calculated with CRbeam, CRPropa, and ELMAG in comparison with the analytical model. Figure layout and details are the same as in Fig. 1.

References

  1. Abdalla, H., Abe, H., Acero, F., et al. 2021, JCAP, 02, 048 [CrossRef] [Google Scholar]
  2. Abeysekara, A. U., Archer, A., Benbow, W., et al. 2019, ApJ, 885, 150 [NASA ADS] [CrossRef] [Google Scholar]
  3. Abramowski, A., Aharonian, F., Ait Benkhali, F., et al. 2014, A&A, 562, A145 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  4. Acciari, V. A., Ansoldi, S., Antonelli, L. A., et al. 2019, MNRAS, 486, 4233 [NASA ADS] [CrossRef] [Google Scholar]
  5. Acciari, V. A., Agudo, I., Aniello, T., et al. 2023, A&A, 670, A145 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  6. Ackermann, M., Ajello, M., Baldini, L., et al. 2018, ApJS, 237, 32 [NASA ADS] [CrossRef] [Google Scholar]
  7. Aharonian, F. A., Coppi, P. S., & Voelk, H. J. 1994, ApJ, 423, L5 [NASA ADS] [CrossRef] [Google Scholar]
  8. Alawashra, M., & Pohl, M. 2022, ApJ, 929, 67 [NASA ADS] [CrossRef] [Google Scholar]
  9. Alves Batista, R., & Saveliev, A. 2020, ApJ, 902, L11 [NASA ADS] [CrossRef] [Google Scholar]
  10. Alves Batista, R., Dundovic, A., Erdmann, M., et al. 2016, J. Cosmology Astropart. Phys., 2016, 038 [CrossRef] [Google Scholar]
  11. Alves Batista, R., Saveliev, A., & de Gouveia Dal Pino, E. M. 2019, MNRAS, 489, 3836 [Google Scholar]
  12. Alves Batista, R., Becker Tjus, J., Dorner, J., et al. 2022, JCAP, 09, 035 [CrossRef] [Google Scholar]
  13. Arlen, T. C., Vassilev, V. V., Weisgarber, T., Wakely, S. P., & Yusef Shafi, S. 2014, ApJ, 796, 18 [NASA ADS] [CrossRef] [Google Scholar]
  14. Berezinsky, V., & Kalashev, O. 2016, Phys. Rev. D, 94, 023007 [NASA ADS] [CrossRef] [Google Scholar]
  15. Blumenthal, G. R., & Gould, R. J. 1970, Rev. Mod. Phys., 42, 237 [Google Scholar]
  16. Blytt, M., Kachelrieß, M., & Ostapchenko, S. 2020, Comput. Phys. Commun., 252, 107163 [NASA ADS] [CrossRef] [Google Scholar]
  17. Broderick, A. E., Chang, P., & Pfrommer, C. 2012, ApJ, 752, 22 [NASA ADS] [CrossRef] [Google Scholar]
  18. Bondarenko, K., Boyarsky, A., Korochkin, A., et al. 2022, A&A, 660, A80 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  19. Cherenkov Telescope Array Consortium (Acharya, B. S., et al..) 2019, Science with the Cherenkov Telescope Array (World Scientific Publishing Co. Pte. Ltd.) [Google Scholar]
  20. Dolag, K., Kachelriess, M., Ostapchenko, S., & Tomàs, R. 2011, ApJ, 727, L4 [NASA ADS] [CrossRef] [Google Scholar]
  21. Domínguez, A., Primack, J. R., Rosario, D. J., et al. 2011, MNRAS, 410, 2556 [Google Scholar]
  22. Elyiv, A., Neronov, A., & Semikoz, D. V. 2009, Phys. Rev. D, 80, 023010 [NASA ADS] [CrossRef] [Google Scholar]
  23. Fermi-LAT Collaboration (Abdollahi, S., et al..) 2018, Science, 362, 1031 [NASA ADS] [CrossRef] [Google Scholar]
  24. Finke, J. D., Reyes, L. C., Georganopoulos, M., et al. 2015, ApJ, 814, 20 [NASA ADS] [CrossRef] [Google Scholar]
  25. Franceschini, A., Rodighiero, G., & Vaccari, M. 2008, A&A, 487, 837 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  26. Gilmore, R. C., Somerville, R. S., Primack, J. R., & Domínguez, A. 2012, MNRAS, 422, 3189 [NASA ADS] [CrossRef] [Google Scholar]
  27. Gould, R. J., & Schréder, G. P. 1967, Phys. Rev., 155, 1404 [Google Scholar]
  28. H.E.S.S. Collaboration (Abdalla, H., et al..) 2017, A&A, 606, A59 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  29. Korochkin, A., Neronov, A., & Semikoz, D. 2020a, JCAP, 03, 064 [CrossRef] [Google Scholar]
  30. Korochkin, A., Neronov, A., & Semikoz, D. 2020b, A&A, 633, A74 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  31. Korochkin, A., Kalashev, O., Neronov, A., & Semikoz, D. 2021, ApJ, 906, 116 [NASA ADS] [CrossRef] [Google Scholar]
  32. Korochkin, A., Neronov, A., Lavaux, G., Ramsoy, M., & Semikoz, D. 2022, J. Exp. Theor. Phys., 134, 498 [NASA ADS] [CrossRef] [Google Scholar]
  33. Matsuura, S., Arai, T., Bock, J. J., et al. 2017, ApJ, 839, 7 [NASA ADS] [CrossRef] [Google Scholar]
  34. Miniati, F., & Elyiv, A. 2013, ApJ, 770, 54 [NASA ADS] [CrossRef] [Google Scholar]
  35. Murase, K., Takahashi, K., Inoue, S., Ichiki, K., & Nagataki, S. 2008, ApJ, 686, L67 [NASA ADS] [CrossRef] [Google Scholar]
  36. Neronov, A., & Semikoz, D. V. 2007, JETP Lett., 85, 589 [Google Scholar]
  37. Neronov, A., & Semikoz, D. V. 2009, Phys. Rev. D, 80, 123012 [NASA ADS] [CrossRef] [Google Scholar]
  38. Neronov, A., & Vovk, I. 2010, Science, 328, 73 [NASA ADS] [CrossRef] [Google Scholar]
  39. Plaga, R. 1995, Nature, 374, 430 [NASA ADS] [CrossRef] [Google Scholar]
  40. Podlesnyi, E. I., Dzhatdoev, T. A., & Galkin, V. I. 2022, MNRAS, 516, 5379 [NASA ADS] [CrossRef] [Google Scholar]
  41. Takahashi, K., Mori, M., Ichiki, K., & Inoue, S. 2012, ApJ, 744, L7 [NASA ADS] [CrossRef] [Google Scholar]
  42. Tavecchio, F., Ghisellini, G., Foschini, L., et al. 2010, MNRAS, 406, L70 [NASA ADS] [Google Scholar]
  43. Tavecchio, F., Ghisellini, G., Bonnoli, G., & Foschini, L. 2011, MNRAS, 414, 3566 [NASA ADS] [CrossRef] [Google Scholar]
  44. Tiede, P., Broderick, A. E., Shalaby, M., et al. 2020, ApJ, 892, 123 [NASA ADS] [CrossRef] [Google Scholar]

All Figures

thumbnail Fig. 1

Comparison of the optical depth for primary γ-rays for sources at cosmological redshifts in CRbeam, CRPropa and ELMAG. In all cases, the EBL model of Franceschini et al. (2008) is assumed. Top panels show the optical depth as a function of γ-ray energy for a range of redshifts. Bottom panels show discrepancies between the code calculations and the analytical model. For CRPropa, the differences between the analytical model and code calculations are not shown for redshifts of >0.3 because they exceed 50%.

In the text
thumbnail Fig. 2

Differences in model predictions for the spectra of secondary γ-rays produced by interaction of monoenergetic primary γ-ray beam with energy Eγo = 10 TeV. Top panels show the primary and secondary γ-ray spectra for sources at different redshifts. Bottom panels show the differences between CRbeam, CRPropa, and ELMAG models.

In the text
thumbnail Fig. 3

Energy distribution of γ-rays produced via inverse Compton scattering on CMB (labeled as ICS on CMB) by electrons with different energies, indicated as tags for each set of spectra (top). Spectra of γ-rays from inverse Compton scattering on EBL (labeled as ICS on EBL) for a range of electron energies (middle). Energy spectra of pairs produced in interactions of γ-rays with CMB photons (bottom). Energies of the primary γ-rays are shown as tags for each group of spectra. In all cases, the codes used for the model calculations are specified in the legend.

In the text
thumbnail Fig. 4

Interaction rates for the pair production and inverse Compton scattering on the CMB at the redshifts z = 0 and z = 1.

In the text
thumbnail Fig. 5

Deflection of electrons of different energies in constant magnetic field with fixed physical strength in CRbeam and CRPropa.

In the text
thumbnail Fig. 6

Deflections of electrons at z = 0 in turbulent magnetic fields with different maximum scales LB. Panels show the root mean square deflection angle dependence on the physical path length.

In the text
thumbnail Fig. 7

Spectral (top), timing (middle), and imaging (bottom) properties of primary and secondary γ-ray signals for a IGMF with strength 10−15 G and maximum scale LB = 10 Mpc. Left panels show calculations for the source at redshift z = 0.03, right panels are for the source at redshift z = 0.954. Calculations with CRbeam code (pink solid) compared with CRPropa (black thin solid), corrected CRPropa (blue solid), ELMAG (black dotted), and corrected ELMAG (green solid with dots) codes. The cascade signals on the upper panels are shown for the sources been active in the past in the time intervals indicated as tags near the curves while the curve without the tag corresponds to the permanently active source. The intrinsic spectrum of the source (thick black solid line) remains fixed during source activity. Note: on the plots of the angular and time distributions, the relative normalization of the curves for different energies is adjusted for visibility.

In the text
thumbnail Fig. 8

Cascade contributions for the source at the redshift z = 0.14 and for a turbulent IGMF with Kolmogorov spectrum with a strength of B = 10−15 G and maximum scale of LB = 10 Mpc (corresponding correlation length λB ≈ 2 Mpc). The jet opening angle was assumed to be θjet = 5°, and the observer was at an angle θobs = 3° with respect to the jet axis. Red solid lines is for CRbeam code, blue dashed lines is for CRPropa code and green dash-dotted lines: the ELMAG code. Line labels indicate the constraints on the source activity time dt and angular distance from the source Ѳ that were used when constructing the cascade signal. The label “jet” denotes the cascade signal without constraints on dt (dt = ∞) and θ (θ = 2π). For comparison, we also added a cascade spectrum in the absence of a magnetic field (label “full”).

In the text
thumbnail Fig. A.1

Comparison of the optical depth for primary γ-rays for sources at cosmological redshifts calculated with ELMAG 3.03 for the EBL model of Franceschini et al. (2008). Details are the same as in Fig. 1. We can see the improvement in the energy range below 100 GeV compared with ELMAG 3.01, see Fig. 1.

In the text
thumbnail Fig. A.2

Model spectra of secondary γ-rays produced by interaction of monoenergetic primary γ-rays with energy Eγo = 10 TeV. Same as Fig. 2, but calculated with CRbeam and ELMAG 3.03. After corrections to the implementation of the EBL model of Franceschini et al. (2008) in ELMAG 3.03, CRbeam, and ELMAG show much better agreement.

In the text
thumbnail Fig. B.1

Optical depth of the EBL model of Domínguez et al. (2011) calculated with CRPropa and ELMAG in comparison with the analytical model. Figure layout and details are the same as in Fig. 1. Grey bands indicate optical depth uncertainty provided by Domínguez et al. (2011). Calculations with CRbeam are not shown as the EBL model of Domínguez et al. (2011) is not available in CRbeam.

In the text
thumbnail Fig. B.2

Optical depth of the EBL model of Gilmore et al. (2012) calculated with CRbeam, CRPropa, and ELMAG in comparison with the analytical model. Figure layout and details are the same as in Fig. 1.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.