Hadron Cascades¶
Hadron_Cascade ¶
Hadronic cascade light yield calculator.
Calculates Cherenkov light production from hadronic showers using the Aachen parametrization. Handles charged pions, kaons, protons, and neutrons with electromagnetic fraction and muon production.
Attributes:
| Name | Type | Description |
|---|---|---|
_medium |
dict
|
Medium properties dictionary |
_n |
float
|
Refractive index |
_radlength |
float
|
Radiation length in g/cm² |
_Lrad |
float
|
Radiation length in cm |
_params |
dict
|
Parametrization coefficients |
cherenkov_angle_distro |
Callable
|
Angular distribution calculator |
track_lengths |
Callable
|
Track length calculator |
long_profile |
Callable
|
Longitudinal profile calculator |
em_fraction |
Callable
|
EM fraction calculator |
muon_production |
Callable
|
Muon production calculator |
Examples:
>>> from fennel.hadron_cascades import Hadron_Cascade
>>> had = Hadron_Cascade()
>>> track_len, track_dev = had.track_lengths(100.0, particle=211)
>>> em_frac = had.em_fraction(100.0, particle=211)
Notes
- Parametrization based on GEANT4 simulations
- Accounts for EM fraction and muon production
- Supports both NumPy and JAX backends
Initialize the hadronic cascade calculator.
Loads parametrization data and muon production splines, configures calculation methods based on JAX availability.
Raises:
| Type | Description |
|---|---|
ValueError
|
If parametrization is not implemented or muon data not found |
ImportError
|
If JAX mode enabled but not installed |
Source code in fennel/hadron_cascades.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |