LHAASO-KM2A detector simulation using Geant4

Zhen Cao, F. Aharonian, Q. An, Axikegu, Y. X. Bai, Y. W. Bao, D. Bastieri, Xiao-Jun Bi, Y. J. Bi, J. T. Cai, Qing Cao, Weiwei Cao, J. F. Chang, A. M. Chen, E. S. Chen, Liang Chen, Lin Chen, Long Chen, Mingjun Chen, Q. H. Chen, S. H. Chen, T. L. Chen, Yong Chen, Ningyan Cheng, Yaodong Cheng, Maxwell Cui, S. W. Cui, Xiaohong Cui, Y. D. Cui, B. Z. Dai, H. L. Dai, Zi-Gao Dai, Danzengluobu Danzengluobu, X. Q. Dong, K. K. Duan, J. H. Fan, Y. Z. Fan, J. Fang, Ke Fang, C. F. Feng, Li Feng, S. H. Feng, X. T. Feng, Y. L. Feng, S. Gabici, Bo Gao, C. D. Gao, L. Q. Gao, Qi Gao, Wei Gao, M. M. Ge, Li‐Sheng Geng, Gwenael Giacinti, G. H. Gong, Q. B. Gou, M. H. Gu, Fulai Guo, Xueling Guo, Y. Q. Guo, Y. A. Han, H. H. He, Jiawei He, Xin-Chen He, Yong He, Y. K. Hor, B. W. Hou, Chenwei Hou, Xianglin Hou, H. B. Hu, Qihou Hu, S. C. Hu, Dezhi Huang, T. Q. Huang, W. J. Huang, X. T. Huang, Yongjiang Huang, Zhongjie Huang, X. L. Ji, H. Y. Jia, K. Jia, K. Jiang, X. W. Jiang, Z. J. Jiang, Manyu Jin, M. M. Kang, T. Ke, D. Kuleshov, K. Kurinov, B. B. Li, Li Cheng, Cong Li, Di LiRadiation 2024 · DOI

TL;DR

This paper introduces G4KM2A, a Geant4-based simulation code for the LHAASO-KM2A detector, designed to handle the immense complexity of simulating thousands of detectors and millions of particles. The authors present significant optimizations to G4KM2A that drastically reduce simulation time and memory usage, making it a practical tool for analyzing data from this large-scale cosmic ray observatory.

What Problem Does This Paper Address?

The LHAASO (Large High Altitude Air Shower Observatory) is a cutting-edge facility designed to study ultra-high-energy cosmic rays and gamma rays. Its KM2A sub-array, comprising over 6000 detectors spread across 1.3 km², presents a formidable challenge for simulation. Accurately simulating the passage of millions of secondary particles generated by cosmic ray showers through such a vast detector array is computationally intensive. Traditional simulation methods can lead to excessive runtimes and, critically, memory overflows, rendering them impractical for the large datasets required for physics analysis. This paper tackles the problem of developing a simulation tool that is both accurate and computationally feasible for the KM2A detector.

Methods

The core of the simulation is built upon the Geant4 toolkit, a standard for particle transport simulation. The authors developed a custom Geant4 application, G4KM2A, to model the KM2A detector's electromagnetic detectors (EDs) and muon detectors (MDs).

Key methodological contributions include:

  • Detector Geometry Modeling: G4KM2A accurately models the complex geometry of the EDs (scintillator tiles, WLS fibers, PMTs) and MDs (water Cherenkov detectors, PMTs). A flexible approach allows for simulating the array in various configurations, reflecting its staged construction.
  • Photon Tracking Optimization: To combat memory issues and speed up simulations, two primary optimizations were implemented for photon tracking:
  • Fast Simulation: For EDs, instead of tracking every photon, the simulation samples the number of photons reaching the PMT and their arrival times based on full tracking results. This reduces computation by a factor of approximately 100.
  • Reflection-Limited Tracking: For MDs, photons are tracked only up to the fifth reflection, after which their collection efficiency is probabilistically determined. This speeds up MD simulation by a factor of about 4.
  • Memory Consumption Optimization: A significant issue was memory overflow. The authors adjusted the simulation process flow to read EAS particles one by one, rather than all at once. This allows the simulation to run with significantly less memory (larger than 4 GB) compared to the >100 GB required by standard methods.
  • Readout Simulation: The simulation includes a realistic model of the PMT response and electronic readout, incorporating dead times for TDCs and ADCs.
  • Event Trigger Logic: The simulation replicates the KM2A's event trigger logic, requiring a minimum number of detector hits within a specific time window.

Datasets

The paper utilizes simulated datasets generated by CORSIKA for simulating extensive air showers (EAS) and then processed by G4KM2A. For validation, the authors compare their simulation results against experimental data collected by the LHAASO-KM2A array. This experimental data was collected on December 28th, 2022, and May 10th, 2022.

