Photons¶
Photon ¶
Photon(particle: Dict[int, Particle], track: Track, em_cascade: EM_Cascade, hadron_cascade: Hadron_Cascade)
Cherenkov photon yield calculator.
Calculates photon production for tracks and cascades, including wavelength-dependent yields and angular distributions.
Attributes:
| Name | Type | Description |
|---|---|---|
_medium |
str
|
Medium name |
_n |
float
|
Refractive index |
_alpha |
float
|
Fine structure constant |
_charge |
float
|
Elementary charge |
_wavelengths |
ndarray
|
Wavelength grid in nm |
_angle_grid |
ndarray
|
Angular grid in degrees |
_zgrid |
ndarray
|
Depth grid in cm |
Examples:
Notes
- Handles tracks (muons), EM cascades (e±, γ), and hadronic cascades
- Supports both NumPy and JAX backends
- Integrates all cascade components
Initialize the photon calculator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
particle
|
dict of {int: Particle}
|
Dictionary of particle objects keyed by PDG ID |
required |
track
|
Track
|
Track calculator instance |
required |
em_cascade
|
EM_Cascade
|
EM cascade calculator instance |
required |
hadron_cascade
|
Hadron_Cascade
|
Hadron cascade calculator instance |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If distribution type not implemented |