Import Geant4 8.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:44:26 +02:00
parent 8a51e0bc40
commit 216a75eeb1
8717 changed files with 360418 additions and 141343 deletions
@@ -0,0 +1,23 @@
#$Id: g4thread.py,v 1.2 2006/04/25 08:09:45 kmura Exp $
"""
# ==================================================================
# Python module
#
# Geant4 threading module
#
# Q, 2005
# ==================================================================
"""
import thread
from G4run import *
# ------------------------------------------------------------------
# BeamOn in a new thread
# ------------------------------------------------------------------
def TBeamOn(self, nevent):
"generate events in a thread"
args= (nevent,)
thread.start_new_thread(self.BeamOn, args)
G4RunManager.TBeamOn= TBeamOn