S. Incerti
Centre d'Etudes Nucléaires de Bordeaux-Gradignan
Université Bordeaux 1
chemin du Solarium
33175 Gradignan


The nanobeam example simulates the beam optics of the "nanobeam line" installed on the AIFIRA electrostatic accelerator facility located at CENBG, Bordeaux-Gradignan, France. For more information on this facility, please visit :

The code explains how to use Geant4 in order to calculate :

  • intrinsic aberration coefficients of the nanobeam line
  • beam images from a realistic primary emittance distribution
  • grid shadow images

Example of beam emittance (experiment VS Geant4)

Three quadrupole field models can be used in this advanced example :

  • a simple square field model
  • a 3D mesh field model computed from OPERA3D
  • an analytical model based on Enge's model

OM50 focusing quadrupoles and OPERA3D model

Simulated experimental setup

The nanobeam line consists of a long working distance doublet-triplet of focusing quadrupole magnets (Oxford Microbeams Ltd. OM50), with an intermediate focus point. The full magnetic configuration of the nanobeam line is simulated. A full description of the simulated setup is described in our publications (see bottom of this page).


The example runs with protons with fluctuating energies around 3 MeV. Standard electromagnetic processes are activated by default.

How to install and run the example

Several macro files are provided. They are located in the macros directory :
  • for the computation of intrinsic aberration coefficients:
    • coef-square.mac : using square magnetic field model (=default.mac)
    • coef-map.mac : using 3D map magnetic field model
    • coef-enge.mac : using Enge's analytical field model
  • for the simulation of the beam image with a realistic emittance:
    • image-square.mac : using square magnetic field model
    • image-map.mac : using 3D map magnetic field model
    • image-enge.mac : using Enge's analytical field model
  • for the simulation of grid shadow images:
    • grid-square.mac : using square magnetic field model
    • grid-map.mac : using 3D map magnetic field model
    • grid-enge.mac : using Enge's analytical field model

Please, look at the README file provided with the example for more details.

Comparison between available field models

Simulation results

The output results consists in a ROOT file. These files can be easily analyzed using the provided ROOT macro file plot.C. This macro file shows :

  • the beam profile along the nanobeam line (only for the computation of intrinsic coefficients)
  • the beam image (Y vs X) on target
  • the beam emittance (THETA vs X) and (PHY vs Y) on target
  • the grid shadow image

Fore more details, please refer to the README file provided with the example. The ROOT website is available at :

Grid shadow images simulated with Geant4

Code design

The Nanobeam code design obtained from the Rational Rose software is shown below. Manager classes are filled with red and Nanobeam classes are filled with sky blue. nanobeam.jpg
Nanobeam example design

Suggested papers

  • Technical description of the CENBG nanobeam line, Ph. Barberet, S. Incerti,, F. Andersson, F. Delalee, L. Serani, Ph. Moretto, Nucl. Instrum. and Meth. B (2009) (link)
  • A detailed ray-tracing simulation of the high resolution microbeam at the AIFIRA facility, F. Andersson, Ph. Barberet , S. Incerti, Ph. Moretto , H. Seznec , M. Simon, Nucl. Instrum. and Meth. B 266 (2008) 1653-1658 (link)
  • Monte Carlo simulation of the CENBG microbeam and nanobeam lines with the Geant4 toolkit, S. Incerti, Q. Zhang, F. Andersson, Ph. Moretto, G. W. Grime, M. J. Merchant, D. T. Nguyen, C. Habchi, T. Pouthier, H. Seznec, Nucl. Instrum. and Meth. B 260 (2007) 20-27 (link)
  • Geant4 simulation of the new CENBG micro and nanoprobes facility, S. Incerti, C. Habchi, Ph. Moretto, J. Olivier and H. Seznec, Nucl. Instrum. and Meth. B 249 (2006) 738-742 (link)
  • A comparison of ray-tracing software for the design of quadrupole microbeam systems, S. Incerti, R.W. Smith, M. Merchant, G.W. Grime, F. Méot, L. Serani, Ph. Moretto, C. Touzeau, Ph. Barberet, C. Habchi and D.T. Nguyen, Nucl. Instrum. and Meth. B 231 (2005) 76-85 (link)


Should you have any enquiry, please do not hesitate to contact the author

-- LucianoPandola - 22 Oct 2014

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2014-10-22 - LucianoPandola
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback