source: trunk/environments/g4py/source/python/g4thread.py@ 1344

Last change on this file since 1344 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 663 bytes
RevLine 
[1337]1"""
2# ==================================================================
3# Python module
4#
5# Geant4 threading module
6#
7# Q, 2005
8# ==================================================================
9"""
10#$Id: g4thread.py,v 1.3 2008/12/03 07:01:04 kmura Exp $
11
12import thread
13from G4run import *
14
15# ------------------------------------------------------------------
16# BeamOn in a new thread
17# ------------------------------------------------------------------
18def _TBeamOn(self, nevent):
19 "generate events in a thread"
20 args = (nevent,)
21 thread.start_new_thread(self.BeamOn, args)
22
23G4RunManager.TBeamOn= _TBeamOn
24
Note: See TracBrowser for help on using the repository browser.