From fb69b3c60399a614b225591c071143fb8bbdd58f Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 5 Aug 2011 22:48:55 -0400 Subject: Run a short dummy GEANT4 event to force it to load the tables before the timer starts on the real events. --- sim.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sim.py b/sim.py index 6432e7d..b8deef6 100755 --- a/sim.py +++ b/sim.py @@ -74,6 +74,14 @@ if __name__ == '__main__': gpu_worker.setup_propagate() gpu_worker.setup_daq(max(detector.pmtids)) + print >>sys.stderr, 'Loading tables in GEANT4...' + # Do easy event to force tables to load, throw away photons + generator.generate_photons(particle_name='e-', + total_energy=1.5, + position=(0,0,0), + direction=(1,0,0)) + + # Create output file f = ROOT.TFile(output_filename, 'RECREATE') ev, T = root.make_tree('T') -- cgit