Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
python Namespace Reference

Namespaces

 colortable
 
 g4thread
 
 g4viscp
 
 hepunit
 

Functions

def print_version
 
def gTerminate
 

Variables

string __version__ = '9.5.0'
 
string __date__ = '02/December/2011'
 
string __author__ = 'K.Murakami (Koichi.Murakami@kek.jp)'
 
tuple gRunManager = G4RunManager()
 
tuple gRunManagerKernel = G4RunManagerKernel.GetRunManagerKernel()
 
tuple gUImanager = G4UImanager.GetUIpointer()
 
tuple gEventManager = G4EventManager.GetEventManager()
 
tuple gStackManager = gEventManager.GetStackManager()
 
tuple gTrackingManager = gEventManager.GetTrackingManager()
 
tuple gStateManager = G4StateManager.GetStateManager()
 
tuple gExceptionHandler = G4ExceptionHandler()
 
tuple gGeometryManager = G4GeometryManager.GetInstance()
 
tuple gTransportationManager = G4TransportationManager.GetTransportationManager()
 
tuple gParticleTable = G4ParticleTable.GetParticleTable()
 
tuple gParticleIterator = PyG4ParticleList()
 
tuple gProcessTable = G4ProcessTable.GetProcessTable()
 
tuple gLossTableManager = G4LossTableManager.Instance()
 
tuple gProductionCutsTable = G4ProductionCutsTable.GetProductionCutsTable()
 
tuple gEmCalculator = G4EmCalculator()
 
tuple gMaterialTable = G4Material.GetMaterialTable()
 
tuple gElementTable = G4Element.GetElementTable()
 
tuple _material_class_list = dir(G4materials)
 
tuple _qfind = _material_class_list.count("G4NistManager")
 
tuple gNistManager = G4NistManager.Instance()
 
tuple _visdriver_list = dir(G4visualization)
 
string _q_opengl_ix = "G4OpenGLImmediateX"
 
string _q_opengl_sx = "G4OpenGLStoredX"
 
string _q_opengl_ixm = "G4OpenGLImmediateXm"
 
string _q_opengl_sxm = "G4OpenGLStoredXm"
 
string _q_raytracer_x = "G4RayTracerX"
 
tuple gVisManager = G4VisManager()
 
tuple _opengl_ix = G4OpenGLImmediateX()
 
tuple _opengl_sx = G4OpenGLStoredX()
 
tuple _opengl_ixm = G4OpenGLImmediateXm()
 
tuple _opengl_sxm = G4OpenGLStoredXm()
 
tuple _raytracer_x = G4RayTracerX()
 
tuple _vrml1 = G4VRML1File()
 
tuple _vrml2 = G4VRML2File()
 
tuple _dawn = G4DAWNFILE()
 
tuple _heprep_xml = G4HepRep()
 
tuple _heprep_file = G4HepRepFile()
 
tuple _atree = G4ASCIITree()
 
tuple _raytracer = G4RayTracer()
 
 gG4Version = G4Version
 
 gG4Date = G4Date
 
 gG4VERSION_NUMBER = G4VERSION_NUMBER
 
 gControlExecute = gUImanager.ExecuteMacroFile
 
 gApplyUICommand = G4intercoms.ApplyUICommand
 
 gGetCurrentValues = gUImanager.GetCurrentValues
 
 gStartUISession = G4interface.StartUISession
 

Detailed Description

# ==================================================================
#  [Geant4] module package
#
#  Welcome to Geant4Py.
#
#  This package contains a set of Python interface with Geant4.
# ==================================================================

Function Documentation

def python.gTerminate ( )

Definition at line 224 of file source/python/__init__.py.

Referenced by emcalc_gui.main().

225 def gTerminate():
226  gGeometryManager.OpenGeometry()
227 
228 
229 # ------------------------------------------------------------------
230 # signal handler
# ------------------------------------------------------------------
def python.print_version ( )

Definition at line 35 of file source/python/__init__.py.

References G4RunManager.GetRunManager(), and pyglobals.SetG4PyCoutDestination().

