Geant4
10.03.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
g4thread.py
Go to the documentation of this file.
1
"""
2
# ==================================================================
3
# Python module
4
#
5
# Geant4 threading module
6
#
7
# Q, 2005
8
# ==================================================================
9
"""
10
#$Id: g4thread.py 66892 2013-01-17 10:57:59Z gunter $
11
12
import
thread
13
from
G4run
import
*
14
15
# ------------------------------------------------------------------
16
# BeamOn in a new thread
17
# ------------------------------------------------------------------
18
def
_TBeamOn(self, nevent):
19
"generate events in a thread"
20
args = (nevent,)
21
thread.start_new_thread(self.BeamOn, args)
22
23
G4RunManager.TBeamOn= _TBeamOn
24
source
geant4.10.03.p03
environments
g4py
source
python3
g4thread.py
Generated on Tue Nov 28 2017 21:43:42 for Geant4 by
1.8.5