Skip to main content
  • Paul Scherrer Institut PSI
  • PSI Research, Labs & User Services

Digital User Office

  • Digital User Office
  • DE
  • EN
  • FR
Paul Scherrer Institut (PSI)
Search
Paul Scherrer Institut (PSI)

Hauptnavigation

  • Research at PSIOpen mainmenu item
    • Research Initiatives
    • Ethics and Research integrity
    • Scientific Highlights
    • Scientific Events
    • Scientific Career
    • PSI-FELLOW
    • PSI Data Policy
  • Research Divisions and LabsOpen mainmenu item
    • Overview
    • Research with Neutrons and Muons
    • Photon Science
    • Energy and Environment
    • Nuclear Energy and Safety
    • Biology and Chemistry
    • Scientific Computing, Theory and Data
    • Large Research Facilities
  • Facilities and InstrumentsOpen mainmenu item
    • Overview
    • Large Research Facilities
    • Facilities
    • PSI Facility Newsletter
  • PSI User ServicesOpen mainmenu item
    • User Office
    • Methods at the PSI User Facilities
    • Proposals for beam time
    • Proposal Deadlines
    • Data Analysis Service (PSD)
    • EU support programmes
  • New ProjectsOpen mainmenu item
    • SLS 2.0
    • IMPACT
  • DE
  • EN
  • FR

Digital User Office (mobile)

  • Digital User Office

You are here:

  1. PSI Home
  2. Labs & User Services
  3. NUM
  4. LMU
  5. Instrumentation
  6. Geant4 simulations

Secondary navigation

Laboratory for Muon Spin Spectroscopy

  • About LMU
    • Organisational Structure
  • People
  • Groups
  • Instrumentation Expanded submenu item
    • SµS Instruments
    • SµS Beamlines
    • Detectors
      • Position-sensitive detection (PSD) of muons and positrons
    • Geant4 simulations
    • Software Developments
  • Research
  • Scientific Highlights
  • Publications
    • 2022
    • 2021
    • 2020
    • 2018-2019
    • 2016-2017
    • 2014-2015
    • 2012-2013
    • 2010-2011
    • 2008-2009
  • Publication Policy
  • Teaching and Education
    • Master/PhD thesis
    • Bachelor/Semester work
    • Training
    • Lectures
  • Seminar
  • User Services
    • Access to SµS
    • SµS Live
    • Software & Data Storage
    • Contact Information
  • News Archive
    • News 2022
    • News 2021
    • News 2020
    • News 2019
    • News 2017
    • News 2016
    • News 2015
    • News 2014

GEANT4 simulation framework

Numerical simulations in µSR

The increased use of numerical simulations in recent years has demonstrated the potential of Monte Carlo methods also for the µSR technique, where it has opened up new application possibilities by offering:
  • New insights on the basics of µSR.
  • A better understanding of the existing spectrometers, allowing a targeted performance improvement.
  • The design and optimization of new instruments.
sw arch.png


Software architecture of the GEANT4-based musrSim and musrSimAna simulation tool.

GEANT4 as a simulation framework

GEANT4 is a Monte Carlo radiation transport toolkit which includes a complete range of functionalities required to build flexible simulation frameworks. The main features of the musrSim program:
  • Great user friendliness:
    Only one program (executable) for different muSR instruments (different studies).
    The geometry and other parameters defined in the macro file.
    Ideally, no C++ knowledge required.
  • Any geometry and material:
    Simple geometry defined in the macro text file.
    Complex shapes (e.g. volumes with holes) can be predefined in the source, and finaly defined in the macro text file.
  • Any electromagnetic field:
    From field map or constant field.
    2D, 3D and axi-symmetric.
    Whatever field superposition.
  • Root format outputs

a. New insights on the basics of µSR*

The versatility of the new tool has permitted the modelling of the incoming muon beam, the study of the outgoing positrons behaviour, the investigation of the geometrical effects, etc.

beam spot meas sim.png


