S. Aiello , A. Albert , A.R. Alhebsi , M. Alshamsi , S. Alves Garre , A. Ambrosone , F. Ameli , M. Andre , L. Aphecetche , M. Ardid , S. Ardid , H. Atmani , J. Aublin , F. Badaracco , L. Bailly-Salins , Z. Bardačová , B. Baret , A. Bariego-Quintana , Y. Becherini , M. Bendahman , N. Zywucka
{"title":"gSeaGen code by KM3NeT: An efficient tool to propagate muons simulated with CORSIKA","authors":"S. Aiello , A. Albert , A.R. Alhebsi , M. Alshamsi , S. Alves Garre , A. Ambrosone , F. Ameli , M. Andre , L. Aphecetche , M. Ardid , S. Ardid , H. Atmani , J. Aublin , F. Badaracco , L. Bailly-Salins , Z. Bardačová , B. Baret , A. Bariego-Quintana , Y. Becherini , M. Bendahman , N. Zywucka","doi":"10.1016/j.cpc.2025.109660","DOIUrl":null,"url":null,"abstract":"<div><div>The KM3NeT Collaboration has tackled a common challenge faced by the astroparticle physics community, namely adapting the experiment-specific simulation software to work with the CORSIKA air shower simulation output. The proposed solution is an extension of the open source code gSeaGen, which allows the transport of muons generated by CORSIKA to a detector of any size at an arbitrary depth. The gSeaGen code was not only extended in terms of functionality but also underwent a thorough redesign of the muon propagation routine, resulting in a more accurate and efficient simulation. This paper presents the capabilities of the new gSeaGen code as well as prospects for further developments.</div></div><div><h3>Program summary</h3><div><em>Program title:</em> gSeaGen</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/ymgxvy2br4.2</span><svg><path></path></svg></span></div><div><em>Developer's respository link:</em> <span><span>git.km3net.de/opensource/gseagen</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> BSD 3-Clause</div><div><em>Programming language:</em> C++</div><div><em>Nature of problem:</em> Integration of the state-of-the-art extensive air shower Monte Carlo event generator CORSIKA <span><span>[1]</span></span> into the atmospheric muon simulation for water Cherenkov neutrino telescopes. The primary use case considered is the KM3NeT experiment <span><span>[2]</span></span>, however, the code should be able to cover other similar experiments as well. The challenges in this work included interfacing the CORSIKA binary output, efficient handling of already generated events to reduce the overall computational cost, and preserving all the additional available information, which can be invaluable in physics analyses.</div><div><em>Solution method:</em> The readout of CORSIKA simulation was adapted from the base script provided together with CORSIKA and implemented as a standalone flux driver in gSeaGen. The propagation routine has been redesigned to support the geometry of extensive air shower simulations and to improve its efficiency in propagating particles to the detector. To ensure a reliable modelling of muon energy loss and scattering, PROPOSAL <span><span>[3]</span></span> was set as the default internal code for muon transport. PROPOSAL is an open-source software developed and maintained by the IceCube collaboration <span><span>[4]</span></span> and is a well-established solution used by the neutrino physics community.</div><div><em>Additional comments including restrictions and unusual features:</em> The code was tested with GENIE <span><span>[5]</span></span> version 3.4.0 and PROPOSAL 6.1.5. Currently, linking of gSeaGen to GENIE is mandatory, even in the case of a muon-only simulation using CORSIKA.</div></div><div><h3>References</h3><div><ul><li><span>[1]</span><span><div>D. Heck et al., FZKA-6019 (1998).</div></span></li><li><span>[2]</span><span><div>S. Adrián-Martínez et al., J. Phys. G, Nucl. Part. Phys. 43 (2016) 084001.</div></span></li><li><span>[3]</span><span><div>J.H. Koehne et al., Comput. Phys. Commun. 184 (2013) 2070.</div></span></li><li><span>[4]</span><span><div>M.G. Aartsen et al., J. Instrum. 12 (2017) P03012.</div></span></li><li><span>[5]</span><span><div>C. Andreopoulos et al., Nucl. Instrum. Methods A 614 (2010) 87.</div></span></li></ul></div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"314 ","pages":"Article 109660"},"PeriodicalIF":3.4000,"publicationDate":"2025-05-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465525001626","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
The KM3NeT Collaboration has tackled a common challenge faced by the astroparticle physics community, namely adapting the experiment-specific simulation software to work with the CORSIKA air shower simulation output. The proposed solution is an extension of the open source code gSeaGen, which allows the transport of muons generated by CORSIKA to a detector of any size at an arbitrary depth. The gSeaGen code was not only extended in terms of functionality but also underwent a thorough redesign of the muon propagation routine, resulting in a more accurate and efficient simulation. This paper presents the capabilities of the new gSeaGen code as well as prospects for further developments.
Program summary
Program title: gSeaGen
CPC Library link to program files:https://doi.org/10.17632/ymgxvy2br4.2
Nature of problem: Integration of the state-of-the-art extensive air shower Monte Carlo event generator CORSIKA [1] into the atmospheric muon simulation for water Cherenkov neutrino telescopes. The primary use case considered is the KM3NeT experiment [2], however, the code should be able to cover other similar experiments as well. The challenges in this work included interfacing the CORSIKA binary output, efficient handling of already generated events to reduce the overall computational cost, and preserving all the additional available information, which can be invaluable in physics analyses.
Solution method: The readout of CORSIKA simulation was adapted from the base script provided together with CORSIKA and implemented as a standalone flux driver in gSeaGen. The propagation routine has been redesigned to support the geometry of extensive air shower simulations and to improve its efficiency in propagating particles to the detector. To ensure a reliable modelling of muon energy loss and scattering, PROPOSAL [3] was set as the default internal code for muon transport. PROPOSAL is an open-source software developed and maintained by the IceCube collaboration [4] and is a well-established solution used by the neutrino physics community.
Additional comments including restrictions and unusual features: The code was tested with GENIE [5] version 3.4.0 and PROPOSAL 6.1.5. Currently, linking of gSeaGen to GENIE is mandatory, even in the case of a muon-only simulation using CORSIKA.
References
[1]
D. Heck et al., FZKA-6019 (1998).
[2]
S. Adrián-Martínez et al., J. Phys. G, Nucl. Part. Phys. 43 (2016) 084001.
[3]
J.H. Koehne et al., Comput. Phys. Commun. 184 (2013) 2070.
[4]
M.G. Aartsen et al., J. Instrum. 12 (2017) P03012.
[5]
C. Andreopoulos et al., Nucl. Instrum. Methods A 614 (2010) 87.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.