Geant4  10.02.p03
test.MyDetectorConstruction Class Reference
Inheritance diagram for test.MyDetectorConstruction:
Collaboration diagram for test.MyDetectorConstruction:

Public Member Functions

def __init__ (self)
 
def ConstructWorld (self)
 
def ConstructBox (self)
 
def ConstructTubs (self)
 
def ConstructCons (self)
 
def ConstructPara (self)
 
def ConstructTrd (self)
 
def ConstructTrap (self)
 
def ConstructSphere (self)
 
def ConstructOrb (self)
 
def ConstructTorus (self)
 
def ConstructPolycone (self)
 
def ConstructPolyhedra (self)
 
def ConstructEllipticalTube (self)
 
def ConstructEllipsoid (self)
 
def ConstructEllipticalCone (self)
 
def ConstructHype (self)
 
def ConstructTet (self)
 
def ConstructTwistedBox (self)
 
def ConstructTwistedTrap (self)
 
def ConstructTwistedTrd (self)
 
def ConstructTwistedTubs (self)
 
def Construct (self)
 
def __init__ (self)
 
def ConstructWorld (self)
 
def ConstructBox (self)
 
def ConstructTubs (self)
 
def ConstructCons (self)
 
def ConstructPara (self)
 
def ConstructTrd (self)
 
def ConstructTrap (self)
 
def ConstructSphere (self)
 
def ConstructOrb (self)
 
def ConstructTorus (self)
 
def ConstructPolycone (self)
 
def ConstructPolyhedra (self)
 
def ConstructEllipticalTube (self)
 
def ConstructEllipsoid (self)
 
def ConstructEllipticalCone (self)
 
def ConstructHype (self)
 
def ConstructTet (self)
 
def ConstructTwistedBox (self)
 
def ConstructTwistedTrap (self)
 
def ConstructTwistedTrd (self)
 
def ConstructTwistedTubs (self)
 
def Construct (self)
 
def __init__ (self)
 
def ConstructWorld (self)
 
def ConstructUnion (self)
 
def ConstructIntersection (self)
 
def ConstructSubtraction (self)
 
def Construct (self)
 
def __init__ (self)
 
def ConstructWorld (self)
 
def ConstructUnion (self)
 
def ConstructIntersection (self)
 
def ConstructSubtraction (self)
 
def Construct (self)
 
def __init__ (self)
 
def Construct (self)
 
def __init__ (self)
 
def Construct (self)
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()=0
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Public Attributes

 air
 
 lv_object
 
 world
 
 va_red
 
 va_cyan
 
 va_green
 
 va_blue
 
 va_magenta
 
 sld_box
 
 sld_cyl
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Definition at line 15 of file tests/gtest05/python3/test.py.

Constructor & Destructor Documentation