35 
36 def print_version():
37  print """=============================================================
38  Welcome to Geant4Py (A Geant4-Python Bridge)
39 
40  Version : %s
41  Date : %s
42  Contact : %s
43 =============================================================
44 """ % ( __version__, __date__, __author__)
45 
46 # ==================================================================
47 # initialize
48 # ==================================================================
49 # set G4cout/G4cerr to Python stdout
51 
52 # ==================================================================
53 # globals, which start with "g"
54 # ==================================================================
# gRunManager
void SetG4PyCoutDestination()
Definition: pyglobals.cc:50

Variable Documentation

string python.__author__ = 'K.Murakami (Koichi.Murakami@kek.jp)'

Definition at line 13 of file source/python/__init__.py.

string python.__date__ = '02/December/2011'

Definition at line 12 of file source/python/__init__.py.

string python.__version__ = '9.5.0'

Definition at line 11 of file source/python/__init__.py.

tuple python._atree = G4ASCIITree()

Definition at line 135 of file source/python/__init__.py.

tuple python._dawn = G4DAWNFILE()

Definition at line 132 of file source/python/__init__.py.

tuple python._heprep_file = G4HepRepFile()

Definition at line 134 of file source/python/__init__.py.

tuple python._heprep_xml = G4HepRep()

Definition at line 133 of file source/python/__init__.py.

tuple python._material_class_list = dir(G4materials)

Definition at line 104 of file source/python/__init__.py.

tuple python._opengl_ix = G4OpenGLImmediateX()

Definition at line 120 of file source/python/__init__.py.

tuple python._opengl_ixm = G4OpenGLImmediateXm()

Definition at line 124 of file source/python/__init__.py.

tuple python._opengl_sx = G4OpenGLStoredX()

Definition at line 122 of file source/python/__init__.py.

tuple python._opengl_sxm = G4OpenGLStoredXm()

Definition at line 126 of file source/python/__init__.py.

string python._q_opengl_ix = "G4OpenGLImmediateX"

Definition at line 111 of file source/python/__init__.py.

string python._q_opengl_ixm = "G4OpenGLImmediateXm"

Definition at line 113 of file source/python/__init__.py.

string python._q_opengl_sx = "G4OpenGLStoredX"

Definition at line 112 of file source/python/__init__.py.

string python._q_opengl_sxm = "G4OpenGLStoredXm"

Definition at line 114 of file source/python/__init__.py.

string python._q_raytracer_x = "G4RayTracerX"

Definition at line 115 of file source/python/__init__.py.

tuple python._qfind = _material_class_list.count("G4NistManager")

Definition at line 105 of file source/python/__init__.py.

tuple python._raytracer = G4RayTracer()

Definition at line 136 of file source/python/__init__.py.

tuple python._raytracer_x = G4RayTracerX()

Definition at line 128 of file source/python/__init__.py.

tuple python._visdriver_list = dir(G4visualization)

Definition at line 110 of file source/python/__init__.py.

tuple python._vrml1 = G4VRML1File()

Definition at line 130 of file source/python/__init__.py.

tuple python._vrml2 = G4VRML2File()

Definition at line 131 of file source/python/__init__.py.

python.gApplyUICommand = G4intercoms.ApplyUICommand

Definition at line 168 of file source/python/__init__.py.

Referenced by Lesson1.App.cmd_beamOn(), Lesson1withN03.App.cmd_beamOn(), ExN03.App.cmd_beamOn(), Lesson1.App.cmd_down(), Lesson1withN03.App.cmd_down(), Lesson1.App.cmd_energy(), Lesson1withN03.App.cmd_energy(), ExN03.App.cmd_energy(), Lesson1.App.cmd_expand(), Lesson1withN03.App.cmd_expand(), ExN03.App.cmd_expand(), Lesson1.App.cmd_g4command(), Lesson1withN03.App.cmd_g4command(), ExN03.App.cmd_g4command(), Lesson1.App.cmd_left(), Lesson1withN03.App.cmd_left(), ExN03.App.cmd_pan(), Lesson1.App.cmd_particle(), Lesson1withN03.App.cmd_particle(), ExN03.App.cmd_particle(), Lesson1.App.cmd_right(), Lesson1withN03.App.cmd_right(), Lesson1.App.cmd_shrink(), Lesson1withN03.App.cmd_shrink(), ExN03.App.cmd_shrink(), Lesson1.App.cmd_up(), Lesson1withN03.App.cmd_up(), ExN03.App.cmd_viewer(), Lesson1Wx.VisPanel.cmdDown(), Lesson2Wx.VisPanel.cmdDown(), Lesson1Wx.VisPanel.cmdExpand(), Lesson2Wx.VisPanel.cmdExpand(), Lesson1Wx.VisPanel.cmdLeft(), Lesson2Wx.VisPanel.cmdLeft(), Lesson1Wx.VisPanel.cmdRight(), Lesson2Wx.VisPanel.cmdRight(), Lesson1Wx.VisPanel.cmdShrink(), Lesson2Wx.VisPanel.cmdShrink(), Lesson1Wx.VisPanel.cmdUp(), Lesson2Wx.VisPanel.cmdUp(), read_gdml.MyDetectorConstruction.Construct(), test.MyDetectorConstruction.Construct(), Lesson1Wx.DumpTree(), Lesson1Wx.ComPanel.ExecuteCommand(), Lesson2Wx.ComPanel.ExecuteCommand(), demo.posXZ(), Lesson1Wx.MyApp.RunStart(), test.Setup3(), and test.MySteppingAction.UserSteppingAction().