Measured (left) and simulated (right) beam spot of a low-energy muon beam at z = 0.

b. Simulation-based instrument design

The new, high magnetic field instruments being built at RAL and PSI, whose design is entirely based on realistic Monte Carlo simulations, represent another example of the usefulness of numerical methods for the µSR technique.

Hi field PSI.png
LEM2 view.png


Left: High-field spectrometer for TF-µSR measurements being built at PSI. Right: Simulation of the low-energy µSR spectrometer.

Future uses of the developed platform could include also:
  • Feasibility analysis
  • Experiment planning and optimization
  • Use as an interactive didactic tool
For more information on G4 Monte Carlo simulations in µSR one can refer to the following poster and the related paper.

This project was supported by the EC under the 6th Framework Programme through the Key Action: Strengthening the European Research Area, Research Infrastructures. Contract no.: RII3-CT-2003-505925.

Source code of musrSim

The source code and compilation instructions can found on the musrSim git repository.  The program musrSim is intended to be a general tool for the whole µSR community. A valuable addition to musrSim is a general analysis program musrSimAna (also included), which can be used to analyse the output of the simulation, i.e. to create muSR histograms and spectra from the musrSim results. To compile and run musrSim, the user must have Geant4 and Root already installed. musrSim is being updated to compile with recent Geant4 (currently v11.0.3) and Root (currently v6.26). Please help us by submitting bug reports, fixes and improvements to the source code.

References:

  • S. Agostinelli, et al., (GEANT4 Collaboration), Nucl. Instr. and Meth. A 506 (2003) 250.
  • T. Paraïso, et al., Physica B 374 (2006) 498.
  • J. Allison, et al., IEEE Trans. Nucl. Sci. 53 (2006) 270.
  • T. Lancaster, et al., Nucl. Instr. and Meth. A 580 (2007) 1578.
  • T. Shiroka, et al., Nucl. Instr. and Meth. A 591 (2008) 306.
  • Z. Salman, et al., Physica B 404 (2009) 978
  • T. Shiroka, et al., Physica B 404 (2009) 966.
  • K. Sedlak, et al., Physica B 404 (2009) 970.
  • K. Sedlak, et al., Physica B 404 (2009) 974.

Sidebar

LMU and Groups

  • Laboratory for Muon Spin Spectroscopy (LMU)
  • Low-Energy Muons Group
  • Bulk-µSR Group

SμS Facility

  • Instruments
  • Beamlines
  • User Services

LMU Intranet

Call for Proposals

Next Deadline: June 01, 2023.

User Office

Provides all information about user research at PSI Large Research Facilities


PSI User Facilities Newsletter

Current News from PSI photon, neutron and muon user facilities

NUM Homepage

PSI Division Research with Neutrons and Muons.


MuonSources.org

MuonSources.org provides information about muon facilities and muon research worldwide.

ISMS

The International Society for µSR Spectroscopy (ISMS).

top

Footer

Paul Scherrer Institut

Forschungsstrasse 111
5232 Villigen PSI
Switzerland

Telephone: +41 56 310 21 11
Telefax: +41 56 310 21 99

How to find us
Contact

Visitor Centre psi forum
School Lab iLab (in German)
Center for Proton Therapy
PSI Education Centre
PSI Guest House
PSI Gastronomie (in German)
psi forum shop

Service & Support

  • Phone Book
  • User Office
  • Accelerator Status
  • PSI Publications
  • Suppliers
  • E-Billing
  • Computing
  • Safety (in German)

Career

  • Working at PSI
  • Job Opportunities
  • Training and further education
  • Career Center
  • Vocational Training (in German)
  • PSI Education Center

For the media

  • PSI in brief
  • Facts and Figures
  • Media corner
  • Media Releases
  • Social Media

Follow us: Twitter (in English) LinkedIn Youtube Facebook Instagram Issuu RSS

Footer legal

  • Imprint
  • Terms and Conditions
  • Editors' login