diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-09 16:39:59 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-09 16:39:59 -0400 |
commit | 6870f1f5695c7cca3ed8e0a1cf559245991c80b5 (patch) | |
tree | 184fbbbb7cf2d44607dd192b34c0c5455d8cdcf5 /sim.py | |
parent | 4f3e0b7709bb64ffc24f2a003509d5f480848239 (diff) | |
parent | 5b478fe72e600e06cd7b2e8a05a600f30c44d5c0 (diff) | |
download | chroma-6870f1f5695c7cca3ed8e0a1cf559245991c80b5.tar.gz chroma-6870f1f5695c7cca3ed8e0a1cf559245991c80b5.tar.bz2 chroma-6870f1f5695c7cca3ed8e0a1cf559245991c80b5.zip |
merge heads
Diffstat (limited to 'sim.py')
-rwxr-xr-x | sim.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -72,9 +72,10 @@ def write_event(T, ev, event_id, hits, photon_start=None, photon_stop=None): photons['wavelength'], photons['t0'], photons['histories'], photons['last_hit_triangles']) - root.fill_hits(ev, len(hits), hits) + root.fill_hits(ev, len(hits), hits['t'], hits['q'], hits['history']) T.Fill() +#@profile def main(): parser = optparse.OptionParser('%prog') parser.add_option('-b', type='int', dest='nbits', default=10) @@ -159,7 +160,7 @@ def main(): gpu_worker.load_photons(**photons) gpu_worker.propagate() gpu_worker.run_daq() - hit_times = gpu_worker.get_hits() + hits = gpu_worker.get_hits() if options.save_photon_start: photon_start = photons @@ -170,7 +171,7 @@ def main(): else: photon_stop = None - write_event(T, ev, i, hit_times, + write_event(T, ev, i, hits, photon_start=photon_start, photon_stop=photon_stop) if i % 10 == 0: print >>sys.stderr, "\rEvent:", i, |