summaryrefslogtreecommitdiff
path: root/event.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-16 17:10:58 -0400
committerStan Seibert <stan@mtrr.org>2011-08-16 17:10:58 -0400
commit85f9f1d23f74ed9679d879c32f7e3c72c7e7ce8f (patch)
tree555e80d5b94e6d65dd6386a591276a90ab188965 /event.py
parentc453b941faa31b29ad0ae5b4c755c174e29e686c (diff)
downloadchroma-85f9f1d23f74ed9679d879c32f7e3c72c7e7ce8f.tar.gz
chroma-85f9f1d23f74ed9679d879c32f7e3c72c7e7ce8f.tar.bz2
chroma-85f9f1d23f74ed9679d879c32f7e3c72c7e7ce8f.zip
Refactor sim.py into a reusable Simulation class that is called by the
main function(). Also cleanup more event data structure names and add an nphoton value that is preserved even if you prune off all the actual photon vertices.
Diffstat (limited to 'event.py')
-rw-r--r--event.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/event.py b/event.py
index bf7c007..5b93f17 100644
--- a/event.py
+++ b/event.py
@@ -46,6 +46,7 @@ class Event(object):
self.gen_total_energy = gen_total_energy
self.subtracks = []
+ self.nphoton = 0
self.photon_start = None
self.photon_stop = None
self.channels = None