9 import g4py.ExN01pl, g4py.ParticleGun
 
   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)
 
   34     global sld_box, lv_box, pv_box
 
   35     sld_box= 
G4Box(
"box", 10.*cm, 10.*cm, 10.*cm);
 
   38                           pv_world, 
False, 0, 
True)
 
   41     global sld_cyl, lv_cyl, pv_cyl1, pv_cyl2, pv_cyl3
 
   42     sld_cyl= 
G4Tubs(
"cylinder",0., 2.*cm, 2.*cm, 0., twopi)
 
   50                            pv_world, 
False, 0, 
True)
 
   55                            pv_world, 
False, 1, 
True)
 
   60                            pv_box, 
False, 0, 
True)
 
   69 gRunManager.SetUserInitialization(myDC)
 
   72 g4py.ExN01pl.Construct()
 
   75 g4py.ParticleGun.Construct()
 
   78 gRunManager.Initialize() 
 
virtual G4VPhysicalVolume * Construct()=0