Example #1
0
    def __init__(self, elastic_scattering=(0.0, 0.0),
                 cutoff_energy_inelastic=50.0,
                 cutoff_energy_bremsstrahlung=50.0,
                 interaction_forcings=None,
                 maximum_step_length_m=1e20):
        """
        Converter from base options to PENEPMA options.

        During the conversion, the materials are converted to :class:`PenelopeMaterial`.
        For this, the specified elastic scattering and cutoff energies are used
        as the default values in the conversion.
        """
        _Converter.__init__(self)

        self._elastic_scattering = elastic_scattering
        self._cutoff_energy_inelastic_eV = cutoff_energy_inelastic
        self._cutoff_energy_bremsstrahlung_eV = cutoff_energy_bremsstrahlung
        self._interaction_forcings = interaction_forcings or []
        self._maximum_step_length_m = maximum_step_length_m
    def __init__(self):
        _Converter.__init__(self)

        self._expander = OptionsExpanderSingleDetectorSameOpening(self.DETECTORS)
Example #3
0
    def __init__(self):
        _Converter.__init__(self)

        self._expander = OptionsExpanderSingleDetectorSameOpening(
            self.DETECTORS)