Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: ELMAG: A Monte Carlo simulation of electromagnetic cascades on the
  extragalactic background light and in magnetic fields   A Monte Carlo program for the simulation of electromagnetic cascades
initiated by high-energy photons and electrons interacting with extragalactic
background light (EBL) is presented. Pair production and inverse Compton
scattering on EBL photons as well as synchrotron losses and deflections of the
charged component in extragalactic magnetic fields (EGMF) are included in the
simulation. Weighted sampling of the cascade development is applied to reduce
the number of secondary particles and to speed up computations. As final
result, the simulation procedure provides the energy, the observation angle,
and the time delay of secondary cascade particles at the present epoch.
Possible applications are the study of TeV blazars and the influence of the
EGMF on their spectra or the calculation of the contribution from ultrahigh
energy cosmic rays or dark matter to the diffuse extragalactic gamma-ray
background. As an illustration, we present results for deflections and
time-delays relevant for the derivation of limits on the EGMF.

25
The categories of this paper are: patt-sol
2
The categories of this paper are: math
15
The categories of this paper are: nucl-ex
34
The categories of this paper are: chem-ph
23
The categories of this paper are: solv-int
10
The categories of this paper are: q-bio
32
The categories of this paper are: atom-ph
20
The categories of this paper are: acc-phys
0
The categories of this paper are: hep-ph
11
The categories of this paper are: hep-lat
27
The categories of this paper are: comp-gas
30
The categories of this paper are: q-alg
18
The categories of this paper are: econ
3
The categories of this paper are: physics
13
The categories of this paper are: quant-ph
9
The categories of this paper are: nlin