Muon generator

version 3.0.0.0 (9.42 KB) by Stylianos Chatzidakis
Generate random samples of cosmic ray muons at sea level

226 Downloads

Updated Wed, 07 Oct 2015 03:18:27 +0000

View License

This file provides a cosmic ray muon sampling capability for use in Monte Carlo simulations. The muon energy distribution is described by the Smith & Duller (1959) phenomenological model that captures the main characteristics of the experimentally measured spectrum. Statistical algorithms are then employed for generating random samples.
The inverse transform provides a means to generate samples from the muon angular distribution corrected for solid angle effect. The Acceptance-Rejection method is used to generate samples for the actual angular distribution, simulated as cosine squared. The Acceptance-Rejection method is also used to provide the energy component. Final output is a look-up table that contains the sampled angles and energies.

Cite As

Stylianos Chatzidakis (2022). Muon generator (https://www.mathworks.com/matlabcentral/fileexchange/51203-muon-generator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: MUFFSgenMC

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!