Acceleration of GEM detector digitization via random number pool and statistical scaling approximation
摘要
Monte Carlo simulation is indispensable in particle physics experiments, but explicitly sampling for very large stochastic particle populations could become a major computational bottleneck. Gas Electron Multiplier (GEM)-based detectors are a representative example: Cascade avalanche multiplication across multiple GEM foils can generate
We present two acceleration methods, developed and validated for the digitization of the Cylindrical GEM (CGEM) detector at Beijing Spectrometer (BESIII). The first method, random number pool, pre-generates random numbers in contiguous memory and retrieves them through pointer arithmetic. Combined with batch processing, this approach improves cache locality. The second method, statistical scaling approximation, reduces the number of simulated electrons by a downscaling factor while amplifying back the magnitude in signal induction, thereby preserving signal fidelity.
ResultsFor the BESIII CGEM digitization software, the random number pool optimization together with batch processing accelerates the simulation by over
These results demonstrate that substantial speedups can be achieved without compromising accuracy, and that the proposed methods could be readily extended to other detectors involving massive avalanche multiplication after necessary validations.