9 import g4py.NISTmaterials
11 from g4py.ezgeom
import G4EzVolume
13 import g4py.ParticleGun
23 g4py.NISTmaterials.Construct()
29 g4py.ezgeom.Construct()
34 g4py.EMSTDpl.Construct()
39 g4py.ParticleGun.Construct()
47 print "* Constructing geometry..."
50 g4py.ezgeom.SetWorldMaterial(air)
54 phantom= G4EzVolume(
"DetectorBox")
56 phantom.CreateBoxVolume(water, 40.*cm, 40.*cm, 50.*cm)
58 vsize=phantom.VoxelizeIt(100, 100, 100)
59 print "voxel size=", vsize
67 rand_engine= Ranlux64Engine()
68 HepRandom.setTheEngine(rand_engine)
69 HepRandom.setTheSeed(20050830L)
78 gRunManager.Initialize()
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)