15 "My Detector Construction"
18 G4VUserDetectorConstruction.__init__(self)
19 self.
air= gNistManager.FindOrBuildMaterial(
"G4_AIR")
36 global sld_world, lv_world, pv_world, va_world
38 sld_world=
G4Box(
"world", 1.*m, 1.*m, 1.*m)
44 va_world.SetVisibility(
False)
45 lv_world.SetVisAttributes(va_world)
48 global sld_sld, lv_sld, pv_sld
49 sld_sld=
G4Box(
"dummy", 10.*cm, 10.*cm, 10.*cm)
61 self.lv_object.SetSolid(sld_union)
62 self.lv_object.SetVisAttributes(self.
va_blue)
63 gRunManager.GeometryHasBeenModified()
68 global sld_intersection
73 self.lv_object.SetSolid(sld_intersection)
74 self.lv_object.SetVisAttributes(self.
va_magenta)
75 gRunManager.GeometryHasBeenModified()
79 global sld_subtraction
83 self.lv_object.SetSolid(sld_subtraction)
84 self.lv_object.SetVisAttributes(self.
va_red)
85 gRunManager.GeometryHasBeenModified()
96 gRunManager.SetUserInitialization(myDC)
99 g4pytest.ExN01pl.Construct()
102 g4pytest.ParticleGun.Construct()
105 gRunManager.Initialize()
114 (
"union", myDC.ConstructUnion),
115 (
"intersection", myDC.ConstructIntersection),
116 (
"subtraction", myDC.ConstructSubtraction)
121 fname=
"%s.jpg" % (s)
122 cmdstr=
"/vis/rayTracer/trace " + fname