gSeaGen: The KM3NeT GENIE-based code for neutrino telescopes
Abstract
The gSeaGen code is a GENIE-based application developed to efficiently generate high statistics samples of events, induced by neutrino interactions, detectable in a neutrino telescope. The gSeaGen code is able to generate events induced by all neutrino flavours, considering topological differences between track-type and shower-like events. Neutrino interactions are simulated taking into account the density and the composition of the media surrounding the detector. The main features of gSeaGen are presented together with some examples of its application within the KM3NeT project.
Full text
gSeaGen: the KM3NeT GENIE-based code for neutrino telescopes S. Aielloa, A. Albertbb,b, S. Alves Garrec, Z. Alyd, F. Amelie, M. Andref, G. Androulakisg, M. Anghinolfih, M. Anguitai, G. Antonj, M. Ardidk, J. Aublinl, C. Bagatelasg, G. Barbarinom,n, B. Baretl, S. Basegmez du Preeo, M. Bendahmanp, E. Berbeeo, A. M. van den Bergq, V. Bertind, S. Biagir, A. Biagionie, M. Bissingerj, M. Boettchers, J. Boumaazap, M. Boutat, M. Bouwhuiso, C. Bozzau, H.Brˆanza¸sv, M. Bruchnerj, R. Bruijno,w, J. Brunnerd, E. Buisx, R. Buompanem,y, J. Bustod, D. Calvoc, A. Caponez,e, V. Carreteroc, P. Castaldiaa, S. Celliz,e,bc, M. Chababab, N. Chaul, A. Chenac, S. Cherubinir,ad, V. Chiarellaae, T. Chiarusiaa, M. Circellaaf, R. Cocimanor, J. A. B. Coelhol, A. Coleirol, M. Colomer Mollal,c, R. Coniglioner, I. Corredoirac, P. Coyled, A. Creusotl, G. Cuttoner, A. D’Onofriom,y, R. Dallierag, M. De Palmaaf,ah, I. Di Palmaz,e, A. F. D´ıazi, D. Diego-Tortosak, C. Distefanor,∗, A. Domih,d,ai, R. Don`aaa,aj, C. Donzaudl, D. Dornicd, M. D¨orrak, D. Drouhinbb,b, M. Durocherr,bc, T. Eberlj, D. van Eijko, I. El Bojaddainit, D. Elsaesserak, A. Enzenh¨oferd, V. Espinosa Rosell´ok, P. Fermaniz,e, G. Ferrarar,ad, M. D. Filipovi´cal, F. Filippiniaa,aj, A. Francoaf, L. A. Fuscol, O. Gabellaam, T. Galj, A. Garcia Sotoo, F. Garufim,n, Y. Gateletl, N. Geißelbrechtj, L. Gialanellam,y, E. Giorgior, S. R. Gozzinic, R. Graciao, K. Grafj, D. Grassoan, G. Grellaao, D. Guderianbd, C. Guidih,ai, S. Hallmannj, H. Hamdaouip, H. van Harenap, A. Heijboero, A. Hekaloak, J. J. Hern´andez-Reyc, J. Hofest¨adtj, F. Huangaq, W. Idrissi Ibnsalihm,y, G. Illuminatic, C. W. Jamesar, M. de Jongo, P. de Jongo,w, B. J. Jungo, M. Kadlerak, P. Kalaczy´nskias, O. Kalekinj, U. F. Katzj, N. R. Khan Chowdhuryc, F. van der Knaapx, E. N. Koffemano,w, P. Kooijmanw,be, A. Kouchnerl,at, M. Kreters, V. Kulikovskiyh, R. Lahmannj, G. Larosar, R. Le Bretonl, O. Leonardir, F. Leoner,ad, E. Leonoraa, G. Leviaa,aj, M. Lincettod, M. Lindsey Clarkl, T. Lipreauag, A. Lonardoe, F. Longhitanoa, D. Lopez-Cotoau, L. Madererl, J. Ma´nczakc, K. Mannheimak, A. Margiottaaa,aj, A. Marinelliav,an, C. Markoug, ∗corresponding author Email address: [email protected] (C. Distefano) Preprint submitted to Computer Physics Communications April 1, 2020 arXiv:2003.14040v1 [astro-ph.IM] 31 Mar 2020
L. Martinag, J. A. Mart´ınez-Morak, A. Martiniae, F. Marzaiolim,y, S. Mastroiannim, S. Mazzouab, K. W. Meliso, G. Mielem,n, P. Migliozzim, E. Mignecor, P. Mijakowskias, L. S. Mirandaaw, Z. Modebadzeax, C. M. Mollom, M. Morgantian,bf, M. Moserj, A. Moussat, R. Mullero, M. Musumecir, L. Nautao, S. Navasau, C. A. Nicolaue, B. ´ O Fearraigho,w, M. Organokovaq, A. Orlandor, G. Papalashviliax, R. Papaleor, C. Pastoreaf, A. M. PAUNv, G. E. P˘av˘ala¸sv, C. Pellegrinoaj,bg, M. Perrin-Terrind, P. Piattellir, C. Pietersec, K. Pikounisg, O. Pisantim,n, C. Poir`ek, V. Popav, M. Postw, T. Pradieraq, G. P¨uhlhoferay, S. Pulvirentir, L. Quinnd, O. Rabyangs, F. Raffaellian, N. Randazzoa, A. Rapicavoliad, S. Razzaqueaw, D. Realc, S. Reckj, J. Reubeltj, G. Riccobener, M. Richeraq, S. Rivoiream, A. Rovellir, F. Salesa Greusc, D. F. E. Samtlebeno,az, A. S´anchez Losaaf, M. Sanguinetih,ai, A. Santangeloay, D. Santonocitor, P. Sapienzar, J. Schnabelj, V. Sciaccar, J. Senecao, I. Sguraaf, R. Shanidzeax, A. Sharmaav, F. Simeonee, A.Sinopouloug, B. Spissoao,m, M. Spurioaa,aj, D. Stavropoulosg, J. Steijgero, S. M. Stellacciao,m, M. Taiutih,ai, Y. Tayalatip, E. Tenlladoau, T. Thakorec, S. Tingayar, E. Tzamariudakig, D. Tzanetatosg, V. Van Elewyckl,at, G. Vannoyeh, G. Vasileiadisam, F. Versariaa,aj, S. Violar, D. Vivolom,n, G. de Wasseigel, J. Wilmsba, R. Wojaczy´nskias, E. de Wolfo,w, D. Zaborovd,bh, S. Zavatarellih, A. Zegarelliz,e, J. D. Zornozac, J. Z´u˜nigac, N. Zywuckas aINFN, Sezione di Catania, Via Santa Sofia 64, Catania, 95123 Italy bIN2P3, IPHC, 23 rue du Loess, Strasbourg, 67037 France cIFIC - Instituto de F´ısica Corpuscular (CSIC - Universitat de Val`encia), c/Catedr´atico Jos´e Beltr´an, 2, 46980 Paterna, Valencia, Spain dAix Marseille Univ, CNRS/IN2P3, CPPM, Marseille, France eINFN, Sezione di Roma, Piazzale Aldo Moro 2, Roma, 00185 Italy fUniversitat Polit`ecnica de Catalunya, Laboratori d’Aplicacions Bioac´ustiques, Centre Tecnol`ogic de Vilanova i la Geltr´u, Avda. Rambla Exposici´o, s/n, Vilanova i la Geltr´u, 08800 Spain gNCSR Demokritos, Institute of Nuclear and Particle Physics, Ag. Paraskevi Attikis, Athens, 15310 Greece hINFN, Sezione di Genova, Via Dodecaneso 33, Genova, 16146 Italy iUniversity of Granada, Dept. of Computer Architecture and Technology/CITIC, 18071 Granada, Spain jFriedrich-Alexander-Universit¨at Erlangen-N¨urnberg, Erlangen Centre for Astroparticle Physics, Erwin-Rommel-Straße 1, 91058 Erlangen, Germany kUniversitat Polit`ecnica de Val`encia, Instituto de Investigaci´on para la Gesti´on Integrada de las Zonas Costeras, C/ Paranimf, 1, Gandia, 46730 Spain lAPC, Universit´e Paris Diderot, CNRS/IN2P3, CEA/IRFU, Observatoire de Paris, 2
Sorbonne Paris Cit´e, 75205 Paris, France mINFN, Sezione di Napoli, Complesso Universitario di Monte S. Angelo, Via Cintia ed. G, Napoli, 80126 Italy nUniversit`a di Napoli “Federico II”, Dip. Scienze Fisiche “E. Pancini”, Complesso Universitario di Monte S. Angelo, Via Cintia ed. G, Napoli, 80126 Italy oNikhef, National Institute for Subatomic Physics, PO Box 41882, Amsterdam, 1009 DB Netherlands pUniversity Mohammed V in Rabat, Faculty of Sciences, 4 av. Ibn Battouta, B.P. 1014, R.P. 10000 Rabat, Morocco qKVI-CART University of Groningen, Groningen, the Netherlands rINFN, Laboratori Nazionali del Sud, Via S. Sofia 62, Catania, 95123 Italy sNorth-West University, Centre for Space Research, Private Bag X6001, Potchefstroom, 2520 South Africa tUniversity Mohammed I, Faculty of Sciences, BV Mohammed VI, B.P. 717, R.P. 60000 Oujda, Morocco uUniversit`a di Salerno e INFN Gruppo Collegato di Salerno, Dipartimento di Matematica, Via Giovanni Paolo II 132, Fisciano, 84084 Italy vISS, Atomistilor 409, M˘agurele, RO-077125 Romania wUniversity of Amsterdam, Institute of Physics/IHEF, PO Box 94216, Amsterdam, 1090 GE Netherlands xTNO, Technical Sciences, PO Box 155, Delft, 2600 AD Netherlands yUniversit`a degli Studi della Campania ”Luigi Vanvitelli”, Dipartimento di Matematica e Fisica, viale Lincoln 5, Caserta, 81100 Italy zUniversit`a La Sapienza, Dipartimento di Fisica, Piazzale Aldo Moro 2, Roma, 00185 Italy aaINFN, Sezione di Bologna, v.le C. Berti-Pichat, 6/2, Bologna, 40127 Italy abCadi Ayyad University, Physics Department, Faculty of Science Semlalia, Av. My Abdellah, P.O.B. 2390, Marrakech, 40000 Morocco acUniversity of the Witwatersrand, School of Physics, Private Bag 3, Johannesburg, Wits 2050 South Africa adUniversit`a di Catania, Dipartimento di Fisica e Astronomia, Via Santa Sofia 64, Catania, 95123 Italy aeINFN, LNF, Via Enrico Fermi, 40, Frascati, 00044 Italy afINFN, Sezione di Bari, Via Amendola 173, Bari, 70126 Italy agSubatech, IMT Atlantique, IN2P3-CNRS, Universit´e de Nantes, 4 rue Alfred Kastler - La Chantrerie, Nantes, BP 20722 44307 France ahUniversity of Bari, Via Amendola 173, Bari, 70126 Italy aiUniversit`a di Genova, Via Dodecaneso 33, Genova, 16146 Italy ajUniversit`a di Bologna, Dipartimento di Fisica e Astronomia, v.le C. Berti-Pichat, 6/2, Bologna, 40127 Italy akUniversity W¨urzburg, Emil-Fischer-Straße 31, W¨urzburg, 97074 Germany alWestern Sydney University, School of Computing, Engineering and Mathematics, Locked Bag 1797, Penrith, NSW 2751 Australia amLaboratoire Univers et Particules de Montpellier), Place Eug`ene Bataillon - CC 72, Montpellier C´edex 05, 34095 France 3
anINFN, Sezione di Pisa, Largo Bruno Pontecorvo 3, Pisa, 56127 Italy aoUniversit`a di Salerno e INFN Gruppo Collegato di Salerno, Dipartimento di Fisica, Via Giovanni Paolo II 132, Fisciano, 84084 Italy apNIOZ (Royal Netherlands Institute for Sea Research) and Utrecht University, PO Box 59, Den Burg, Texel, 1790 AB, the Netherlands aqUniversit´e de Strasbourg, CNRS IPHC UMR 7178, 23 rue du Loess, Strasbourg, 67037 France arInternational Centre for Radio Astronomy Research, Curtin University, Bentley, WA 6102, Australia asNational Centre for Nuclear Research, 02-093 Warsaw, Poland atInstitut Universitaire de France, 1 rue Descartes, Paris, 75005 France auUniversity of Granada, Dpto. de F´ısica Te´orica y del Cosmos & C.A.F.P.E., 18071 Granada, Spain avUniversit`a di Pisa, Dipartimento di Fisica, Largo Bruno Pontecorvo 3, Pisa, 56127 Italy awUniversity of Johannesburg, Department Physics, PO Box 524, Auckland Park, 2006 South Africa axTbilisi State University, Department of Physics, 3, Chavchavadze Ave., Tbilisi, 0179 Georgia ayEberhard Karls Universit¨at T¨ubingen, Institut f¨ur Astronomie und Astrophysik, Sand 1, T¨ubingen, 72076 Germany azLeiden University, Leiden Institute of Physics, PO Box 9504, Leiden, 2300 RA Netherlands baFriedrich-Alexander-Universit¨at Erlangen-N¨urnberg, Remeis Sternwarte, Sternwartstraße 7, 96049 Bamberg, Germany bbUniversit´e de Strasbourg, Universit´e de Haute Alsace, GRPHE, 34, Rue du Grillenbreit, Colmar, 68008 France bcGran Sasso Science Institute, GSSI, Viale Francesco Crispi 7, L’Aquila, 67100 Italy bdUniversity of M¨unster, Institut f¨ur Kernphysik, Wilhelm-Klemm-Str. 9, M¨unster, 48149 Germany beUtrecht University, Department of Physics and Astronomy, PO Box 80000, Utrecht, 3508 TA Netherlands bfAccademia Navale di Livorno, Viale Italia 72, Livorno, 57100 Italy bgINFN, CNAF, v.le C. Berti-Pichat, 6/2, Bologna, 40127 Italy bhNRC ”Kurchatov Institute”, A.I. Alikhanov Institute for Theoretical and Experimental Physics, Bolshaya Cheremushkinskaya ulitsa 25, Moscow, 117218 Russia Abstract The gSeaGen code is a GENIE-based application developed to efficiently generate high statistics samples of events, induced by neutrino interactions, detectable in a neutrino telescope. The gSeaGen code is able to generate 4
events induced by all neutrino flavours, considering topological differences between track-type and shower-like events. Neutrino interactions are simulated taking into account the density and the composition of the media surrounding the detector. The main features of gSeaGen are presented together with some examples of its application within the KM3NeT project. Keywords: Astroparticle Physics, High Energy Neutrinos, Monte Carlo Event Generator, Neutrino Telescopes, Neutrino Oscillations, KM3NeT, GENIE. Manuscript Title: gSeaGen: a GENIE-based code for neutrino telescopes Authors: The KM3NeT Collaboration (corresponding author C. Distefano) Program Title: gSeaGen Journal Reference: Catalogue identifier: Licensing provisions: GPLv3 Programming language: C++ Computer: CC-IN2P3 Linux computer farm: platform CentOS 7.6.1810, architecture: x86 64 (see https://cc.in2p3.fr/). Operating system: Linux and Unix-like operating systems. RAM: 550 Mbytes Number of processors used: one Supplementary material: Keywords: Astroparticle Physics, High Energy Neutrinos, Monte Carlo Event Generator, Neutrino Telescopes, Neutrino Oscillations, KM3NeT, GENIE. Classification: 1.1 Cosmic Rays, 11.1 General, High Energy Physics and Computing, 11.3 Cascade and Shower Simulation, 11.7 Detector Design and Simulation. 5
External routines/libraries: GENIE [1] and its external dependencies. Linkable to MUSIC [2] and PROPOSAL [3]. Subprograms used: Catalogue identifier of previous version:* Journal reference of previous version:* Does the new version supersede the previous version?:* Nature of problem: Development of a code to generate detectable events in neutrino telescopes, using modern and maintained neutrino interaction simulation libraries which include the state-of-the-art physics models. The default application is the simulation of neutrino interactions within KM3NeT [4]. Solution method: Neutrino interactions are simulated using GENIE, a modern framework for Monte Carlo event generators. The GENIE framework, used by nearly all modern neutrino experiments, is considered as a reference code within the neutrino community. Reasons for the new version:* Summary of revisions:* Restrictions: Simulation of neutrinos with energy lower than 5 TeV, due to the present GENIE valid energy range. Unusual features: Additional comments: The code was tested with GENIE version 2.12.10 and it is linkable with release series 3. Running time: 3 ms per generated muon neutrino with energy of 1 TeV, using a 1.3 GHz CPU. 6
References [1] C. Andreopoulos at al., Nucl. Instrum. Meth. A614 (2010) 87. [2] P. Antonioli et al., Astropart. Phys. 7(1997) 357. [3] J. H. Koehne et al., Comput. Phys. Commun. 184 (2013) 2070. [4] S. Adri´an-Mart´ınez et al., J. Phys. G: Nucl. Part. Phys. 43 (2016) 084001. * Items marked with an asterisk are only required for new versions of programs previously published in the CPC Program Library. 1. Introduction Monte Carlo simulations play an important role in the data analysis of neutrino telescopes. Simulations are used to design reconstruction algorithms for neutrino events, as well as to estimate cosmic and atmospheric signals in various physics analyses. GENIE [1] is a neutrino event generator focused mainly on the low-energy range (≤5 GeV) and presently valid up to 5 TeV. It is currently used by many experiments working in the neutrino oscillation field e.g. [2, 3, 4, 5, 6, 7]. The project’s goal is the development of a reference neutrino interaction Monte Carlo simulation tool whose validity extends to PeV scales. The gSeaGen code simulates events induced by all flavours of neutrinos and detectable by a neutrino telescope, using GENIE to simulate the neutrino interactions. In particular, it allows electron, muon and tau neutrino events to be generated. Depending on the steering parameters it can produce events from multiple (anti)neutrino flavours within one execution of the program (e.g. νµ+ ¯νµ); simulate charged current (CC) and/or neutral current (NC) interactions; and simulate neutrinos arriving isotropically or from point or extended sources. The code was developed for KM3NeT [8]. Although applicable both to underwater and under-ice neutrino detectors, the code terminology, as well as the description presented in this paper, follow those of underwater detectors. 2. The coordinate system The coordinates in gSeaGen are Cartesian with the positive z-axis pointing to the local zenith, the positive x-axis pointing north and the positive 7
y-axis as needed to make a right-handed coordinate system. By default, the origin is defined as being the water/rock boundary. To define astrophysical source positions, an associated horizontal coordinate system is defined, with the azimuth measured eastward from the North, as shown in Fig.1. The rela- Figure 1: The Cartesian and the associated astronomical horizontal systems as defined in gSeaGen. The relation between the source altitude aand azimuth Acoordinates and the angles θand φ, defining the arrival direction of the emitted neutrinos is shown. tion between the source altitude aand azimuth Acoordinates and the angles θand φ, defining the arrival direction of the emitted neutrinos, is then: θ= 90◦−a φ= 360◦−A .(1) 3. The detector active volume The detector active volume is defined as a cylinder, the can, having the bottom bounded at the seabed and surrounding the instrumented volume as sketched in Fig. 2. The user can set the can defining the z-level of the can bottom Zmin can , the z-level of the can top Zmax can and the can radius Rcan. It 8
is possible to define Zmin can 6= 0. In this case, the coordinate system origin is translated along the z-axis in order to bound the can to the bottom at the seabed. With this choice, the user can shift the origin along the z-axis from the default position set at z= 0. Presently, the bottom of the can is bounded at the seabed; this constraint will be overcome in the next versions. However, detectors not lying on the rock, as in the case of under-ice telescopes, can be simulated by enlarging the can below the detector. gSeaGen can also generate a can by automatically reading a file containing the detector geometry. In this case the code defines a cylinder representing the detector’s instrumented volume. The can is then built by enlarging the instrumented volume by ntimes the light absorption length, La, input by the user. Presently only ANTARES and KM3NeT geometry files are accepted by gSeaGen. The can represents the detector horizon to the light emitted by the neutrino-induced particles. All the events leading to Cherenkov radiation in the can, i.e. events interacting inside the can or producing a muon reaching the can surface, are stored in the output file. The particle tracking inside the can and the Cherenkov light emission are performed in the next steps of the simulation chain by independent programs to study the detector response. Figure 2: Definition of the detector can. 9
sources have been implemented in a gSeaGen internal library based on Ref. [13]. 6.2. Generation of the neutrino vertex As in the standard GENIE neutrino flux drivers, the neutrino vertex is generated on a circular surface with radius RT. The generation area is tangent to a sphere of radius RL, centred at the detector can centre (see Fig. 6). The radius RLis equal to the diagonal of the interaction volume so that the generation area is always outside this volume. The radius of the generation area is: RT=D/2 + 100 m,(4) where Dis the detector diagonal. Using option -rt, the user has the possibility to modify the radius of the generation area setting Dequal to the interaction volume diagonal or RTto a given value (see Sec. 10). A circular generation area with a fixed radius disfavours particular directions when the detector is strongly asymmetric. Thus, an alternative new method has been developed to spread neutrino vertices within the surface defined by the projection of the can on to the plane perpendicular to the neutrino direction. This increases the number of events at the can by 30% or more, depending on the can shape. When this method is activated (with option -rt), the generation area is not constant but depends on the neutrino direction. 6.3. Generation of the neutrino energy Neutrinos are generated with energy following a power-law spectrum E−X, where Xis the spectral index input by the user. gSeaGen gives the possibility to bin the energy spectrum in equal divisions in log10(E). The number Niof incoming neutrinos in each bin, ranging from Ei min to Ei max, is given by: Ni=NTot ·REi max Ei min E−XdE REmax Emin E−XdE ,(5) where NTot is the total number of neutrinos in the whole energy range from Emin to Emax. When muon inducing events are simulated, the interaction volume is scaled according to the maximum muon range in rock and water, calculated at the highest neutrino energy in the bin (see Sec. 5). 16
Figure 6: Definition of the generation area for the neutrino vertices. For a given neutrino direction, the generation area is a circle, with radius RT, which is tangent to a sphere of radius RLcentred at the detector can centre. RTand RLare chosen such that the generation area is always outside the interaction volume and so that, for every given direction, the “shadow” of the generation surface covers the entire detector can. See text for more details. Since interaction probabilities are very small numbers, GENIE scales up the probabilities to reduce the number of trials. This is reflected in the weights of interacting neutrinos as discussed in Sec. 7. The probability scale is defined as the maximum possible total interaction probability, i.e. the probability at the maximum neutrino energy (corresponding to the maximum cross section) and for the maximum possible neutrino path length in the interaction volume [1]. When the energy range is binned, the interaction probability is scaled up at each bin, increasing the statistics for lower neutrino energies. In this way, the simulation can span different orders of magnitude in energy, as usually required in the simulation of neutrino telescopes. 17
6.4. Neutrino interaction and events at the detector Once the neutrino energy, position and direction are generated, the neutrino interaction is simulated using the GENIE event generation driver class GMCJDriver [1]. If the neutrino interacts inside the can, all particles in the final state are stored in the output file. In the case of CC interaction of muon or tau neutrinos, the interaction could take place outside the can and still produce a visible lepton in the detector. In this case, all induced particles are rejected except the muons produced at a distance from the can lower than the maximum range in water. These muons are propagated and stored in the output file if they reach the can surface. It is possible to add a layer of rock just below the can using the option -bedrock (see Sec. 10). In this case, all particles produced in the interaction are stored in the output file and the bedrock layer is considered part of the can for their propagation. By default, gSeaGen uses its internal muon propagator code PropaMuon, described in Appendix A. Alternatively, it is also possible to use external propagators such as MUSIC [14] and PROPOSAL [15], if enabled at compiletime. 7. Computation of the event weight During the simulation, each event is assigned a weight wevt in order to shape the generation to the expected neutrino flux. The event weight is the product of the generation weight wgen and of the value of the neutrino energy spectrum f(E, θ, φ): wevt =wgen ·f(E, θ, φ).(6) The generation weight is: wgen =IE·Iθ·Tgen ·Agen ·Nν·EX·Pscale ·PEarth(E, cos θ) NTot ,(7) where: •IEis the energy phase space factor, equal to the generation spectrum E−Xintegrated over the whole simulated neutrino energy range. 18
•Iθis the angular phase space factor, depending on the type of neutrino source: Iθ= 2π·((cos θ)max −(cos θ)min) for diffuse flux (sr) 1 for point/extended sources (dimensionless) . (8) •Tgen is the simulated livetime, equal to one year expressed in seconds. In the case of point-like or extended sources for which neutrinos are generated between two dates defined by the user (see Sec. 6.1), Tgen is set to the corresponding time interval. •Agen is the area of the generation surface expressed in m2. It has the constant value πR2 Twhen the generation area is defined as a circle with a fixed radius. When the user activates the generation on the can projection (see Sec. 6.2), Agen depends on the neutrino direction and is calculated for each event by the code. •Nνis the number of generated neutrino types. •EXis the reciprocal of the generation spectrum evaluated at the generated neutrino energy. •NTot is the total number of simulated incoming neutrinos. •Pscale is the GENIE interaction probability scale [1] (see Sec. 6.3). •PEarth is the transmission probability through the Earth evaluated as: PEarth(E, cos θ) = e−NA·σ(E)·ρl(θ),(9) where σ(E) is the total CC cross section per nucleon (accounting for the different layer compositions). This ignores the (small) effect of NC interactions, which will reduce the neutrino energy without absorbing it. The tau regeneration is also ignored since it is not relevant at the present neutrino energies and will be implemented in the future when the GENIE extension to very high energies will be available [11]. ρl(θ) is the column depth along the neutrino path inside the Earth up to the interaction vertex. It is computed as the line integral ρl(θ) = 19
RLρEarth(r)dl, where Lis the neutrino path at the angle θand ρEarth(r) is the Earth density profile according to the PREM model [9] (see Tab. 2). The column depth and the transmission probability for different neutrino energies calculated by gSeaGen are shown in Fig. 7 and 8, respectively. Table 2: Earth density profile according to the PREM model [9]: the variable χis the normalised radius χ=r/RE, where ris the distance form the Earth centre and RE= 6371 km is the Earth radius. SiteDepth is the detector site depth. The third column indicates the target medium associated to each layer. Density (g/cm3) Radius (km) Composition 13.0885 −8.8381χ20< r < 1221.5 Core 12.5815 −1.2638χ−3.6426χ2−5.5281χ31221.5< r < 3480 Core 7.9565 −6.4761χ+ 5.5283χ2−3.0807χ33480 < r < 5701 Mantle 5.3197 −1.4836χ5701 < r < 5771 Mantle 11.2494 −8.0298χ5771 < r < 5971 Mantle 7.1089 −3.8045χ5971 < r < 6151 Mantle 2.691 + 0.6924χ6151 < r < 6346.6 Mantle 2.900 6346.6< r < 6356 Mantle ρr6356 < r < RE−SiteDepth Rock ρsRE−SiteDepth < r < RESeaWater 8. Calculation of the systematic weights The known accuracy of the input simulation parameters can be propagated with GENIE to provide uncertainties related to neutrino interactions. For each input physics quantity P, a systematic parameter xPis introduced. Tweaking it modifies the corresponding physics parameter Pas follows: P→P0=P(1 + xP·δP/P),(10) where δP is the estimated standard deviation of P. The calculation of the systematic errors in GENIE is based on an event reweighting strategy. A description of the full reweighting scheme is reported in [12]. 20
Figure 7: Column depth as a function of the neutrino arrival direction according to the PREM model [9]. The spread visible for downward going neutrinos is due to the range of interaction vertex depths from the same arrival direction. The evaluation of the systematics has been implemented in gSeaGen, using the GENIE class GReWeight [12]. The implementation accepts single parameters or a list of them as input. In the latter case, the code treats all parameters at the same time and calculates the global systematic weight. If the calculation is activated, the systematic weights wsys are written in the output file. The modified distributions are obtained by multiplying the event weights by wsys. It is also possible to compute the systematic weights using the standard GENIE applications. These applications need as input the native GENIE format output file, available running gSeaGen with the option -w (see Sec. 10). 9. Installing the code The gSeaGen source code can be downloaded from zenodo.org/record/3715310 [16]. Its compiling requires a Linux-like operating system and some basic tools, such as the gcc compiler suite, make and PERL. A minimal installation of gSeaGen requires only GENIE2as external package. 2The installation of GENIE is described in its user manual [12] and in its web site http://www.genie-mc.org. 21
Figure 8: Transmission probability through the Earth PEarth as a function of the neutrino arrival direction and for different neutrino energies. A number of environmental variables must be defined: •GSEAGEN pointing at the top level gSeaGen directory; •GENIE pointing at the top level GENIE directory; •ROOTSYS pointing at the top level ROOT directory. gSeaGen has been written using the GENIE Auk production release series and tested with GENIE version 2.12.10. It is also possible to link gSeaGen with the new Bear release series (GENIE v3.0.0 and later). In this case the GENIE environmental variables for compiling are: •GENIE pointing at the top level GENIE Generator directory; •GENIE REWEIGHT pointing at the top level GENIE Reweight directory. When the environmental variables are set, a minimal installation of gSeaGen is obtained typing: $ cd $GSEAGEN $ ./configure $ make 22
The configuration script allows enabling/disabling features and specifying paths to external libraries such as the MUSIC and PROPOSAL propagators. The command $ ./configure --help lists the configuration options. The configuration script also creates the shell scripts setenv.sh and setenv.csh, helping the user to prepare the environment to run the code. 10. Usage To set the environment configuration required to run gSeaGen, the setenv script must be executed: $ source $GSEAGEN/setenv.csh (in tcsh or csh shells) $ source $GSEAGEN/setenv.sh (in bash shell) The environmental variables required by GENIE and the ROOT version used during the compilation step are also set. Finally, the user can run the code with the following syntax: $ gSeaNuEvGen [OPTIONS] Running the code with the option -h (i.e. $ gSeaNuEvGen -h), the code writes the list of the available options: -a generation_spectral_index [default: 1.4] Specifies the generation spectral index. -b n_of_bins [default: 1] Specifies the number of energy bins in equal divisions in log10(E). -bedrock bedrock_height [default: 0] Specifies the height of the bedrock just below the sea bottom (in meters). -c "CAN:Zmin,Zmax,Rad" [default: "CAN:0.000,659.862,309.450"] Specifies the detector can size where Zmin and Zmax are bottom and top Z coordinates of the can and Rad is its radius in meters. 23
--coord "UNIT:longitude,latitude" [default: RAD:0.74700,0.10763] Sets detector site latitude and longitude in radians (UNIT=RAD) or in degrees (UNIT=DEG). The longitude is positive westwards from the meridian of Greenwich, and negative to the East. --cross-sections XSecName [default: gxspl-FNALsmall.xml] Inputs the name of an XML file with pre-computed cross-section values used for constructing splines for GENIE3. -d depth [default: 2475] Specifies the site depth in meters. -e min_energy,max_energy [default: 1,1000] Specifies the neutrino energy range in GeV. --event-generator-list list_name [default: Default] List of event generators to load. Valid settings are the XML block names appearing in $GENIE/config/EventGeneratorListAssembler.xml. eg. --event-generator-list CC eg. --event-generator-list NC -f "simul:flux[nu_code],..." Specifies the types of neutrinos to be generated and the neutrino fluxes used to weight the events (see Sec. 11.1 for details). -n n_of_neutrinos Specifies the number of incoming neutrinos. -o output_event_file_prefix [default: gseagen] Sets the prefix of the output event file. The output filename is built as: [prefix].[run number].root. -point source_info 3Pre-computed cross-sections for GENIE are available on width0pthttp://www.geniemc.org. 24
Activates the generation from point-like and extended sources and specifies the source information (see Sec. 11.4 for details). -prop prop_code [default: PropaMuon] Sets the muon propagation code. Possible choices are: PropaMuon (internal code), MUSIC and PROPOSAL if enabled at compile-time. -r run_number [default: 100000000] Specifies the Monte Carlo run number. -rt [default: can] Set option to define the generation area radius RT. Possible choices are: 1) -rt can the generation surface will be a circle covering the detector can projected onto a plane perpendicular to each neutrino direction; 2) -rt vol the generation surface will be a circle covering the interaction volume projected onto a plane perpendicular to each neutrino direction; 3) -rt proj the generation surface will be the detector can projected onto a plane; 4) -rt value the generation surface radius with RT= value (in meters). --seed random_number_seed [default: 12345] Specifies the random seed number. -t min_costheta,max_costheta [default: 0.,1. (up-going neutrinos)] Specifies the angular range of the neutrino arrival directions. --tune generator_tune [default: G18_02a_00_000] Specifies the generator tune, required only for GENIE version ≥3.00.00. -w Writes the native GENIE output in [prefix].[run number].root 25
<param name="MFP_pi"> 5 </param> <param name="MFP_N"> 3 </param> </param_set> the code will compute the systematic weights for the systematic parameter values −1, −0.5, 0, +0.5, +1 for the physics parameter MFP pi and for values −1, 0, +1 for MFP N. An example can be found in the file $GSEAGEN/dat/SystParams.xml. For the complete list of the physics parameters considered in GENIE, see table 9.1 of Ref. [12]. 12. Output File The native gSeaGen event output is a ROOT file containing two “trees”: Header and Events. The Header tree reports the general information about the simulation: •gSeaGenVer (string): gSeaGen version; •GenieVer (string): GENIE version; •RunTime (string): running time; •RunNu (int): run number; •RanSeed (int): random generator seed; •EventGeneratorList (string): list of simulated interaction channels; •InpXSecFile (string): cross-section spline file; •NTot (double): total number of generated incoming neutrinos; •EvMin, EvMax (double): generated neutrino energy range (GeV); •CtMin, CtMax (double): generated neutrino arrival cos θrange; •Alpha (double): generation spectral index; •NBin (int): number of energy bins; •Can1, Can2, Can3 (double): Zmin can ,Zmax can and Rcan of the can (m); 32
•HRock, HSeaWater, RVol (double): interaction volume: height in rock and water and radius (m); •SiteDepth (double): site depth (m); •SiteLatitude, SiteLongitude (double): detector latitude and longitude (rad); •Agen (double): area of the generation surface (m2); •RhoSW, RhoSR (double): SeaWater and Rock densities (g/cm3); •TGen (double): generation time (s); •PropCode (string): muon propagation code; •GenMode (string): simulated livetime mode (DIFFUSE or POINT); •SourceFile (string): input file name with source information (POINT mode); •SourceName (string): name of the simulated source (POINT mode); •Declination, RightAscension (double): source declination and right ascension (rad) (POINT mode); •SourceRadius (double): source angular radius (rad) (POINT mode); •MJDStart, MJDStop (double): source simulated interval in MJD (POINT mode only). The Events tree reports the information about the generated events: •Evt (int): event Id number (incremented sequentially); •PScale (double): GENIE interaction probability scale (see Sec. 6.3); •TargetA, TargetZ (int): mass number and atomic number of the target nucleus; •InterId (int): interaction type Id, according to GENIE enumeration; •ScattId (int): scattering type Id, according to GENIE enumeration; 33
•Bx, By (double): Bjorken kinematic variables x and y; •LST (double): Local Sidereal Time (rad) (POINT mode); •MJD (double): Modified Julian Day, if generated (POINT mode); •VerInCan (int): 1 if the interaction vertex is inside the can, 2 if it is inside the bedrock and 0 outside. •WaterXSec (double): neutrino cross section per nucleon in pure water (m2); •WaterIntLen (double): neutrino interaction length in pure water (m); •PEarth (double): transmission probability through the Earth; •ColumnDepth (double): column depth, entering in the calculation of PEarth (m.w.e.); •XSecMean (double): average cross section per nucleon (m2) along the neutrino path, to be considered in the calculation of PEarth; •GenWeight (double): generation weight (GeV m2s sr for diffuse fluxes and GeV m2s for point-like/extended sources); •EvtWeight (double): event weight; •E nu (double): neutrino energy (GeV); •Pdg nu (int): neutrino PDG code; •Vx nu, Vy nu, Vz nu (double): coordinates of interaction vertex in meters; •Dx nu, Dy nu, Dz nu (double): ceutrino track direction cosines; •T nu (double): time of neutrino interaction (ns); •E pl (double): primary lepton energy (GeV); •Pdg pl (int): primary lepton PDG code; •Vx pl, Vy pl, Vz pl (double): coordinates of interaction vertex (m); 34
•Dx pl, Dy pl, Dz pl (double): primary lepton track direction cosines; •T pl (double): time of neutrino interaction (ns); •NTracks (int): final number of particles in the event; •Id tr (int[NTracks]): particle Id number; •E tr (double[NTracks]): particle energy (GeV); •Pdg tr (int[NTracks]): particle PDG code; •Vx tr, Vy tr, Vz tr (double[NTracks]): coordinates of final particle position (m); •Dx tr, Dy tr, Dz tr (double[NTracks]): particle track direction cosines; •T tr (double[NTracks]): time of passage through the final position with respect to the interaction time (ns); •NSysWgt (int): number of lists of systematic parameters; •WSys (double[NSysWgt]): systematic weights for each list of parameters, in the same order in which the lists are defined; •NSysWgt ParName (int): number of the tweaking dial values between −1 and 1 for the parameter ParName; •WSys ParName (double[NSysWgt ParName]): systematic weights for each tweaking dial value for the parameter ParName. 13. Applications The gSeaGen code has been developed to provide the possibility to use maintained neutrino interaction codes/libraries. The code has been used as a cross-check for GENHEN [21], the reference neutrino simulation code for the ANTARES experiment [22], written in FORTRAN, and presently used also by the KM3NeT Collaboration for the ARCA detector [8] simulation. As an example, muon neutrinos have been generated up to the present GENIE maximum valid energy of 5 TeV. The spectrum of generated events has been weighted according to the Bartol atmospheric muon flux model [23]. The results are shown in Fig. 9. 35
GENHEN is not optimised at energies below ∼100 GeV and can not be used to simulate interactions below 10 GeV. Moreover, it does not allow for the evaluation of systematics due to neutrino interaction models. For these reasons, the gSeaGen code was used by the ANTARES Collaboration in the final data analysis to measure atmospheric neutrino oscillation parameters [25]. These limitations of GENHEN at lower energies are especially important for the KM3NeT Collaboration, hence gSeaGen has been chosen as the reference code for the simulation of the ORCA detector which is optimised to detect neutrinos of a few GeV and is aiming at measuring the neutrino mass hierarchy. The gSeaGen code was used to optimise the detector geometry and to estimate the expected performances published in the KM3NeT Letter of Intent [8]. At present, the code is used to carry out the Monte Carlo simulations for the ORCA data analysis [26]. Furthermore, both DeepCore and Upgrade detectors, which are the existing and the future infills of the existing IceCube neutrino telescope [27], also aim at measuring neutrino oscillations in the GeV range. These detectors are located in glacial Antarctic ice and sit above a layer of bedrock. While the code default values and naming convention specify an in-water detector, gSeaGen will also be suitable for modelling these experiments, with an adaptation of medium properties. It is planned to extend the use of gSeaGen to the KM3NeT-ARCA and ANTARES high energy analyses when the GENIE extension at the PeV scale will be available [11]. Finally, gSeaGen can be used for GVD [28], a nextgeneration neutrino telescope being constructed in Lake Baikal. gSeaGen should be well-suited to generate interactions at energies from a few TeV up to 100 PeV for GVD. 14. Conclusions The gSeaGen code, written in C++ and based on the GENIE neutrino interaction code, has been developed within the KM3NeT Collaboration. The gSeaGen code generates all flavour neutrino interaction events detectable in a Cherenkov neutrino telescope. It can simulate neutrinos coming from diffuse sources (e.g. atmospheric neutrinos) and from point-like or extended astrophysical sources, according to several neutrino fluxes. The gSeaGen code provides the possibility of changing the composition and the density of the neutrino target medium surrounding the detector, 36
allowing the study of systematic uncertainties due to medium composition and also considering both under-water and under-ice detectors. Presently, gSeaGen is the reference code for the simulation of the KM3NeT- ORCA detector, aiming at the study of neutrino physics and optimised to detect neutrinos in the GeV energy range. gSeaGen will be also used in the KM3NeT-ARCA and ANTARES TeV-PeV neutrino searches once the extension of the GENIE code up to the PeV scale will be available. Appendix A. The PropaMuon code The PropaMuon library is a three-dimensional Monte Carlo code for muon propagation through a generic medium. The code simulates the energy losses and the angular deviations of muons taking into account ionisation and radiative processes (bremsstrahlung, direct electron pair production and nuclear interactions). The muon energy losses are expressed as the sum of the ionisation and radiative losses: dE dx =dE dx ion +dE dx rad .(A.1) The fluctuations associated with the ionisation are small and the energy loss mechanism is treated as continuous. The mean value is evaluated with the Bethe-Bloch formula [17]. PropaMuon can consider any medium composition if ionisation coefficients are provided for each element of which it is made. At present only elements listed in Tab. 1 are considered. The radiative energy loss is subdivided into a “soft” part, treated as continuous, if the energy fraction vtransferred from the muon to the photon is below a certain threshold (v < vcut, here vcut = 10−3), and a “hard” part (v≥vcut) treated stochastically [29]. Given an element with atomic mass A, present in the mixture, the radiative energy loss is: dE dx rad =dE dx soft +dE dx hard =NA AEZvcut 0 dσ(v, E) dv dv +NA AEZ1 vcut dσ(v, E) dv dv. (A.2) The total energy loss in the medium is evaluated as: 37
dE dx =Xwi·dE dx i ,(A.3) where (dE/dx)iis the energy loss in the ith element having a weight fraction wi. Total cross section, mean free path and probability for “hard radiation” are: σhard(E) = Z1 vcut dσ(v, E) dv dv, (A.4) λhard(E) = A σhard(E)NA ,(A.5) Phard(E) = dx λhard(E).(A.6) Differential cross sections for radiative processes are computed using the Petrukhin and Shestakov formula [30] for bremsstrahlung, the Kokoulin and Petrukhin formula [31] for direct electron pair production and the Bezrukov and Bugaev formula for the nuclear interaction [32]. Given a muon with energy E, the code extracts the hard radiation interaction path according to: P(r) = 1 λhard exp (−r/λhard) (A.7) and selects the radiative process considering that: λhard =λbrem hard +λpair hard +λnucl hard.(A.8) Then, the code computes the continuous energy loss (ionisation + soft radiation) and simulates the multiple scattering up to the interaction point. For the multiple scattering, the Lynch and Dahl formula [33] is used. At this point, the code extracts the fraction vof the energy lost by the muon in the selected “hard radiation” process from a numerical solution of the equation: P=Z1 v dσ dv dv Z1 vcut dσ dv dv .(A.9) 38
where Pis a random number between 0 and 1. The muon angular deviation due to the selected “hard radiation” process is simulated following the approximations proposed in Ref. [34]. The entire procedure is then repeated until the muon is at rest or input depth is reached. The muon range simulated with the PropaMuon code in pure water and in standard rock is shown in Fig. A.10. For comparison, the ranges simulated with MUSIC and PROPOSAL and the Continuous Slowing Down Approximation (CSDA) range [35] are also shown. Acknowledgements The authors acknowledge the financial support of the funding agencies: Agence Nationale de la Recherche (contract ANR-15-CE31-0020), Centre National de la Recherche Scientifique (CNRS), Commission Europ´eenne (FEDER fund and Marie Curie Program), Institut Universitaire de France (IUF), IdEx program and UnivEarthS Labex program at Sorbonne Paris Cit´e (ANR-10- LABX-0023 and ANR-11-IDEX-0005-02), Paris ˆ Ile-de-France Region, France; Shota Rustaveli National Science Foundation of Georgia (SRNSFG, FR-18- 1268), Georgia; Deutsche Forschungsgemeinschaft (DFG), Germany; The General Secretariat of Research and Technology (GSRT), Greece; Istituto Nazionale di Fisica Nucleare (INFN), Ministero dell’Istruzione, dell’Universit`a e della Ricerca (MIUR), PRIN 2017 program (Grant NAT-NET 2017W4HA7S) Italy; Ministry of Higher Education, Scientific Research and Professional Training, Morocco; Nederlandse organisatie voor Wetenschappelijk Onderzoek (NWO), the Netherlands; The National Science Centre, Poland (2015/18/E/ST2/00758); National Authority for Scientific Research (ANCS), Romania; Ministerio de Ciencia, Innovaci´on, Investigaci´on y Universidades (MCIU): Programa Estatal de Generaci´on de Conocimiento (refs. PGC2018-096663-B-C41, -A- C42, -B-C43, -B-C44) (MCIU/FEDER), Severo Ochoa Centre of Excellence and MultiDark Consolider (MCIU), Junta de Andaluc´ıa (ref. SOMM17/6104/UGR), Generalitat Valenciana: Grisol´ıa (ref. GRISOLIA/2018/119) and GenT (ref. CIDEGENT/2018/034) programs, La Caixa Foundation (ref. LCF/BQ/IN17/11620019), EU: MSC program (ref. 713673), Spain. References [1] C. Andreopoulos, et al., The GENIE Neutrino Monte Carlo Generator, Nucl. Instrum. Meth. A614 (2010) 87–104. arXiv:0905.2517,doi: 10.1016/j.nima.2009.12.009. 39
[2] K. Abe, et al., The T2K experiment, Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment 659 (1) (2011) 106 – 135. doi:https:// doi.org/10.1016/j.nima.2011.06.067. [3] R. Patterson, The NOvA experiment: status and outlook, Nuclear Physics B - Proceedings Supplements 235-236 (2013) 151 – 157, the XXV International Conference on Neutrino Physics and Astrophysics. doi:https://doi.org/10.1016/j.nuclphysbps.2013.04.005. [4] R. Acciarri, et al., Design and construction of the MicroBooNE detector, Journal of Instrumentation 12 (02) (2017) P02017–P02017. doi:10. 1088/1748-0221/12/02/p02017. [5] L. Aliaga, et al., Design, calibration, and performance of the MINERvA detector, Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment 743 (2014) 130 – 159. doi:https://doi.org/10.1016/j.nima.2013. 12.053. [6] R. Acciarri, et al., The DUNE far detector interim design report volume 1: Physics, technology and strategies (2018). arXiv:arXiv: 1807.10334. [7] R. Acciarri, et al., A proposal for a three detector short-baseline neutrino oscillation program in the fermilab booster neutrino beam (2015). arXiv:arXiv:1503.01520. [8] S. Adri´an-Mart´ınez, et al., Letter of intent for KM3NeT 2.0, J. Phys. G: Nucl. Part. Phys. 43 (2016) 084001. [9] A. M. Dziewonski, D. L. Anderson, Preliminary reference Earth model, Physics of the Earth and Planetary Interiors 25 (1981) 297–356. doi: 10.1016/0031-9201(81)90046-7. [10] I. Antcheva, et al., Root a c++ framework for petabyte data storage, statistical analysis and visualization, Comput. Phys. Commun. 180 (12) (2009) 2499 – 2512. doi:https://doi.org/10.1016/j.cpc.2009.08. 005. 40
[11] A. Garcia, A. Heijboer, High-energy neutrino event simulation at NLO in Genie for KM3NeT and other observatories, in: 36th International Cosmic Ray Conference (ICRC 2019) Madison, Wisconsin, USA, July 24-August 1, 2019, 2019. arXiv:1908.10077. [12] C. Andreopoulos, et al., The GENIE Neutrino Monte Carlo Generator: Physics and User Manual (2015). arXiv:arXiv:1510.05494. [13] J. Meeus, Astronomical Algorithms, Willmann-Bell, Incorporated, 1991. [14] P. Antonioli, et al., A Three-dimensional code for muon propagation through the rock: Music, Astropart. Phys. 7 (1997) 357–368. arXiv: hep-ph/9705408,doi:10.1016/S0927-6505(97)00035-2. [15] J. H. Koehne, K. Frantzen, M. Schmitz, T. Fuchs, W. Rhode, D. Chirkin, J. Becker Tjus, PROPOSAL: A tool for propagation of charged leptons, Comput. Phys. Commun. 184 (2013) 2070–2090. doi:10.1016/j.cpc. 2013.04.001. [16] C. Distefano, gSeaGen v6r1 (Mar. 2020). doi:10.5281/zenodo. 3715310. URL https://doi.org/10.5281/zenodo.3715310 [17] M. Tanabashi, et al., Review of particle physics, Phys. Rev. D 98 (2018) 030001. doi:10.1103/PhysRevD.98.030001. URL https://link.aps.org/doi/10.1103/PhysRevD.98.030001 [18] BARTOL fluxes web site. URL http://www-pnp.physics.ox.ac.uk/$\sim$barr/fluxfiles [19] FLUKA fluxes web site. URL http://pcbat1.mi.infn.it/$\sim$battist/neutrino.html [20] HONDA fluxes web site. URL http://www.icrr.u-tokyo.ac.jp/$\sim$mhonda/nflx2014/ index.html [21] D. J. Bailey, Monte carlo tools and analysis methods for understanding the antares experiment and predicting its sensitivity to dark matter, Ph.D. thesis, University of Oxford, United Kingdom (2002). URL http://antares.in2p3.fr/ 41