Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
read_gdml.MyDetectorConstruction Class Reference
Inheritance diagram for read_gdml.MyDetectorConstruction:
Collaboration diagram for read_gdml.MyDetectorConstruction:

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
 

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 read_gdml.py.

Constructor & Destructor Documentation

def read_gdml.MyDetectorConstruction.__init__ (   self)

Definition at line 15 of file read_gdml.py.

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

Here is the caller graph for this function:

def read_gdml.MyDetectorConstruction.__del__ (   self)

Definition at line 21 of file read_gdml.py.

21 
22  def __del__(self):
23  pass

Here is the caller graph for this function:

def read_gdml.MyDetectorConstruction.__init__ (   self)

Definition at line 15 of file read_gdml.py.

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

Here is the call graph for this function:

def read_gdml.MyDetectorConstruction.__del__ (   self)

Definition at line 21 of file read_gdml.py.

21 
22  def __del__(self):
23  pass

Here is the call graph for this function:

Member Function Documentation

def read_gdml.MyDetectorConstruction.Construct (   self)

Definition at line 25 of file read_gdml.py.

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
gApplyUICommand
Definition: __init__.py:165

Here is the call graph for this function:

def read_gdml.MyDetectorConstruction.Construct (   self)

Definition at line 25 of file read_gdml.py.

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 OGLSX")
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
gApplyUICommand
Definition: __init__.py:165

Here is the call graph for this function:

Member Data Documentation

read_gdml.MyDetectorConstruction.gdml_parser

Definition at line 18 of file read_gdml.py.

read_gdml.MyDetectorConstruction.world

Definition at line 17 of file read_gdml.py.


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