EmittersDistribution#
- class jetset.jet_emitters.EmittersDistribution(name, spectral_type, jet=None, gamma_grid_size=200, log_values=False, emitters_type='electrons', normalize=False, skip_build=False)[source]#
Bases:
BaseEmittersDistributionJet-coupled emitter distribution for electrons or protons.
Notes
Extends
BaseEmittersDistributionwith synchronization to the jet backend blob, including equilibrium readback paths and jet-kernel parameter dictionary integration.Methods Summary
add_par(name, par_type, val, vmax, vmin[, ...])Add par.
set_grid()Build gamma grid either analytically or from jet backend arrays.
set_grid_size(gamma_grid_size)Set grid size.
set_jet(jet)Set jet.
Build default parameter dictionary and mirrored parameter array.
update()Refresh distribution values and sync with jet backend state.
Methods Documentation
- add_par(name, par_type, val, vmax, vmin, unit='', log=False, frozen=False)[source]#
Add par.
- Parameters:
name (object) – Name identifier.
par_type (object) – Parameter type/category label.
val (object) – Value to assign.
vmax (object) – Maximum allowed value.
vmin (object) – Minimum allowed value.
unit (str, optional) – Physical unit string.
log (bool, optional) – If
True, treat the value in log10 units.frozen (bool, optional) – If
True, keep parameter fixed during fitting.
- set_grid()[source]#
Build gamma grid either analytically or from jet backend arrays.
Notes
When attached to a jet, the grid is read from jetkernel memory.
- set_grid_size(gamma_grid_size)[source]#
Set grid size.
- Parameters:
gamma_grid_size (object) – Number of points in the gamma grid.