Stack

class plasmapy.diagnostics.charged_particle_radiography.detector_stacks.Stack(layers: list[Layer])[source]

Bases: object

An ordered list of Layer objects.

Parameters:

layers (list of Layer) – The objects that make up the film stack.

Attributes Summary

num_active

The number of layers in the stack marked active.

num_layers

The number of layers in the stack.

thickness

The total thickness of the stack.

Methods Summary

deposition_curves(energies[, dx, ...])

Calculate the deposition of an ensemble of particles over a range of energies in a stack of films and filters.

energy_bands(energy_range, dE[, dx, ...])

Calculate the energy bands in each of the active layers of a film stack.

Attributes Documentation

num_active

The number of layers in the stack marked active.

num_layers

The number of layers in the stack.

thickness

The total thickness of the stack.

Methods Documentation

deposition_curves(energies: ~astropy.units.quantity.Quantity, dx=<Quantity 1. um>, return_only_active: bool = True)[source]

Calculate the deposition of an ensemble of particles over a range of energies in a stack of films and filters.

Parameters:
  • energies ((nenergies,) Quantity array) – Energies axis over which to calculate the deposition. Units convertible to J.

  • dx (Quantity, optional) – The spatial resolution of the numerical integration of the stopping power. Defaults to 1 μm.

  • return_only_active (bool, default: True) – If True, only the energy bands of layers in which the active property is True will be returned. This is usually desirable, since particles captured in other layers will not be measured. If False, energy bands in all layers of the stack are returned. The default is True.

Returns:

deposited – The fraction of particles at each energy that will be deposited in each layer of the film. The array is normalized such that the sum along the first dimension (all of the layers) for each population is unity.

Return type:

(nlayers, nenergies) ndarray

energy_bands(energy_range: ~astropy.units.quantity.Quantity, dE: ~astropy.units.quantity.Quantity, dx=<Quantity 1.e-06 m>, return_only_active: bool = True)[source]

Calculate the energy bands in each of the active layers of a film stack.

Parameters:
  • energy_range ((2,) Quantity array) – A range of energies to include in the calculation. Units convertible to eV.

  • dE (Quantity) – Spacing between energy bins in the calculation. Units convertible to J.

  • dx (Quantity, default: 1 μm) – The spatial resolution of the numerical integration of the stopping power. Passed directly to the deposition_curves method.

  • return_only_active (bool, default: True) – If True, only the energy bands of layers in which the active property is True will be returned. This is usually desirable, since particles captured in other layers will not be measured. If False, energy bands in all layers of the stack are returned.

Returns:

energy_bands – The full-width-half-max energy range of the Bragg peak in each active layer of the film stack, in J.

Return type:

(nlayers, 2) Quantity