python.gControlExecute = gUImanager.ExecuteMacroFile

Definition at line 167 of file source/python/__init__.py.

Referenced by Lesson1Wx.Configure(), test.Configure(), test_voxel.Configure(), Lesson1withN03.Configure(), Lesson1.Configure(), test.ConstructGeom(), test_voxel.ConstructGeom(), and test.MyField.GetFieldValue().

tuple python.gElementTable = G4Element.GetElementTable()

Definition at line 101 of file source/python/__init__.py.

tuple python.gEmCalculator = G4EmCalculator()

Definition at line 97 of file source/python/__init__.py.

tuple python.gEventManager = G4EventManager.GetEventManager()

Definition at line 65 of file source/python/__init__.py.

tuple python.gExceptionHandler = G4ExceptionHandler()

Definition at line 75 of file source/python/__init__.py.

python.gG4Date = G4Date

Definition at line 161 of file source/python/__init__.py.

python.gG4Version = G4Version

Definition at line 160 of file source/python/__init__.py.

python.gG4VERSION_NUMBER = G4VERSION_NUMBER

Definition at line 162 of file source/python/__init__.py.

tuple python.gGeometryManager = G4GeometryManager.GetInstance()

Definition at line 78 of file source/python/__init__.py.

python.gGetCurrentValues = gUImanager.GetCurrentValues

Definition at line 169 of file source/python/__init__.py.

tuple python.gLossTableManager = G4LossTableManager.Instance()

Definition at line 91 of file source/python/__init__.py.

tuple python.gMaterialTable = G4Material.GetMaterialTable()

Definition at line 100 of file source/python/__init__.py.

tuple python.gNistManager = G4NistManager.Instance()

Definition at line 107 of file source/python/__init__.py.

tuple python.gParticleIterator = PyG4ParticleList()

Definition at line 85 of file source/python/__init__.py.

tuple python.gParticleTable = G4ParticleTable.GetParticleTable()

Definition at line 84 of file source/python/__init__.py.

tuple python.gProcessTable = G4ProcessTable.GetProcessTable()

Definition at line 88 of file source/python/__init__.py.

tuple python.gProductionCutsTable = G4ProductionCutsTable.GetProductionCutsTable()

Definition at line 94 of file source/python/__init__.py.

tuple python.gRunManager = G4RunManager()

Definition at line 56 of file source/python/__init__.py.

tuple python.gRunManagerKernel = G4RunManagerKernel.GetRunManagerKernel()

Definition at line 59 of file source/python/__init__.py.

tuple python.gStackManager = gEventManager.GetStackManager()

Definition at line 68 of file source/python/__init__.py.

python.gStartUISession = G4interface.StartUISession

Definition at line 170 of file source/python/__init__.py.

tuple python.gStateManager = G4StateManager.GetStateManager()

Definition at line 74 of file source/python/__init__.py.

tuple python.gTrackingManager = gEventManager.GetTrackingManager()

Definition at line 71 of file source/python/__init__.py.

tuple python.gTransportationManager = G4TransportationManager.GetTransportationManager()

Definition at line 81 of file source/python/__init__.py.

tuple python.gUImanager = G4UImanager.GetUIpointer()

Definition at line 62 of file source/python/__init__.py.

tuple python.gVisManager = G4VisManager()

Definition at line 118 of file source/python/__init__.py.