Key Insights and Ideas

  • The "Big Data" Challenge in Astroparticle Physics: This work highlights the growing challenge of simulating massive detectors in astroparticle physics. The sheer scale of arrays like LHAASO-KM2A necessitates innovative simulation techniques beyond standard approaches.
  • Strategic Simplification for Efficiency: The paper demonstrates that carefully chosen simplifications in photon tracking (e.g., sampling instead of full tracking, limiting reflections) can drastically improve simulation speed without sacrificing accuracy for key observables.
  • Memory Management is Crucial: The memory optimization technique of processing particles one by one is a critical insight for handling extremely large detector arrays and could be a blueprint for future experiments.
  • Validation is Key: The rigorous comparison of simulation results with real experimental data is essential for building confidence in the simulation's reliability for physics analyses.

Key Results

  • Speedup: The optimized G4KM2A simulation achieves a speedup of at least 30 times compared to a full detector simulation. Specific optimizations offer speedups of approximately 100x for EDs and 4x for MDs.
  • Memory Reduction: The memory optimization allows the simulation to run with computational memory larger than 4 GB, a significant improvement over the >100 GB required by standard methods.
  • Trigger Rate Consistency: The simulated trigger rate for the full KM2A array is found to be roughly consistent with experimental data, ranging between 2300 Hz and 2800 Hz.
  • Particle Number Distribution: The distributions of electromagnetic particles (Ne) and muons (Nµ) recorded by the simulation show good agreement with experimental data over four orders of magnitude.
  • Angular and Core Resolution: Comparisons of angular and core resolution between simulation and experiment, using the odd-even method, show good agreement, with differences attributed to detector inconsistencies.
  • Crab Nebula Performance: The simulation's reliability is further supported by its consistency with previous studies on the gamma-ray source Crab Nebula.

Limitations and Future Work

  • Limitations:
    • The paper notes that the simulation cannot fully describe the inconsistency between detectors, which contributes to some differences between simulation and experimental resolutions.
  • The gap at the highest Ne and Nµ values in the distributions is attributed to the lack of simulated >10 PeV cosmic rays.
  • Pure random noise hits, while accounted for in the trigger logic, are not extensively simulated as they are beyond the scope of this work.
  • Future Work:
    • The G4KM2A code is expected to be widely adopted for future gamma-ray astronomy and cosmic-ray physics analyses.
  • The memory optimization technique is highlighted as a valuable approach for similar large-scale EAS experiments.

Summary updated

BibTeX
@inproceedings{cao2024lhaaso,
  author = {Zhen Cao and F. Aharonian and Q. An and Axikegu and Y. X. Bai and Y. W. Bao and D. Bastieri and Xiao-Jun Bi and Y. J. Bi and J. T. Cai and Qing Cao and Weiwei Cao and Zhe Cao and J. F. Chang and J. F. Chang and A. M. Chen and E. S. Chen and Liang Chen and Lin Chen and Long Chen and Mingjun Chen and M. L. Chen and Q. H. Chen and S. H. Chen and S. Z. Chen and T. L. Chen and Yong Chen and Ningyan Cheng and Yaodong Cheng and Maxwell Cui and S. W. Cui and Xiaohong Cui and Y. D. Cui and B. Z. Dai and H. L. Dai and Zi-Gao Dai and Danzengluobu Danzengluobu and X. Q. Dong and K. K. Duan and J. H. Fan and Y. Z. Fan and J. Fang and Ke Fang and C. F. Feng and Li Feng and S. H. Feng and X. T. Feng and Y. L. Feng and S. Gabici and Bo Gao and C. D. Gao and L. Q. Gao and Qi Gao and Wei Gao and W. K. Gao and M. M. Ge and Li‐Sheng Geng and Gwenael Giacinti and G. H. Gong and Q. B. Gou and M. H. Gu and Fulai Guo and Xueling Guo and Y. Q. Guo and Yingying Guo and Y. A. Han and H. H. He and Hao-Ning He and Jiawei He and Xin-Chen He and Yong He and Y. K. Hor and B. W. Hou and Chenwei Hou and Xianglin Hou and H. B. Hu and Qihou Hu and S. C. Hu and Dezhi Huang and T. Q. Huang and W. J. Huang and X. T. Huang and X. Y. Huang and Yongjiang Huang and Zhongjie Huang and X. L. Ji and H. Y. Jia and K. Jia and K. Jiang and X. W. Jiang and Z. J. Jiang and Manyu Jin and M. M. Kang and T. Ke and D. Kuleshov and K. Kurinov and B. B. Li and Li Cheng and Cong Li and Di Li},
  title = {{LHAASO-KM2A detector simulation using Geant4}},
  booktitle = {Radiation},
  year = {2024},
  doi = {10.1007/s41605-024-00467-8},
}
Figure