Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
+5 -5
View File
@@ -5,8 +5,8 @@
# Plotting photon cross sections and stopping power with ROOT
# ==================================================================
from Geant4 import *
import NISTmaterials
from EZsim import *
import g4py.NISTmaterials
import g4py.ezgeom
# ==================================================================
# geometry setup
@@ -16,15 +16,15 @@ from EZsim import *
# setup
# ------------------------------------------------------------------
def Configure():
NISTmaterials.Construct()
EZgeom.Construct()
g4py.NISTmaterials.Construct()
g4py.ezgeom.Construct()
# ------------------------------------------------------------------
# constructing geometry
# ------------------------------------------------------------------
def SetMaterial(material_name):
material= gNistManager.FindOrBuildMaterial(material_name)
EZgeom.SetWorldMaterial(material)
g4py.ezgeom.SetWorldMaterial(material)
# ==================================================================