From accelerators to cosmic ray physics