9import g4py.Qmaterials, g4py.NISTmaterials
10import g4py.Qgeom, g4py.ExN01geom, g4py.ExN03geom
11import g4py.ExN01pl, g4py.EMSTDpl
12import g4py.ParticleGun, g4py.MedicalBeam
23 g4py.Qmaterials.Construct()
33 g4py.Qgeom.Construct()
36 global primary_position, primary_direction
45 g4py.ExN01geom.Construct()
47 global primary_position, primary_direction
59 g4py.ExN03geom.Construct()
61 global primary_position, primary_direction
72rand_engine= Ranlux64Engine()
73HepRandom.setTheEngine(rand_engine)
74HepRandom.setTheSeed(20050830L)
96g4py.EMSTDpl.Construct()
110pg= g4py.ParticleGun.Construct()
113pg.SetParticleByName(
"e-")
114pg.SetParticleEnergy(300.*MeV)
115pg.SetParticlePosition(primary_position)
116pg.SetParticleMomentumDirection(primary_direction)
126gRunManager.Initialize()