diff options
Diffstat (limited to 'generator/photon.py')
-rw-r--r-- | generator/photon.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/generator/photon.py b/generator/photon.py index dcfc292..dacc847 100644 --- a/generator/photon.py +++ b/generator/photon.py @@ -1,6 +1,5 @@ import g4gen import multiprocessing -import threading import numpy as np import itertools @@ -22,16 +21,6 @@ class G4GeneratorProcess(multiprocessing.Process): ev.photon_start = gen.generate_photons(ev) self.output_queue.put(ev) -class G4VertexGeneratorProcess(multiprocessing.Process): - def __init__(self, vertex_iterator, queue): - multiprocessing.Process.__init__(self) - self.vertex_iterator = vertex_iterator - self.queue = queue - - def run(self): - for ev in self.vertex_iterator: - self.queue.put(ev) - def partition(num, partitions): '''Generator that returns num//partitions, with the last item including the remainder. |