Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Data Fields
read_gdml.MyDetectorConstruction Class Reference
Inheritance diagram for read_gdml.MyDetectorConstruction:
G4VUserDetectorConstruction G4VUserDetectorConstruction

Public Member Functions

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

Data Fields

 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

def read_gdml.MyDetectorConstruction.__init__ (   self)
def read_gdml.MyDetectorConstruction.__del__ (   self)

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

Referenced by read_gdml.MyDetectorConstruction.__del__().

21 
22  def __del__(self):
23  pass
def read_gdml.MyDetectorConstruction.__init__ (   self)

Definition at line 15 of file read_gdml.py.

References read_gdml.MyDetectorConstruction.__init__(), read_gdml.MyDetectorConstruction.gdml_parser, and read_gdml.MyDetectorConstruction.world.

15 
16  def __init__(self):
17  G4VUserDetectorConstruction.__init__(self)
18  self.world= None
def read_gdml.MyDetectorConstruction.__del__ (   self)

Definition at line 21 of file read_gdml.py.

References read_gdml.MyDetectorConstruction.__del__().

21 
22  def __del__(self):
23  pass

Member Function Documentation

def read_gdml.MyDetectorConstruction.Construct (   self)

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

References G4VUserDetectorConstruction.Construct(), python.gApplyUICommand, and read_gdml.MyDetectorConstruction.world.

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

Definition at line 25 of file read_gdml.py.

References G4VUserDetectorConstruction.Construct(), python.gApplyUICommand, and read_gdml.MyDetectorConstruction.world.

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

Field Documentation

read_gdml.MyDetectorConstruction.gdml_parser

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

Referenced by read_gdml.MyDetectorConstruction.__init__().

read_gdml.MyDetectorConstruction.world

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

Referenced by read_gdml.MyDetectorConstruction.__init__(), test.MyDetectorConstruction.__init__(), read_gdml.MyDetectorConstruction.Construct(), and test.MyDetectorConstruction.Construct().


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