diff options
-rwxr-xr-x | sim.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -28,7 +28,7 @@ def info(type, value, tb): sys.excepthook = info -class GeneratorThread(multiprocessing.Process): +class GeneratorProcess(multiprocessing.Process): def __init__(self, particle, energy, position, direction, nevents, material): multiprocessing.Process.__init__(self) @@ -114,12 +114,12 @@ def main(): print >>sys.stderr, 'Creating generator...' detector_material = optics.water - generator_thread = GeneratorThread(particle=options.particle, - energy=options.energy, - position=position, - direction=direction, - nevents=options.nevents, - material=detector_material) + generator_thread = GeneratorProcess(particle=options.particle, + energy=options.energy, + position=position, + direction=direction, + nevents=options.nevents, + material=detector_material) print >>sys.stderr, 'WARNING: ASSUMING DETECTOR IS WATER!!' # Do this now so we can get ahead of the photon propagation |