Skip to content

Geant4 simulation of AmBe emergent gammas based on emergent gammas simulation code for AmLi by J. Busenitz and R. Sazzad

Notifications You must be signed in to change notification settings

amslivar/AmBe_emergent_gammas

 
 

Repository files navigation

AmBe_emergent_gammas

Simulation of AmBe emergent gammas (based on emergent gammas simulation code for AmLi by J. Busenitz and R. Sazzad).

Prerequisite: Geant 4.10.04.p02 and ROOT 5.34/07 (later versions are ok)

Author: Mariia Fedkevych, mariia.fedkevych@gmail.com

  1. Download and unpack the AmBe_emergent_gammas.tar.gz archive, e.g. run
    "tar -xf AmBe_emergent_gammas.tar.gz"
    in Linux terminal
  2. Source setup scripts for Geant4, e.g.
source /usr/local/geant4.10.04.p02/bin/geant4.sh
source /usr/local/geant4.10.04.p02/share/Geant4-10.4.2/geant4make/geant4make.sh
  1. Go to the AmBe_emergent_gammas folder and run "cmake -DGeant4_DIR=/path/to/local/geant4VersionInstalled/lib64/Geant4.xxxx/ path/to/extracted/source/directory", e.g.
cmake -DGeant4_DIR=/usr/local/geant4.10.04.p02/lib64/Geant4-10.4.2/ .
  1. Compile with make (it will create an executable named "capsule_emissionV2")
  2. Prepare an HEPEvt format generator file for AmBe gamma spectrum (from am241be.spectrum) which will be read by capsule_emissionV2:
    • make an executable of am241be.cc, e.g. run
      g++ am241be.cc -o am241be.exe
    • run the executable with the number of events to be generated and the output file name "generator.data", e.g.
      ./am241be.exe 10000000 > generator.data
  3. The simulations can be executed by running
 ./capsule_emissionV2 AmBe.mac
  1. The output root file "outcapsule.root" containing energy distributions of primary and detected gammas will be generated within the same folder (the filename and path can be changed in src/ExN03RunAction.cc file).
  2. If you didn't comment out the visualization options in AmBe.mac, it will generate .wrl file in the same folder.
  3. Example .wrl files which visualize the geometry is contained within "geometry_vis_example" subfolder

About

Geant4 simulation of AmBe emergent gammas based on emergent gammas simulation code for AmLi by J. Busenitz and R. Sazzad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.4%
  • CMake 3.4%
  • Python 1.2%