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: BaseEmittersDistribution

Jet-coupled emitter distribution for electrons or protons.

Notes

Extends BaseEmittersDistribution with 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.

set_parameters_dict()

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.

set_jet(jet)[source]#

Set jet.

Parameters:

jet (object) – Jet model instance.

set_parameters_dict()[source]#

Build default parameter dictionary and mirrored parameter array.

Notes

Values are initialized according to emitter type and distribution class.

update()[source]#

Refresh distribution values and sync with jet backend state.

Notes

In equilibrium mode this triggers backend readback instead of direct analytical filling.