15  "My Detector Construction" 
   18    G4VUserDetectorConstruction.__init__(self)
 
   24    air= gNistManager.FindOrBuildMaterial(
"G4_AIR")
 
   27    global sld_world, lv_world, pv_world
 
   28    sld_world= 
G4Box(
"world", 1.*m, 1.*m, 1.*m)
 
   36  "My Primary Generator Action" 
   39    G4VUserPrimaryGeneratorAction.__init__(self)
 
   52gRunManager.SetUserInitialization(myDC)
 
   56myPhysList = factory.GetReferencePhysList(
"FTFP_BERT")
 
   59  raise RuntimeError(
"No physics list named FTFP_BERT found")
 
   61gRunManager.SetUserInitialization(myPhysList)
 
   65myGenAction.particleGun.SetParticleByName(
"e-")
 
   66myGenAction.particleGun.SetParticleEnergy(200.*MeV)
 
   67myGenAction.particleGun.SetParticlePosition(
G4ThreeVector(0.,0.,-14.9)*cm)
 
   69gRunManager.SetUserAction(myGenAction)
 
   72gRunManager.Initialize()
 
virtual G4VPhysicalVolume * Construct()=0
def GeneratePrimaries(self, event)