olympus.event_generation.photon_source
Classes:
-
PhotonSource–Representation of a single point-like photon source.
-
PhotonSourceType–Enum for photon source types.
PhotonSource
PhotonSource(position, n_photons, time, direction, type=PhotonSourceType.STANDARD_CHERENKOV)
Bases: object
Representation of a single point-like photon source.
| Parameters: |
|
|---|
Parameters are stored as instance attributes.
Source code in olympus/event_generation/photon_source.py
def __init__(
self,
position,
n_photons,
time,
direction,
type=PhotonSourceType.STANDARD_CHERENKOV,
):
"""Initialize the PhotonSource instance.
Parameters are stored as instance attributes.
"""
self.position = position
self.n_photons = n_photons
self.time = time
self.direction = direction
self.type = type
PhotonSourceType
Bases: Enum
Enum for photon source types.