Skip to content

Primitive Python-based Geant4 simulation of particle interactions in liquid argon

License

Notifications You must be signed in to change notification settings

zoyavallari/argon_box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argon_box

Very primitive Python-based Geant4 simulation of particle interactions in liquid argon.

Dependencies:

  • ROOT
  • Geant4
  • g4py (which requires boost and XercesC)

A docker image which sets up the correct environment with the above mentioned packages is available at docker hub: zoyavallari/g4pybuild . This image on the docker hub can be used to build a container with any container platform such as docker, singularity or shifter.

$ docker pull zoyavallari/g4pybuild

or

$ singularity build container_name.sif docker://zoyavallari/g4pybuild

A volume that contains argon_box code should be bound to the container. The dockerfile itself is available at: https://github.com/zoyavallari/ContainerFiles/blob/master/g4pyenv.dockerfile

Example Usage:

Mono-energetic particles:

$ python argon_box.py --nevents=100 --source='e-' --energy=2.0 --output='electron_2GeV_sim.root'

HepEVT data:

$ python argon_box.py --nevents=100 --source='input.hepevt' --output='hepevt_sim.root'

Other useful options:

--seed=N: Change random seed
--physlist='QGSP_BERT': Set G4 Physics list (FTFP_BERT, QGSP_BERT, QGSP_BERT_HP)
--enable_edepsim: Enable primitive simulation of 3-D energy depositions
--edep_step: Energy deposition step size, in mm

About

Primitive Python-based Geant4 simulation of particle interactions in liquid argon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%