A study of the contribution of prompt cosmic-ray muons to total muon fluxes