9 import g4py.Qmaterials, g4py.NISTmaterials
10 import g4py.Qgeom, g4py.ExN01geom, g4py.ExN03geom
11 import g4py.ExN01pl, g4py.EMSTDpl
12 import 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
72 rand_engine= Ranlux64Engine()
73 HepRandom.setTheEngine(rand_engine)
74 HepRandom.setTheSeed(20050830L)
96 g4py.EMSTDpl.Construct()
110 pg= g4py.ParticleGun.Construct()
113 pg.SetParticleByName(
"e-")
114 pg.SetParticleEnergy(300.*MeV)
115 pg.SetParticlePosition(primary_position)
116 pg.SetParticleMomentumDirection(primary_direction)
126 gRunManager.Initialize()
129 gRunManager.BeamOn(10)