Skip to content

Boilerplate for a GEANT4 simulation as a Python library.

Notifications You must be signed in to change notification settings

SimonBiggs/g4lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GEANT4 + Python boilerplate

This project is a simple default setup for building a GEANT4 simulation as Python library.

Compilation

The GEANT4 simulation requires compilation as a Python library. To do this perform the following:

  • cd ./g4lib/g4
  • mkdir build
  • cd build
  • cmake ..
  • make

Usage

Edit g4/src and g4/include so as to describe your desired simulation.

python main.py macros/vis.mac

GEANT4 Python bindings

Have a look here for instructions on getting going with the GEANT4 Python bindings.

About

Boilerplate for a GEANT4 simulation as a Python library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published