◆ __init__() [1/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 18 of file tests/gtest05/python3/test.py.

18  def __init__(self):
19  G4VUserDetectorConstruction.__init__(self)
20  self.air= gNistManager.FindOrBuildMaterial("G4_AIR")
21  self.lv_object= None
22  self.world= self.ConstructWorld()
23 
24  self.va_red= G4VisAttributes(G4Color(1.,0.,0.))
25  self.va_cyan= G4VisAttributes(G4Color(0.,1.,1.))
26  self.va_green= G4VisAttributes(G4Color(0.,1.,0.))
27  self.va_blue= G4VisAttributes(G4Color(0.,0.,1.))
28  self.va_magenta= G4VisAttributes(G4Color(1.,0.,1.))
29 
Here is the caller graph for this function:

◆ __init__() [2/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 18 of file tests/gtest05/test.py.

18  def __init__(self):
19  G4VUserDetectorConstruction.__init__(self)
20  self.air= gNistManager.FindOrBuildMaterial("G4_AIR")
21  self.lv_object= None
22  self.world= self.ConstructWorld()
23 
24  self.va_red= G4VisAttributes(G4Color(1.,0.,0.))
25  self.va_cyan= G4VisAttributes(G4Color(0.,1.,1.))
26  self.va_green= G4VisAttributes(G4Color(0.,1.,0.))
27  self.va_blue= G4VisAttributes(G4Color(0.,0.,1.))
28  self.va_magenta= G4VisAttributes(G4Color(1.,0.,1.))
29 
Here is the call graph for this function:

◆ __init__() [3/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 17 of file tests/gtest06/python3/test.py.

17  def __init__(self):
18  G4VUserDetectorConstruction.__init__(self)
19  self.air= gNistManager.FindOrBuildMaterial("G4_AIR")
20  self.lv_object= None
21  self.world= self.ConstructWorld()
22 
23  self.va_red= G4VisAttributes(G4Color(1.,0.,0.))
24  self.va_cyan= G4VisAttributes(G4Color(0.,1.,1.))
25  self.va_green= G4VisAttributes(G4Color(0.,1.,0.))
26  self.va_blue= G4VisAttributes(G4Color(0.,0.,1.))
27  self.va_magenta= G4VisAttributes(G4Color(1.,0.,1.))
28 
29  self.sld_box= G4Box("box",20.*cm, 20.*cm, 20.*cm);
30  self.sld_cyl= G4Tubs("cylinder",0., 10.*cm, 30.*cm, 0., twopi)
31 
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
Here is the call graph for this function:

◆ __init__() [4/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 17 of file tests/gtest06/test.py.

17  def __init__(self):
18  G4VUserDetectorConstruction.__init__(self)
19  self.air= gNistManager.FindOrBuildMaterial("G4_AIR")
20  self.lv_object= None
21  self.world= self.ConstructWorld()
22 
23  self.va_red= G4VisAttributes(G4Color(1.,0.,0.))
24  self.va_cyan= G4VisAttributes(G4Color(0.,1.,1.))
25  self.va_green= G4VisAttributes(G4Color(0.,1.,0.))
26  self.va_blue= G4VisAttributes(G4Color(0.,0.,1.))
27  self.va_magenta= G4VisAttributes(G4Color(1.,0.,1.))
28 
29  self.sld_box= G4Box("box",20.*cm, 20.*cm, 20.*cm);
30  self.sld_cyl= G4Tubs("cylinder",0., 10.*cm, 30.*cm, 0., twopi)
31 
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
Here is the call graph for this function:

◆ __init__() [5/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 17 of file tests/gtest07/python3/test.py.

17  def __init__(self):
18  G4VUserDetectorConstruction.__init__(self)
19 
Here is the call graph for this function:

◆ __init__() [6/6]

def test.MyDetectorConstruction.__init__ (   self)

Definition at line 17 of file tests/gtest07/test.py.

17  def __init__(self):
18  G4VUserDetectorConstruction.__init__(self)
19 
Here is the call graph for this function:

Member Function Documentation

◆ Construct() [1/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 21 of file tests/gtest07/python3/test.py.

21  def Construct(self):
22  # Python has automatic garbage collection system.
23  # Geometry objects must be defined as GLOBAL not to be deleted.
24  air= gNistManager.FindOrBuildMaterial("G4_AIR")
25 
26  # world volume
27  global sld_world, lv_world, pv_world
28  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
29  lv_world= G4LogicalVolume(sld_world, air, "world")
30  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
31  None, False, 0)
32 
33  # box
34  global sld_box, lv_box, pv_box
35  sld_box= G4Box("box", 10.*cm, 10.*cm, 10.*cm);
36  lv_box= G4LogicalVolume(sld_box, air, "box")
37  pv_box= G4PVPlacement(None, G4ThreeVector(), "box", lv_box,
38  pv_world, False, 0, True)
39 
40  # cylinder
41  global sld_cyl, lv_cyl, pv_cyl1, pv_cyl2, pv_cyl3
42  sld_cyl= G4Tubs("cylinder",0., 2.*cm, 2.*cm, 0., twopi)
43  lv_cyl= G4LogicalVolume(sld_cyl, air, "cylinder")
44 
45  #
46  # the following placements are !! overlapped !!
47  #
48  # doubly placed
49  pv_cyl1= G4PVPlacement(None, G4ThreeVector(), "cylinder", lv_cyl,
50  pv_world, False, 0, True)
51 
52  # overlaped
53  pv_cyl2= G4PVPlacement(None, G4ThreeVector(10.*cm,0.,0.),
54  "cylinder", lv_cyl,
55  pv_world, False, 1, True)
56 
57  # sticked out
58  pv_cyl3= G4PVPlacement(None, G4ThreeVector(10.*cm,0.,0.),
59  "cylinder", lv_cyl,
60  pv_box, False, 0, True)
61 
62  return pv_world
63 
64 # ==================================================================
65 # main
66 # ==================================================================
67 # set geometry
69 gRunManager.SetUserInitialization(myDC)
70 
71 # minimal physics list
72 g4py.ExN01pl.Construct()
73 
74 # set primary generator action
75 g4py.ParticleGun.Construct()
76 
77 # initialize
78 gRunManager.Initialize() # overlap should be detected !!
79 
80 
Here is the call graph for this function:

◆ Construct() [2/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 21 of file tests/gtest07/test.py.

21  def Construct(self):
22  # Python has automatic garbage collection system.
23  # Geometry objects must be defined as GLOBAL not to be deleted.
24  air= gNistManager.FindOrBuildMaterial("G4_AIR")
25 
26  # world volume
27  global sld_world, lv_world, pv_world
28  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
29  lv_world= G4LogicalVolume(sld_world, air, "world")
30  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
31  None, False, 0)
32 
33  # box
34  global sld_box, lv_box, pv_box
35  sld_box= G4Box("box", 10.*cm, 10.*cm, 10.*cm);
36  lv_box= G4LogicalVolume(sld_box, air, "box")
37  pv_box= G4PVPlacement(None, G4ThreeVector(), "box", lv_box,
38  pv_world, False, 0, True)
39 
40  # cylinder
41  global sld_cyl, lv_cyl, pv_cyl1, pv_cyl2, pv_cyl3
42  sld_cyl= G4Tubs("cylinder",0., 2.*cm, 2.*cm, 0., twopi)
43  lv_cyl= G4LogicalVolume(sld_cyl, air, "cylinder")
44 
45  #
46  # the following placements are !! overlapped !!
47  #
48  # doubly placed
49  pv_cyl1= G4PVPlacement(None, G4ThreeVector(), "cylinder", lv_cyl,
50  pv_world, False, 0, True)
51 
52  # overlaped
53  pv_cyl2= G4PVPlacement(None, G4ThreeVector(10.*cm,0.,0.),
54  "cylinder", lv_cyl,
55  pv_world, False, 1, True)
56 
57  # sticked out
58  pv_cyl3= G4PVPlacement(None, G4ThreeVector(10.*cm,0.,0.),
59  "cylinder", lv_cyl,
60  pv_box, False, 0, True)
61 
62  return pv_world
63 
64 # ==================================================================
65 # main
66 # ==================================================================
67 # set geometry
69 gRunManager.SetUserInitialization(myDC)
70 
71 # minimal physics list
72 g4py.ExN01pl.Construct()
73 
74 # set primary generator action
75 g4py.ParticleGun.Construct()
76 
77 # initialize
78 gRunManager.Initialize() # overlap should be detected !!
79 
80 
Here is the call graph for this function:

◆ Construct() [3/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 88 of file tests/gtest06/test.py.

88  def Construct(self): # return the world volume
89  return self.world
90 
91 # ==================================================================
92 # main
93 # ==================================================================
94 # set geometry
96 gRunManager.SetUserInitialization(myDC)
97 
98 # minimal physics list
99 g4py.ExN01pl.Construct()
100 
101 # set primary generator action
102 g4py.ParticleGun.Construct()
103 
104 # initialize
105 gRunManager.Initialize()
106 
107 # visualization
108 gApplyUICommand("/vis/open RayTracer")
109 gApplyUICommand("/vis/rayTracer/headAngle 40.")
110 gApplyUICommand("/vis/rayTracer/eyePosition 100 100 150 cm")
111 
112 # create a vrml file for each solid type
113 f_list= (
void Construct()
Definition: pyExN01geom.cc:48
Here is the call graph for this function:

◆ Construct() [4/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 88 of file tests/gtest06/python3/test.py.

88  def Construct(self): # return the world volume
89  return self.world
90 
91 # ==================================================================
92 # main
93 # ==================================================================
94 # set geometry
96 gRunManager.SetUserInitialization(myDC)
97 
98 # minimal physics list
99 g4py.ExN01pl.Construct()
100 
101 # set primary generator action
102 g4py.ParticleGun.Construct()
103 
104 # initialize
105 gRunManager.Initialize()
106 
107 # visualization
108 gApplyUICommand("/vis/open RayTracer")
109 gApplyUICommand("/vis/rayTracer/headAngle 40.")
110 gApplyUICommand("/vis/rayTracer/eyePosition 100 100 150 cm")
111 
112 # create a vrml file for each solid type
113 f_list= (
void Construct()
Definition: pyExN01geom.cc:48
Here is the call graph for this function:

◆ Construct() [5/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 251 of file tests/gtest05/test.py.

251  def Construct(self): # return the world volume
252  return self.world
253 
254 # ==================================================================
255 # main
256 # ==================================================================
257 os.environ["G4VRML_DEST_DIR"]= "."
258 os.environ["G4VRMLFILE_MAX_FILE_NUM"]= "1"
259 os.environ["G4VRMLFILE_VIEWER"]= "echo"
260 
261 # set geometry
263 gRunManager.SetUserInitialization(myDC)
264 
265 # minimal physics list
266 g4py.ExN01pl.Construct()
267 
268 # set primary generator action
269 g4py.ParticleGun.Construct()
270 
271 # initialize
272 gRunManager.Initialize()
273 
274 # visualization
275 gApplyUICommand("/vis/open VRML2FILE")
276 gApplyUICommand("/vis/scene/create")
277 gApplyUICommand("/vis/scene/add/volume")
278 gApplyUICommand("/vis/sceneHandler/attach")
279 gApplyUICommand("/vis/scene/add/axes 0. 0. 0. 10. cm")
280 
281 # create a vrml file for each solid type
282 f_list= (
void Construct()
Definition: pyExN01geom.cc:48
Here is the call graph for this function:

◆ Construct() [6/6]

def test.MyDetectorConstruction.Construct (   self)

Definition at line 251 of file tests/gtest05/python3/test.py.

251  def Construct(self): # return the world volume
252  return self.world
253 
254 # ==================================================================
255 # main
256 # ==================================================================
257 os.environ["G4VRML_DEST_DIR"]= "."
258 os.environ["G4VRMLFILE_MAX_FILE_NUM"]= "1"
259 os.environ["G4VRMLFILE_VIEWER"]= "echo"
260 
261 # set geometry
263 gRunManager.SetUserInitialization(myDC)
264 
265 # minimal physics list
266 g4py.ExN01pl.Construct()
267 
268 # set primary generator action
269 g4py.ParticleGun.Construct()
270 
271 # initialize
272 gRunManager.Initialize()
273 
274 # visualization
275 gApplyUICommand("/vis/open VRML2FILE")
276 gApplyUICommand("/vis/scene/create")
277 gApplyUICommand("/vis/scene/add/volume")
278 gApplyUICommand("/vis/sceneHandler/attach")
279 gApplyUICommand("/vis/scene/add/axes 0. 0. 0. 10. cm")
280 
281 # create a vrml file for each solid type
282 f_list= (
void Construct()
Definition: pyExN01geom.cc:48
Here is the call graph for this function:

◆ ConstructBox() [1/2]

def test.MyDetectorConstruction.ConstructBox (   self)

Definition at line 55 of file tests/gtest05/python3/test.py.

55  def ConstructBox(self):
56  global sld_box
57  sld_box= G4Box("box", 30.*cm, 40.*cm, 60.*cm)
58  self.lv_object.SetSolid(sld_box)
59  self.lv_object.SetVisAttributes(self.va_red)
60  gRunManager.GeometryHasBeenModified()
61 
Definition: G4Box.hh:64
Here is the caller graph for this function:

◆ ConstructBox() [2/2]

def test.MyDetectorConstruction.ConstructBox (   self)

Definition at line 55 of file tests/gtest05/test.py.

55  def ConstructBox(self):
56  global sld_box
57  sld_box= G4Box("box", 30.*cm, 40.*cm, 60.*cm)
58  self.lv_object.SetSolid(sld_box)
59  self.lv_object.SetVisAttributes(self.va_red)
60  gRunManager.GeometryHasBeenModified()
61 
Definition: G4Box.hh:64
Here is the call graph for this function:

◆ ConstructCons() [1/2]

def test.MyDetectorConstruction.ConstructCons (   self)

Definition at line 71 of file tests/gtest05/python3/test.py.

71  def ConstructCons(self):
72  global sld_cons
73  sld_cons= G4Cons("cons", 5.*cm, 10.*cm, 20.*cm, 25.*cm,
74  40.*cm, 0., 4./3.*pi)
75  self.lv_object.SetSolid(sld_cons)
76  self.lv_object.SetVisAttributes(self.va_green)
77  gRunManager.GeometryHasBeenModified()
78 
Definition: G4Cons.hh:83
Here is the caller graph for this function:

◆ ConstructCons() [2/2]

def test.MyDetectorConstruction.ConstructCons (   self)

Definition at line 71 of file tests/gtest05/test.py.

71  def ConstructCons(self):
72  global sld_cons
73  sld_cons= G4Cons("cons", 5.*cm, 10.*cm, 20.*cm, 25.*cm,
74  40.*cm, 0., 4./3.*pi)
75  self.lv_object.SetSolid(sld_cons)
76  self.lv_object.SetVisAttributes(self.va_green)
77  gRunManager.GeometryHasBeenModified()
78 
Definition: G4Cons.hh:83
Here is the call graph for this function:

◆ ConstructEllipsoid() [1/2]

def test.MyDetectorConstruction.ConstructEllipsoid (   self)

Definition at line 173 of file tests/gtest05/test.py.

173  def ConstructEllipsoid(self):
174  global sld_es
175  sld_es= G4Ellipsoid("ellipsoid", 10.*cm, 20.*cm, 50.*cm,
176  -10.*cm, 40.*cm)
177  self.lv_object.SetSolid(sld_es)
178  self.lv_object.SetVisAttributes(self.va_red)
179  gRunManager.GeometryHasBeenModified()
180 
Here is the call graph for this function:

◆ ConstructEllipsoid() [2/2]

def test.MyDetectorConstruction.ConstructEllipsoid (   self)

Definition at line 173 of file tests/gtest05/python3/test.py.

173  def ConstructEllipsoid(self):
174  global sld_es
175  sld_es= G4Ellipsoid("ellipsoid", 10.*cm, 20.*cm, 50.*cm,
176  -10.*cm, 40.*cm)
177  self.lv_object.SetSolid(sld_es)
178  self.lv_object.SetVisAttributes(self.va_red)
179  gRunManager.GeometryHasBeenModified()
180 
Here is the caller graph for this function:

◆ ConstructEllipticalCone() [1/2]

def test.MyDetectorConstruction.ConstructEllipticalCone (   self)

Definition at line 182 of file tests/gtest05/test.py.

182  def ConstructEllipticalCone(self):
183  global sld_ec
184  sld_ec= G4EllipticalCone("ellipticalcone", 30.*cm, 60.*cm,
185  50.*cm, 25.*cm)
186  self.lv_object.SetSolid(sld_ec)
187  self.lv_object.SetVisAttributes(self.va_magenta)
188  gRunManager.GeometryHasBeenModified()
189 
Here is the call graph for this function:

◆ ConstructEllipticalCone() [2/2]

def test.MyDetectorConstruction.ConstructEllipticalCone (   self)

Definition at line 182 of file tests/gtest05/python3/test.py.

182  def ConstructEllipticalCone(self):
183  global sld_ec
184  sld_ec= G4EllipticalCone("ellipticalcone", 30.*cm, 60.*cm,
185  50.*cm, 25.*cm)
186  self.lv_object.SetSolid(sld_ec)
187  self.lv_object.SetVisAttributes(self.va_magenta)
188  gRunManager.GeometryHasBeenModified()
189 
Here is the caller graph for this function:

◆ ConstructEllipticalTube() [1/2]

def test.MyDetectorConstruction.ConstructEllipticalTube (   self)

Definition at line 165 of file tests/gtest05/test.py.

165  def ConstructEllipticalTube(self):
166  global sld_et
167  sld_et= G4EllipticalTube("ellipticaltube", 5.*cm, 10.*cm, 20.*cm)
168  self.lv_object.SetSolid(sld_et)
169  self.lv_object.SetVisAttributes(self.va_cyan)
170  gRunManager.GeometryHasBeenModified()
171 
Here is the call graph for this function:

◆ ConstructEllipticalTube() [2/2]

def test.MyDetectorConstruction.ConstructEllipticalTube (   self)

Definition at line 165 of file tests/gtest05/python3/test.py.

165  def ConstructEllipticalTube(self):
166  global sld_et
167  sld_et= G4EllipticalTube("ellipticaltube", 5.*cm, 10.*cm, 20.*cm)
168  self.lv_object.SetSolid(sld_et)
169  self.lv_object.SetVisAttributes(self.va_cyan)
170  gRunManager.GeometryHasBeenModified()
171 
Here is the caller graph for this function:

◆ ConstructHype() [1/2]

def test.MyDetectorConstruction.ConstructHype (   self)

Definition at line 191 of file tests/gtest05/python3/test.py.

191  def ConstructHype(self):
192  global sld_hype
193  sld_hype= G4Hype("hype", 20.*cm, 30.*cm, 0.7, 0.7, 50.*cm)
194  self.lv_object.SetSolid(sld_hype)
195  self.lv_object.SetVisAttributes(self.va_blue)
196  gRunManager.GeometryHasBeenModified()
197 
Definition: G4Hype.hh:67
Here is the caller graph for this function:

◆ ConstructHype() [2/2]

def test.MyDetectorConstruction.ConstructHype (   self)

Definition at line 191 of file tests/gtest05/test.py.

191  def ConstructHype(self):
192  global sld_hype
193  sld_hype= G4Hype("hype", 20.*cm, 30.*cm, 0.7, 0.7, 50.*cm)
194  self.lv_object.SetSolid(sld_hype)
195  self.lv_object.SetVisAttributes(self.va_blue)
196  gRunManager.GeometryHasBeenModified()
197 
Definition: G4Hype.hh:67
Here is the call graph for this function:

◆ ConstructIntersection() [1/2]

def test.MyDetectorConstruction.ConstructIntersection (   self)

Definition at line 66 of file tests/gtest06/python3/test.py.

66  def ConstructIntersection(self):
67  offset= G4ThreeVector(20.*cm, 20.*cm, 0.)
68  global sld_intersection
69  sld_intersection= G4IntersectionSolid("box*cylinder",
70  self.sld_box, self.sld_cyl,
71  None, offset)
72 
73  self.lv_object.SetSolid(sld_intersection)
74  self.lv_object.SetVisAttributes(self.va_magenta)
75  gRunManager.GeometryHasBeenModified()
76 
Here is the caller graph for this function:

◆ ConstructIntersection() [2/2]

def test.MyDetectorConstruction.ConstructIntersection (   self)

Definition at line 66 of file tests/gtest06/test.py.

66  def ConstructIntersection(self):
67  offset= G4ThreeVector(20.*cm, 20.*cm, 0.)
68  global sld_intersection
69  sld_intersection= G4IntersectionSolid("box*cylinder",
70  self.sld_box, self.sld_cyl,
71  None, offset)
72 
73  self.lv_object.SetSolid(sld_intersection)
74  self.lv_object.SetVisAttributes(self.va_magenta)
75  gRunManager.GeometryHasBeenModified()
76 
Here is the call graph for this function:

◆ ConstructOrb() [1/2]

def test.MyDetectorConstruction.ConstructOrb (   self)

Definition at line 115 of file tests/gtest05/python3/test.py.

115  def ConstructOrb(self):
116  global sld_orb
117  sld_orb= G4Orb("orb", 100.*cm)
118  self.lv_object.SetSolid(sld_orb)
119  self.lv_object.SetVisAttributes(self.va_red)
120  gRunManager.GeometryHasBeenModified()
121 
Definition: G4Orb.hh:61
Here is the caller graph for this function:

◆ ConstructOrb() [2/2]

def test.MyDetectorConstruction.ConstructOrb (   self)

Definition at line 115 of file tests/gtest05/test.py.

115  def ConstructOrb(self):
116  global sld_orb
117  sld_orb= G4Orb("orb", 100.*cm)
118  self.lv_object.SetSolid(sld_orb)
119  self.lv_object.SetVisAttributes(self.va_red)
120  gRunManager.GeometryHasBeenModified()
121 
Definition: G4Orb.hh:61
Here is the call graph for this function:

◆ ConstructPara() [1/2]

def test.MyDetectorConstruction.ConstructPara (   self)

Definition at line 80 of file tests/gtest05/python3/test.py.

80  def ConstructPara(self):
81  global sld_para
82  sld_para= G4Para("para", 30.*cm, 40.*cm, 60.*cm, pi/4., pi/8., 0.)
83  self.lv_object.SetSolid(sld_para)
84  self.lv_object.SetVisAttributes(self.va_blue)
85  gRunManager.GeometryHasBeenModified()
86 
Definition: G4Para.hh:77
Here is the caller graph for this function:

◆ ConstructPara() [2/2]

def test.MyDetectorConstruction.ConstructPara (   self)

Definition at line 80 of file tests/gtest05/test.py.

80  def ConstructPara(self):
81  global sld_para
82  sld_para= G4Para("para", 30.*cm, 40.*cm, 60.*cm, pi/4., pi/8., 0.)
83  self.lv_object.SetSolid(sld_para)
84  self.lv_object.SetVisAttributes(self.va_blue)
85  gRunManager.GeometryHasBeenModified()
86 
Definition: G4Para.hh:77
Here is the call graph for this function:

◆ ConstructPolycone() [1/2]

def test.MyDetectorConstruction.ConstructPolycone (   self)

Definition at line 131 of file tests/gtest05/test.py.

131  def ConstructPolycone(self):
132  zvec= G4doubleVector()
133  rinvec= G4doubleVector()
134  routvec= G4doubleVector()
135 
136  zvec[:]= [ 5.*cm, 7.*cm, 9.*cm, 11.*cm, 25.*cm, 27.*cm, 29.*cm,
137  31.*cm, 35.*cm ]
138  rinvec[:]= [0.,0.,0.,0.,0.,0.,0.,0.,0.]
139  routvec[:]= [ 0., 10.*cm, 10.*cm, 5.*cm, 5.*cm, 10.*cm,
140  10.*cm, 2.*cm, 2.*cm ]
141 
142  global sld_pcon
143  sld_pcon= CreatePolycone("pcon", 0., twopi, 9, zvec, rinvec,routvec)
144  self.lv_object.SetSolid(sld_pcon)
145  self.lv_object.SetVisAttributes(self.va_cyan)
146  gRunManager.GeometryHasBeenModified()
147 
std::vector< G4double > G4doubleVector
Definition: pyglobals.cc:65
Here is the call graph for this function:

◆ ConstructPolycone() [2/2]

def test.MyDetectorConstruction.ConstructPolycone (   self)

Definition at line 131 of file tests/gtest05/python3/test.py.

131  def ConstructPolycone(self):
132  zvec= G4doubleVector()
133  rinvec= G4doubleVector()
134  routvec= G4doubleVector()
135 
136  zvec[:]= [ 5.*cm, 7.*cm, 9.*cm, 11.*cm, 25.*cm, 27.*cm, 29.*cm,
137  31.*cm, 35.*cm ]
138  rinvec[:]= [0.,0.,0.,0.,0.,0.,0.,0.,0.]
139  routvec[:]= [ 0., 10.*cm, 10.*cm, 5.*cm, 5.*cm, 10.*cm,
140  10.*cm, 2.*cm, 2.*cm ]
141 
142  global sld_pcon
143  sld_pcon= CreatePolycone("pcon", 0., twopi, 9, zvec, rinvec,routvec)
144  self.lv_object.SetSolid(sld_pcon)
145  self.lv_object.SetVisAttributes(self.va_cyan)
146  gRunManager.GeometryHasBeenModified()
147 
std::vector< G4double > G4doubleVector
Definition: pyglobals.cc:65
Here is the caller graph for this function:

◆ ConstructPolyhedra() [1/2]

def test.MyDetectorConstruction.ConstructPolyhedra (   self)

Definition at line 149 of file tests/gtest05/test.py.

149  def ConstructPolyhedra(self):
150  zvec= G4doubleVector()
151  rinvec= G4doubleVector()
152  routvec= G4doubleVector()
153 
154  zvec[:]= [ 0., 5.*cm, 8.*cm, 13.*cm, 30.*cm, 32.*cm, 35.*cm ]
155  rinvec[:]= [0.,0.,0.,0.,0.,0.,0. ]
156  routvec[:]= [ 0., 15.*cm, 15.*cm, 4.*cm, 4.*cm, 10.*cm, 10.*cm ]
157 
158  global sld_pgon
159  sld_pgon= CreatePolyhedra("pgon", 0., twopi, 5, 7, zvec, rinvec,routvec)
160  self.lv_object.SetSolid(sld_pgon)
161  self.lv_object.SetVisAttributes(self.va_green)
162  gRunManager.GeometryHasBeenModified()
163 
std::vector< G4double > G4doubleVector
Definition: pyglobals.cc:65
Here is the call graph for this function:

◆ ConstructPolyhedra() [2/2]

def test.MyDetectorConstruction.ConstructPolyhedra (   self)

Definition at line 149 of file tests/gtest05/python3/test.py.

149  def ConstructPolyhedra(self):
150  zvec= G4doubleVector()
151  rinvec= G4doubleVector()
152  routvec= G4doubleVector()
153 
154  zvec[:]= [ 0., 5.*cm, 8.*cm, 13.*cm, 30.*cm, 32.*cm, 35.*cm ]
155  rinvec[:]= [0.,0.,0.,0.,0.,0.,0. ]
156  routvec[:]= [ 0., 15.*cm, 15.*cm, 4.*cm, 4.*cm, 10.*cm, 10.*cm ]
157 
158  global sld_pgon
159  sld_pgon= CreatePolyhedra("pgon", 0., twopi, 5, 7, zvec, rinvec,routvec)
160  self.lv_object.SetSolid(sld_pgon)
161  self.lv_object.SetVisAttributes(self.va_green)
162  gRunManager.GeometryHasBeenModified()
163 
std::vector< G4double > G4doubleVector
Definition: pyglobals.cc:65
Here is the caller graph for this function:

◆ ConstructSphere() [1/2]

def test.MyDetectorConstruction.ConstructSphere (   self)

Definition at line 106 of file tests/gtest05/python3/test.py.

106  def ConstructSphere(self):
107  global sld_sphere
108  sld_sphere= G4Sphere("sphere", 100.*cm, 120.*cm, 0., 180.*deg,
109  0., 180.*deg)
110  self.lv_object.SetSolid(sld_sphere)
111  self.lv_object.SetVisAttributes(self.va_cyan)
112  gRunManager.GeometryHasBeenModified()
113 
Here is the caller graph for this function:

◆ ConstructSphere() [2/2]

def test.MyDetectorConstruction.ConstructSphere (   self)

Definition at line 106 of file tests/gtest05/test.py.

106  def ConstructSphere(self):
107  global sld_sphere
108  sld_sphere= G4Sphere("sphere", 100.*cm, 120.*cm, 0., 180.*deg,
109  0., 180.*deg)
110  self.lv_object.SetSolid(sld_sphere)
111  self.lv_object.SetVisAttributes(self.va_cyan)
112  gRunManager.GeometryHasBeenModified()
113 
Here is the call graph for this function:

◆ ConstructSubtraction() [1/2]

def test.MyDetectorConstruction.ConstructSubtraction (   self)

Definition at line 78 of file tests/gtest06/test.py.

78  def ConstructSubtraction(self):
79  global sld_subtraction
80  sld_subtraction= G4SubtractionSolid("box-cylinder",
81  self.sld_box, self.sld_cyl)
82 
83  self.lv_object.SetSolid(sld_subtraction)
84  self.lv_object.SetVisAttributes(self.va_red)
85  gRunManager.GeometryHasBeenModified()
86 
Here is the call graph for this function:

◆ ConstructSubtraction() [2/2]

def test.MyDetectorConstruction.ConstructSubtraction (   self)

Definition at line 78 of file tests/gtest06/python3/test.py.

78  def ConstructSubtraction(self):
79  global sld_subtraction
80  sld_subtraction= G4SubtractionSolid("box-cylinder",
81  self.sld_box, self.sld_cyl)
82 
83  self.lv_object.SetSolid(sld_subtraction)
84  self.lv_object.SetVisAttributes(self.va_red)
85  gRunManager.GeometryHasBeenModified()
86 
Here is the caller graph for this function:

◆ ConstructTet() [1/2]

def test.MyDetectorConstruction.ConstructTet (   self)

Definition at line 199 of file tests/gtest05/python3/test.py.

199  def ConstructTet(self):
200  global sld_tet
201  p1= G4ThreeVector(0., 0., math.sqrt(3.)*cm)
202  p2= G4ThreeVector(0., 2*math.sqrt(2./3.)*cm, -1./math.sqrt(3)*cm)
203  p3= G4ThreeVector(-math.sqrt(2.)*cm, -math.sqrt(2./3.)*cm,
204  -1./math.sqrt(3)*cm)
205  p4= G4ThreeVector(math.sqrt(2)*cm, -math.sqrt(2./3.)*cm,
206  -1./math.sqrt(3)*cm)
207 
208  sld_tet= G4Tet("tet", 20.*p1, 20.*p2, 20.*p3, 20.*p4)
209  self.lv_object.SetSolid(sld_tet)
210  self.lv_object.SetVisAttributes(self.va_green)
211  gRunManager.GeometryHasBeenModified()
212 
Definition: G4Tet.hh:65
Here is the caller graph for this function:

◆ ConstructTet() [2/2]

def test.MyDetectorConstruction.ConstructTet (   self)

Definition at line 199 of file tests/gtest05/test.py.

199  def ConstructTet(self):
200  global sld_tet
201  p1= G4ThreeVector(0., 0., math.sqrt(3.)*cm)
202  p2= G4ThreeVector(0., 2*math.sqrt(2./3.)*cm, -1./math.sqrt(3)*cm)
203  p3= G4ThreeVector(-math.sqrt(2.)*cm, -math.sqrt(2./3.)*cm,
204  -1./math.sqrt(3)*cm)
205  p4= G4ThreeVector(math.sqrt(2)*cm, -math.sqrt(2./3.)*cm,
206  -1./math.sqrt(3)*cm)
207 
208  sld_tet= G4Tet("tet", 20.*p1, 20.*p2, 20.*p3, 20.*p4)
209  self.lv_object.SetSolid(sld_tet)
210  self.lv_object.SetVisAttributes(self.va_green)
211  gRunManager.GeometryHasBeenModified()
212 
Definition: G4Tet.hh:65
Here is the call graph for this function:

◆ ConstructTorus() [1/2]

def test.MyDetectorConstruction.ConstructTorus (   self)

Definition at line 123 of file tests/gtest05/test.py.

123  def ConstructTorus(self):
124  global sld_torus
125  sld_torus= G4Torus("torus", 40.*cm, 60.*cm, 200.*cm, 0., 90.*deg)
126  self.lv_object.SetSolid(sld_torus)
127  self.lv_object.SetVisAttributes(self.va_magenta)
128  gRunManager.GeometryHasBeenModified()
129 
Here is the call graph for this function:

◆ ConstructTorus() [2/2]

def test.MyDetectorConstruction.ConstructTorus (   self)

Definition at line 123 of file tests/gtest05/python3/test.py.

123  def ConstructTorus(self):
124  global sld_torus
125  sld_torus= G4Torus("torus", 40.*cm, 60.*cm, 200.*cm, 0., 90.*deg)
126  self.lv_object.SetSolid(sld_torus)
127  self.lv_object.SetVisAttributes(self.va_magenta)
128  gRunManager.GeometryHasBeenModified()
129 
Here is the caller graph for this function:

◆ ConstructTrap() [1/2]

def test.MyDetectorConstruction.ConstructTrap (   self)

Definition at line 96 of file tests/gtest05/python3/test.py.

96  def ConstructTrap(self):
97  global sld_trap
98  sld_trap= G4Trap("trap", 60.*cm, 20.*degree, 5.*degree,
99  40.*cm, 30.*cm, 40.*cm, 10.*degree,
100  16.*cm, 10*cm, 14.*cm, 10.*deg)
101  self.lv_object.SetSolid(sld_trap)
102  self.lv_object.SetVisAttributes(self.va_green)
103  gRunManager.GeometryHasBeenModified()
104 
Here is the caller graph for this function:

◆ ConstructTrap() [2/2]

def test.MyDetectorConstruction.ConstructTrap (   self)

Definition at line 96 of file tests/gtest05/test.py.

96  def ConstructTrap(self):
97  global sld_trap
98  sld_trap= G4Trap("trap", 60.*cm, 20.*degree, 5.*degree,
99  40.*cm, 30.*cm, 40.*cm, 10.*degree,
100  16.*cm, 10*cm, 14.*cm, 10.*deg)
101  self.lv_object.SetSolid(sld_trap)
102  self.lv_object.SetVisAttributes(self.va_green)
103  gRunManager.GeometryHasBeenModified()
104 
Here is the call graph for this function:

◆ ConstructTrd() [1/2]

def test.MyDetectorConstruction.ConstructTrd (   self)

Definition at line 88 of file tests/gtest05/python3/test.py.

88  def ConstructTrd(self):
89  global sld_trd
90  sld_trd= G4Trd("trd", 30.*cm, 10.*cm, 40.*cm, 15.*cm, 60.*cm)
91  self.lv_object.SetSolid(sld_trd)
92  self.lv_object.SetVisAttributes(self.va_blue)
93  gRunManager.GeometryHasBeenModified()
94 
Definition: G4Trd.hh:72
Here is the caller graph for this function:

◆ ConstructTrd() [2/2]

def test.MyDetectorConstruction.ConstructTrd (   self)

Definition at line 88 of file tests/gtest05/test.py.

88  def ConstructTrd(self):
89  global sld_trd
90  sld_trd= G4Trd("trd", 30.*cm, 10.*cm, 40.*cm, 15.*cm, 60.*cm)
91  self.lv_object.SetSolid(sld_trd)
92  self.lv_object.SetVisAttributes(self.va_blue)
93  gRunManager.GeometryHasBeenModified()
94 
Definition: G4Trd.hh:72
Here is the call graph for this function:

◆ ConstructTubs() [1/2]

def test.MyDetectorConstruction.ConstructTubs (   self)

Definition at line 63 of file tests/gtest05/test.py.

63  def ConstructTubs(self):
64  global sld_tubs
65  sld_tubs= G4Tubs("tubs", 10.*cm, 15.*cm, 20.*cm, 0., pi)
66  self.lv_object.SetSolid(sld_tubs)
67  self.lv_object.SetVisAttributes(self.va_cyan)
68  gRunManager.GeometryHasBeenModified()
69 
Definition: G4Tubs.hh:85
Here is the call graph for this function:

◆ ConstructTubs() [2/2]

def test.MyDetectorConstruction.ConstructTubs (   self)

Definition at line 63 of file tests/gtest05/python3/test.py.

63  def ConstructTubs(self):
64  global sld_tubs
65  sld_tubs= G4Tubs("tubs", 10.*cm, 15.*cm, 20.*cm, 0., pi)
66  self.lv_object.SetSolid(sld_tubs)
67  self.lv_object.SetVisAttributes(self.va_cyan)
68  gRunManager.GeometryHasBeenModified()
69 
Definition: G4Tubs.hh:85
Here is the caller graph for this function:

◆ ConstructTwistedBox() [1/2]

def test.MyDetectorConstruction.ConstructTwistedBox (   self)

Definition at line 214 of file tests/gtest05/test.py.

214  def ConstructTwistedBox(self):
215  global sld_twb
216  sld_twb= G4TwistedBox("twistedbox", 30.*deg, 30.*cm, 40.*cm, 60.*cm)
217  self.lv_object.SetSolid(sld_twb)
218  self.lv_object.SetVisAttributes(self.va_cyan)
219  gRunManager.GeometryHasBeenModified()
220 
Here is the call graph for this function:

◆ ConstructTwistedBox() [2/2]

def test.MyDetectorConstruction.ConstructTwistedBox (   self)

Definition at line 214 of file tests/gtest05/python3/test.py.

214  def ConstructTwistedBox(self):
215  global sld_twb
216  sld_twb= G4TwistedBox("twistedbox", 30.*deg, 30.*cm, 40.*cm, 60.*cm)
217  self.lv_object.SetSolid(sld_twb)
218  self.lv_object.SetVisAttributes(self.va_cyan)
219  gRunManager.GeometryHasBeenModified()
220 
Here is the caller graph for this function:

◆ ConstructTwistedTrap() [1/2]

def test.MyDetectorConstruction.ConstructTwistedTrap (   self)

Definition at line 222 of file tests/gtest05/test.py.

222  def ConstructTwistedTrap(self):
223  global sld_twtrp
224  sld_twtrp= G4TwistedTrap("twistedtrap", 30.*deg,
225  60.*cm, 20.*deg, 5.*deg,
226  40.*cm, 30.*cm, 40.*cm,
227  16.*cm, 10.*cm, 14.*cm, 10.*deg)
228  self.lv_object.SetSolid(sld_twtrp)
229  self.lv_object.SetVisAttributes(self.va_blue)
230  gRunManager.GeometryHasBeenModified()
231 
Here is the call graph for this function:

◆ ConstructTwistedTrap() [2/2]

def test.MyDetectorConstruction.ConstructTwistedTrap (   self)

Definition at line 222 of file tests/gtest05/python3/test.py.

222  def ConstructTwistedTrap(self):
223  global sld_twtrp
224  sld_twtrp= G4TwistedTrap("twistedtrap", 30.*deg,
225  60.*cm, 20.*deg, 5.*deg,
226  40.*cm, 30.*cm, 40.*cm,
227  16.*cm, 10.*cm, 14.*cm, 10.*deg)
228  self.lv_object.SetSolid(sld_twtrp)
229  self.lv_object.SetVisAttributes(self.va_blue)
230  gRunManager.GeometryHasBeenModified()
231 
Here is the caller graph for this function:

◆ ConstructTwistedTrd() [1/2]

def test.MyDetectorConstruction.ConstructTwistedTrd (   self)

Definition at line 233 of file tests/gtest05/python3/test.py.

233  def ConstructTwistedTrd(self):
234  global sld_twtrd
235  sld_twtrd= G4TwistedTrd("twistedtrd", 30.*cm, 10.*cm,
236  40.*cm, 15.*cm, 60.*cm, 30.*deg)
237  self.lv_object.SetSolid(sld_twtrd)
238  self.lv_object.SetVisAttributes(self.va_green)
239  gRunManager.GeometryHasBeenModified()
240 
Here is the caller graph for this function:

◆ ConstructTwistedTrd() [2/2]

def test.MyDetectorConstruction.ConstructTwistedTrd (   self)

Definition at line 233 of file tests/gtest05/test.py.

233  def ConstructTwistedTrd(self):
234  global sld_twtrd
235  sld_twtrd= G4TwistedTrd("twistedtrd", 30.*cm, 10.*cm,
236  40.*cm, 15.*cm, 60.*cm, 30.*deg)
237  self.lv_object.SetSolid(sld_twtrd)
238  self.lv_object.SetVisAttributes(self.va_green)
239  gRunManager.GeometryHasBeenModified()
240 
Here is the call graph for this function:

◆ ConstructTwistedTubs() [1/2]

def test.MyDetectorConstruction.ConstructTwistedTubs (   self)

Definition at line 242 of file tests/gtest05/python3/test.py.

242  def ConstructTwistedTubs(self):
243  global sld_twt
244  sld_twt= G4TwistedTubs("twistedtube", 60.*deg,
245  10.*cm, 15.*cm, 20.*cm, 90.*deg)
246  self.lv_object.SetSolid(sld_twt)
247  self.lv_object.SetVisAttributes(self.va_magenta)
248  gRunManager.GeometryHasBeenModified()
249 
Here is the caller graph for this function:

◆ ConstructTwistedTubs() [2/2]

def test.MyDetectorConstruction.ConstructTwistedTubs (   self)

Definition at line 242 of file tests/gtest05/test.py.

242  def ConstructTwistedTubs(self):
243  global sld_twt
244  sld_twt= G4TwistedTubs("twistedtube", 60.*deg,
245  10.*cm, 15.*cm, 20.*cm, 90.*deg)
246  self.lv_object.SetSolid(sld_twt)
247  self.lv_object.SetVisAttributes(self.va_magenta)
248  gRunManager.GeometryHasBeenModified()
249 
Here is the call graph for this function:

◆ ConstructUnion() [1/2]

def test.MyDetectorConstruction.ConstructUnion (   self)

Definition at line 57 of file tests/gtest06/python3/test.py.

57  def ConstructUnion(self):
58  global sld_union
59  sld_union= G4UnionSolid("box+cylinder", self.sld_box, self.sld_cyl);
60 
61  self.lv_object.SetSolid(sld_union)
62  self.lv_object.SetVisAttributes(self.va_blue)
63  gRunManager.GeometryHasBeenModified()
64 
Here is the caller graph for this function:

◆ ConstructUnion() [2/2]

def test.MyDetectorConstruction.ConstructUnion (   self)

Definition at line 57 of file tests/gtest06/test.py.

57  def ConstructUnion(self):
58  global sld_union
59  sld_union= G4UnionSolid("box+cylinder", self.sld_box, self.sld_cyl);
60 
61  self.lv_object.SetSolid(sld_union)
62  self.lv_object.SetVisAttributes(self.va_blue)
63  gRunManager.GeometryHasBeenModified()
64 
Here is the call graph for this function:

◆ ConstructWorld() [1/4]

def test.MyDetectorConstruction.ConstructWorld (   self)

Definition at line 31 of file tests/gtest05/test.py.

31  def ConstructWorld(self):
32  # Python has automatic garbage collection system.
33  # Geometry objects must be defined as GLOBAL not to be deleted.
34  global sld_world, lv_world, pv_world, va_world
35 
36  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
37  lv_world= G4LogicalVolume(sld_world, self.air, "world")
38  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
39  None, False, 0)
40 
41  va_world= G4VisAttributes()
42  va_world.SetVisibility(False)
43  lv_world.SetVisAttributes(va_world)
44 
45  # solid object (dummy)
46  global sld_sld, lv_sld, pv_sld
47  sld_sld= G4Box("dummy", 10.*cm, 10.*cm, 10.*cm)
48  self.lv_object= lv_sld= G4LogicalVolume(sld_sld, self.air, "dummy")
49  pv_sld= G4PVPlacement(None, G4ThreeVector(), "dummy", lv_sld,
50  pv_world, False, 0)
51 
52  return pv_world
53 
Definition: G4Box.hh:64
Here is the call graph for this function:

◆ ConstructWorld() [2/4]

def test.MyDetectorConstruction.ConstructWorld (   self)

Definition at line 31 of file tests/gtest05/python3/test.py.

31  def ConstructWorld(self):
32  # Python has automatic garbage collection system.
33  # Geometry objects must be defined as GLOBAL not to be deleted.
34  global sld_world, lv_world, pv_world, va_world
35 
36  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
37  lv_world= G4LogicalVolume(sld_world, self.air, "world")
38  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
39  None, False, 0)
40 
41  va_world= G4VisAttributes()
42  va_world.SetVisibility(False)
43  lv_world.SetVisAttributes(va_world)
44 
45  # solid object (dummy)
46  global sld_sld, lv_sld, pv_sld
47  sld_sld= G4Box("dummy", 10.*cm, 10.*cm, 10.*cm)
48  self.lv_object= lv_sld= G4LogicalVolume(sld_sld, self.air, "dummy")
49  pv_sld= G4PVPlacement(None, G4ThreeVector(), "dummy", lv_sld,
50  pv_world, False, 0)
51 
52  return pv_world
53 
Definition: G4Box.hh:64
Here is the caller graph for this function:

◆ ConstructWorld() [3/4]

def test.MyDetectorConstruction.ConstructWorld (   self)

Definition at line 33 of file tests/gtest06/python3/test.py.

33  def ConstructWorld(self):
34  # Python has automatic garbage collection system.
35  # Geometry objects must be defined as GLOBAL not to be deleted.
36  global sld_world, lv_world, pv_world, va_world
37 
38  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
39  lv_world= G4LogicalVolume(sld_world, self.air, "world")
40  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
41  None, False, 0)
42 
43  va_world= G4VisAttributes()
44  va_world.SetVisibility(False)
45  lv_world.SetVisAttributes(va_world)
46 
47  # solid object (dummy)
48  global sld_sld, lv_sld, pv_sld
49  sld_sld= G4Box("dummy", 10.*cm, 10.*cm, 10.*cm)
50  self.lv_object= lv_sld= G4LogicalVolume(sld_sld, self.air, "dummy")
51  pv_sld= G4PVPlacement(None, G4ThreeVector(), "dummy", lv_sld,
52  pv_world, False, 0)
53 
54  return pv_world
55 
Definition: G4Box.hh:64
Here is the call graph for this function:

◆ ConstructWorld() [4/4]

def test.MyDetectorConstruction.ConstructWorld (   self)

Definition at line 33 of file tests/gtest06/test.py.

33  def ConstructWorld(self):
34  # Python has automatic garbage collection system.
35  # Geometry objects must be defined as GLOBAL not to be deleted.
36  global sld_world, lv_world, pv_world, va_world
37 
38  sld_world= G4Box("world", 1.*m, 1.*m, 1.*m)
39  lv_world= G4LogicalVolume(sld_world, self.air, "world")
40  pv_world= G4PVPlacement(G4Transform3D(), lv_world, "world",
41  None, False, 0)
42 
43  va_world= G4VisAttributes()
44  va_world.SetVisibility(False)
45  lv_world.SetVisAttributes(va_world)
46 
47  # solid object (dummy)
48  global sld_sld, lv_sld, pv_sld
49  sld_sld= G4Box("dummy", 10.*cm, 10.*cm, 10.*cm)
50  self.lv_object= lv_sld= G4LogicalVolume(sld_sld, self.air, "dummy")
51  pv_sld= G4PVPlacement(None, G4ThreeVector(), "dummy", lv_sld,
52  pv_world, False, 0)
53 
54  return pv_world
55 
Definition: G4Box.hh:64
Here is the call graph for this function:

Member Data Documentation

◆ air

test.MyDetectorConstruction.air

Definition at line 20 of file tests/gtest05/python3/test.py.

◆ lv_object

test.MyDetectorConstruction.lv_object

Definition at line 21 of file tests/gtest05/python3/test.py.

◆ sld_box

test.MyDetectorConstruction.sld_box

Definition at line 29 of file tests/gtest06/python3/test.py.

◆ sld_cyl

test.MyDetectorConstruction.sld_cyl

Definition at line 30 of file tests/gtest06/python3/test.py.

◆ va_blue

test.MyDetectorConstruction.va_blue

Definition at line 27 of file tests/gtest05/python3/test.py.

◆ va_cyan

test.MyDetectorConstruction.va_cyan

Definition at line 25 of file tests/gtest05/python3/test.py.

◆ va_green

test.MyDetectorConstruction.va_green

Definition at line 26 of file tests/gtest05/python3/test.py.

◆ va_magenta

test.MyDetectorConstruction.va_magenta

Definition at line 28 of file tests/gtest05/python3/test.py.

◆ va_red

test.MyDetectorConstruction.va_red

Definition at line 24 of file tests/gtest05/python3/test.py.

◆ world

test.MyDetectorConstruction.world

Definition at line 22 of file tests/gtest05/python3/test.py.


The documentation for this class was generated from the following file: