summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-09 18:57:56 -0400
committerStan Seibert <stan@mtrr.org>2011-08-09 18:57:56 -0400
commitb3e836f1d9e7791fb797f6d2738441d392f8ce30 (patch)
tree7052e9af769d7e8181257ec01eea8948cfd6e24d
parent851e1d71af111e1eee0f28ecd1daa355ee666da7 (diff)
downloadchroma-b3e836f1d9e7791fb797f6d2738441d392f8ce30.tar.gz
chroma-b3e836f1d9e7791fb797f6d2738441d392f8ce30.tar.bz2
chroma-b3e836f1d9e7791fb797f6d2738441d392f8ce30.zip
Bug fix that caused sim.py to only record hits on the first 3 PMTs
-rwxr-xr-xsim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim.py b/sim.py
index c8f9fdb..0d775f4 100755
--- a/sim.py
+++ b/sim.py
@@ -72,7 +72,7 @@ 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['t'], hits['q'], hits['history'])
+ root.fill_hits(ev, len(hits['t']), hits['t'], hits['q'], hits['history'])
T.Fill()
#@profile