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

Public Member Functions

def __init__ (self)
 
def __del__ (self)
 
def Construct (self)
 
def __init__ (self)
 
def __del__ (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

 world
 
 gdml_parser
 

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 12 of file python3/read_gdml.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def read_gdml.MyDetectorConstruction.__init__ (   self)

Definition at line 15 of file python3/read_gdml.py.

15  def __init__(self):
16  G4VUserDetectorConstruction.__init__(self)
17  self.world= None
18  self.gdml_parser= G4GDMLParser()
19 
Here is the caller graph for this function:

◆ __del__() [1/2]

def read_gdml.MyDetectorConstruction.__del__ (   self)

Definition at line 21 of file python3/read_gdml.py.

21  def __del__(self):
22  pass
23 
Here is the caller graph for this function:

◆ __init__() [2/2]

def read_gdml.MyDetectorConstruction.__init__ (   self)

Definition at line 15 of file read_gdml.py.

15  def __init__(self):
16  G4VUserDetectorConstruction.__init__(self)
17  self.world= None
18  self.gdml_parser= G4GDMLParser()
19 
Here is the call graph for this function:

◆ __del__() [2/2]

def read_gdml.MyDetectorConstruction.__del__ (   self)

Definition at line 21 of file read_gdml.py.

21  def __del__(self):
22  pass
23 
Here is the call graph for this function:

Member Function Documentation

◆ Construct() [1/2]

def read_gdml.MyDetectorConstruction.Construct (   self)

Definition at line 25 of file python3/read_gdml.py.

25  def Construct(self):
26  self.gdml_parser.Read("qgeom.gdml")
27  self.world= self.gdml_parser.GetWorldVolume()
28 
29  return self.world
30 
31 
32 # ==================================================================
33 # main
34 # ==================================================================
35 # set geometry
37 gRunManager.SetUserInitialization(myDC)
38 
39 # minimal physics list
40 g4py.ExN01pl.Construct()
41 
42 # set primary generator action
43 g4py.ParticleGun.Construct()
44 
45 # initialize
46 gRunManager.Initialize()
47 
48 # visualization
49 gApplyUICommand("/vis/open OGLIX")
50 gApplyUICommand("/vis/scene/create")
51 gApplyUICommand("/vis/scene/add/volume")
52 gApplyUICommand("/vis/sceneHandler/attach")
53 gApplyUICommand("/vis/viewer/set/viewpointThetaPhi 90. -90.")
54 
Here is the call graph for this function:

◆ Construct() [2/2]

def read_gdml.MyDetectorConstruction.Construct (   self)

Definition at line 25 of file read_gdml.py.

25  def Construct(self):
26  self.gdml_parser.Read("qgeom.gdml")
27  self.world= self.gdml_parser.GetWorldVolume()
28 
29  return self.world
30 
31 
32 # ==================================================================
33 # main
34 # ==================================================================
35 # set geometry
37 gRunManager.SetUserInitialization(myDC)
38 
39 # minimal physics list
40 g4py.ExN01pl.Construct()
41 
42 # set primary generator action
43 g4py.ParticleGun.Construct()
44 
45 # initialize
46 gRunManager.Initialize()
47 
48 # visualization
49 gApplyUICommand("/vis/open OGLSX")
50 gApplyUICommand("/vis/scene/create")
51 gApplyUICommand("/vis/scene/add/volume")
52 gApplyUICommand("/vis/sceneHandler/attach")
53 gApplyUICommand("/vis/viewer/set/viewpointThetaPhi 90. -90.")
54 
Here is the call graph for this function:

Member Data Documentation

◆ gdml_parser

read_gdml.MyDetectorConstruction.gdml_parser

Definition at line 18 of file python3/read_gdml.py.

◆ world

read_gdml.MyDetectorConstruction.world

Definition at line 17 of file python3/read_gdml.py.


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