ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
g4py
examples
source
boost
digits_hits
event
gdml
geometry
global
graphics_reps
intercoms
interface
materials
particles
physics_lists
processes
run
track
tracking
visualization
__init__.py
colortable.py
g4thread.py
g4viscp.py
hepunit.py
tests
zmq
examples
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
g4thread.py
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file g4thread.py
1
"""
2
# ==================================================================
3
# Python module
4
#
5
# Geant4 threading module
6
#
7
# Q, 2005
8
# ==================================================================
9
"""
10
11
import
thread
12
from
G4run
import
*
13
14
# ------------------------------------------------------------------
15
# BeamOn in a new thread
16
# ------------------------------------------------------------------
17
def
_TBeamOn
(self, nevent):
18
"generate events in a thread"
19
args = (nevent,)
20
thread.start_new_thread(self.BeamOn, args)
21
22
G4RunManager.TBeamOn= _TBeamOn
23
geant4
tree
geant4-10.6-release
environments
g4py
source
g4thread.py
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:52
using
1.8.2 with
ECCE GitHub integration