diff options
-rw-r--r-- | chroma/event.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chroma/event.py b/chroma/event.py index a2b99cc..5f7c4c7 100644 --- a/chroma/event.py +++ b/chroma/event.py @@ -1,5 +1,15 @@ import numpy as np +# Photon history bits (see photon.h for source) +NO_HIT = 0x1 << 0, +BULK_ABSORB = 0x1 << 1, +SURFACE_DETECT = 0x1 << 2, +SURFACE_ABSORB = 0x1 << 3, +RAYLEIGH_SCATTER = 0x1 << 4, +REFLECT_DIFFUSE = 0x1 << 5, +REFLECT_SPECULAR = 0x1 << 6, +NAN_ABORT = 0x1 << 31 + class Vertex(object): def __init__(self, particle_name, pos, dir, ke, t0=0.0, pol=None): self.particle_name = particle_name |