<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Phys.</journal-id>
<journal-title>Frontiers in Physics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Phys.</abbrev-journal-title>
<issn pub-type="epub">2296-424X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">738735</article-id>
<article-id pub-id-type="doi">10.3389/fphy.2021.738735</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Physics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>The PENELOPE Physics Models and Transport Mechanics. Implementation into Geant4</article-title>
<alt-title alt-title-type="left-running-head">Asai et&#x20;al.</alt-title>
<alt-title alt-title-type="right-running-head">PENELOPE Physics in Geant4</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Asai</surname>
<given-names>Makoto</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1366749/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Cort&#xe9;s-Giraldo</surname>
<given-names>Miguel A.</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/952595/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Gim&#xe9;nez-Alventosa</surname>
<given-names>Vicent</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Gim&#xe9;nez G&#xf3;mez</surname>
<given-names>Vicent</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1487546/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Salvat</surname>
<given-names>Francesc</given-names>
</name>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1391496/overview"/>
</contrib>
</contrib-group>
<aff id="aff1">
<label>
<sup>1</sup>
</label>SLAC National Accelerator Laboratory, <addr-line>Menlo Park</addr-line>, <addr-line>CA</addr-line>, <country>United&#x20;States</country>
</aff>
<aff id="aff2">
<label>
<sup>2</sup>
</label>Dep. de F&#xed;sica At&#xf3;mica, Molecular y Nuclear, Universidad de Sevilla, <addr-line>Sevilla</addr-line>, <country>Spain</country>
</aff>
<aff id="aff3">
<label>
<sup>3</sup>
</label>I3M Instituto de Instrumentaci&#xf3;n para Imagen Molecular, CSIC-Universitat Polit&#xe8;cnica de Val&#xe8;ncia, <addr-line>Val&#xe8;ncia</addr-line>, <country>Spain</country>
</aff>
<aff id="aff4">
<label>
<sup>4</sup>
</label>Dep. F&#xed;sica Te&#xf2;rica and IFIC, Universitat de Val&#xe8;ncia-CSIC, <addr-line>Burjassot</addr-line>, <country>Spain</country>
</aff>
<aff id="aff5">
<label>
<sup>5</sup>
</label>Facultat de F&#xed;sica (FQA and ICC), Universitat de Barcelona, <addr-line>Barcelona</addr-line>, <country>Spain</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/975881/overview">Laurent Ottaviani</ext-link>, Aix-Marseille Universit&#xe9;, France</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1323817/overview">Matteo Duranti</ext-link>, Istituto Nazionale di Fisica Nucleare di Perugia, Italy</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1273025/overview">Tuba Conka Yildiz</ext-link>, T&#xfc;rkisch-Deutsche Universit&#xe4;t, Turkey</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Miguel A. Cort&#xe9;s-Giraldo, <email>miancortes@us.es</email>; Francesc Salvat, <email>francesc.salvat@ub.edu</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Radiation Detectors and Imaging, a section of the journal Frontiers in Physics</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>14</day>
<month>12</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>9</volume>
<elocation-id>738735</elocation-id>
<history>
<date date-type="received">
<day>09</day>
<month>07</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>18</day>
<month>10</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Asai, Cort&#xe9;s-Giraldo, Gim&#xe9;nez-Alventosa, Gim&#xe9;nez G&#xf3;mez and Salvat.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Asai, Cort&#xe9;s-Giraldo, Gim&#xe9;nez-Alventosa, Gim&#xe9;nez G&#xf3;mez and Salvat</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>A translation of the <sc>penelope</sc> physics subroutines to C&#x2b;&#x2b;, designed as an extension of the G<sc>eant</sc>4 toolkit, is presented. The Fortran code system <sc>penelope</sc> performs Monte Carlo simulation of coupled electron-photon transport in arbitrary materials for a wide energy range, nominally from 50&#xa0;eV up to 1&#xa0;GeV. P<sc>enelope</sc> implements the most reliable interaction models that are currently available, limited only by the required generality of the code. In addition, the transport of electrons and positrons is simulated by means of an elaborate class II scheme in which hard interactions (involving deflection angles or energy transfers larger than pre-defined cutoffs) are simulated from the associated restricted differential cross sections. After a brief description of the interaction models adopted for photons and electrons/positrons, we describe the details of the class-II algorithm used for tracking electrons and positrons. The C&#x2b;&#x2b; classes are adapted to the specific code structure of G<sc>eant</sc>4. They provide a complete description of the interactions and transport mechanics of electrons/positrons and photons in arbitrary materials, which can be activated from the G4ProcessManager to produce simulation results equivalent to those from the original <sc>penelope</sc> programs. The combined code, named P<sc>en</sc>G4, benefits from the multi-threading capabilities and advanced geometry and statistical tools of G<sc>eant</sc>4.</p>
</abstract>
<kwd-group>
<kwd>coupled electron-photon transport</kwd>
<kwd>Monte Carlo simulation</kwd>
<kwd>PENELOPE code system</kwd>
<kwd>random-hinge method</kwd>
<kwd>G<sc>eant</sc>4 toolkit</kwd>
</kwd-group>
<contract-sponsor id="cn001">Ministerio de Ciencia, Innovaci&#xf3;n y Universidades<named-content content-type="fundref-id">10.13039/100014440</named-content>
</contract-sponsor>
<contract-sponsor id="cn002">Conselleria de Cultura, Educaci&#xf3;n y Ciencia, Generalitat Valenciana<named-content content-type="fundref-id">10.13039/501100014849</named-content>
</contract-sponsor>
<contract-sponsor id="cn003">Conselleria de Innovaci&#xf3;n, Universidades, Ciencia y Sociedad Digital, Generalitat Valenciana<named-content content-type="fundref-id">10.13039/501100016386</named-content>
</contract-sponsor>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Monte Carlo simulation has become the tool of choice for describing the transport of radiation through matter. The general-purpose code system <sc>penelope</sc>
<xref ref-type="fn" rid="FN1">
<sup>1</sup>
</xref> [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>] provides a reliable description of the coupled transport of electrons and photons in a wide energy range, nominally, from 50&#xa0;eV up to 1&#xa0;GeV, which are the lower and upper limits of the interval covered by the interaction database. However, the approximations underlying the interaction models and the tracking algorithm are expected to be valid only for energies larger than about 1&#xa0;keV. Therefore, the results from simulations of particles with energies less than this value should be considered as semi-quantitative. The code has been used in a variety of applications, including dosimetry, radiation metrology, radiotherapy, detector characterization, electron microscopy and microanalysis, and x-ray fluorescence. After more than 25&#xa0;years of development guided by user needs and physics improvements, <sc>penelope</sc> has become a robust and versatile simulation tool with unique capabilities in electron transport. Direct evidence of the reliability of the code was given by a series of benchmark comparisons of simulation results with a variety of absolute measurement data from the literature&#x20;[<xref ref-type="bibr" rid="B3">3</xref>].</p>
<p>The <sc>penelope</sc> code is programmed in Fortran, mostly in Fortran 77 with a few extensions of Fortran 90. The original programs are readable and well documented, with abundance of comments, and are accompanied by a detailed manual [<xref ref-type="bibr" rid="B2">2</xref>] where the physics models, particle tracking scheme, and numerical sampling methods are described. However the Fortran programs do not allow running parallel simulations (only a manual process is provided to run independent simulations in different processing units, with a summing program to collect the results in a single set of output files). In addition, the Fortran subroutines are difficult to link to other simulation codes. The C&#x2b;&#x2b; code presented here is a strict translation of the original Fortran subroutines, which can be linked to G<sc>eant</sc>4 [<xref ref-type="bibr" rid="B4">4</xref>&#x2013;<xref ref-type="bibr" rid="B6">6</xref>] so as to make the <sc>penelope</sc> physics available as part of the G<sc>eant</sc>4 toolkit, and to take advantage of the multi-threading capabilities and advanced geometry and statistical tools of G<sc>eant</sc>4.</p>
<p>The subroutine package <sc>penelope</sc> is designed as a generator of random electron-photon showers in material media of infinite extent. In the simulations, all position and direction vectors refer to a fixed orthogonal frame, the laboratory frame, which is implicitly set through the geometry definition. Lengths and energies are given in cm and eV, respectively. Occasionally, directions (unit vectors, <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>) are specified by giving their polar and azimuthal angles, <italic>&#x3b8;</italic> and <italic>&#x3d5;</italic>, respectively. We have<disp-formula id="e1">
<mml:math id="m2">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>sin</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>sin</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi>sin</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>where <italic>u</italic>, <italic>v</italic>, <italic>w</italic> are the Cartesian components (direction cosines) of the vector <inline-formula id="inf2">
<mml:math id="m3">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>. The state of a transported particle is determined by its energy <italic>E</italic>, position coordinates, <bold>r</bold> &#x3d; (<italic>x</italic>, <italic>y</italic>, <italic>z</italic>), and the unit vector <inline-formula id="inf3">
<mml:math id="m4">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> in the direction of flight. The physics simulation subroutines generate each particle history as a random sequence of free flights and interactions. The length <italic>s</italic> of the free flight, the kind of interaction that occurs at the end of the flight, as well as the energy loss <italic>W</italic> and the angular deflection &#x3a9; &#x3d; (<italic>&#x3b8;</italic>, <italic>&#x3d5;</italic>) caused by that interaction, are sampled randomly from appropriate probability density functions determined by the differential cross sections of the active interaction processes.</p>
<p>The type of particles that are transported is identified by the value of the integer label <monospace>KPAR</monospace> ( &#x3d; 1, electron; 2, photon; 3, positron). Each particle trajectory is simulated from its initial state <inline-formula id="inf4">
<mml:math id="m5">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="bold">r</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mo>,</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> until its energy becomes less than the corresponding absorption energy <inline-formula id="inf5">
<mml:math id="m6">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> selected by the user, where the simulation of the trajectory terminates. Secondary particles with energies larger than <inline-formula id="inf6">
<mml:math id="m7">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> may be released in interactions (other than Rayleigh scattering of photons and elastic scattering of electrons and positrons), as well as in the relaxation of atoms following inner-shell ionization (x-rays and Auger electrons). Secondary particles are initially stored in a LIFO (last-in-first-out) stack, and they are simulated after completion of the current particle trajectory.</p>
<p>The present article is organized as follows. The physics interaction models implemented in <sc>penelope</sc> are briefly described in <xref ref-type="sec" rid="s2">Section 2</xref>. <xref ref-type="sec" rid="s3">Section 3</xref> deals with the generation of electron-photon showers. Photons are simulated by means of the conventional detailed (<italic>i.e.</italic>, interaction-by-interaction) method. The tracking of electrons and positrons is performed by means of a flexible class-II (mixed) algorithm, which is tuned by a small number of user-defined simulation parameters. The algorithm is tailored to optimize accuracy (<italic>i.e.</italic>, consistency with detailed simulation) and stability under variations of the simulation parameters. Since the <sc>penelope</sc> approach has clear advantages in front of the condensed multiple-scattering schemes adopted in most general-purpose Monte Carlo codes, we present a detailed formulation of the class-II algorithm, which is extensible to simulate the transport of charged particles other than electrons and positrons. The C&#x2b;&#x2b; version of the <sc>penelope</sc> classes and their linking to G<sc>eant</sc>4 are described in <xref ref-type="sec" rid="s4">Section 4</xref>. Sample simulation results are presented in <xref ref-type="sec" rid="s5">Section 5</xref>, where we also verify the consistency of the integration of <sc>penelope</sc> into G<sc>eant</sc>4 with the original Fortran programs. Finally, in <xref ref-type="sec" rid="s6">Section 6</xref> we give a few concluding comments.</p>
</sec>
<sec id="s2">
<title>2 Interaction Models</title>
<p>The materials where radiation propagates are assumed to be amorphous, homogeneous and isotropic. P<sc>enelope</sc> describes the relevant interactions of transported particles by means of the corresponding differential cross sections (DCSs). In a typical collision measurement, projectile particles with energy <italic>E</italic> moving in the direction <inline-formula id="inf7">
<mml:math id="m8">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">z</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> impinge on the target and, after the interaction, they emerge with energy <italic>E</italic>&#x20;&#x2212; <italic>W</italic> in the direction <bold>d</bold>&#x2032; defined by the polar and azimuthal scattering angles <italic>&#x3b8;</italic> and <italic>&#x3d5;</italic>, respectively. The quantity <italic>W</italic> is the energy transfer in the interaction. Each interaction process (int) is defined by its &#x201c;molecular&#x201d; DCS per unit energy transfer and per unit solid angle,<disp-formula id="e2">
<mml:math id="m9">
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>;</mml:mo>
<mml:mi>W</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(2)</label>
</disp-formula>where <italic>&#x3c3;</italic>
<sub>int</sub>(<italic>E</italic>) is the total cross section,<disp-formula id="e3">
<mml:math id="m10">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>&#x222b;</mml:mo>
<mml:mtext>d</mml:mtext>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(3)</label>
</disp-formula>and <italic>p</italic>
<sub>int</sub>(<italic>E</italic>; <italic>W</italic>, <italic>&#x3b8;</italic>, <italic>&#x3d5;</italic>) is the normalized joint probability density function of the energy transfer and the scattering angles <italic>&#x3b8;</italic> and <italic>&#x3d5;</italic>. Because of the assumed isotropy of the medium, the DCSs are generally independent of the azimuthal angle; the only exceptions are the DCSs for interactions of polarized photons. For simulation purposes, it is convenient to replace the polar angle <italic>&#x3b8;</italic> with the variable<disp-formula id="e4">
<mml:math id="m11">
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(4)</label>
</disp-formula>which varies from 0 (<italic>&#x3b8;</italic> &#x3d; 0) to 1 (<italic>&#x3b8;</italic> &#x3d; <italic>&#x3c0;</italic>). Notice that the element of solid angle is d&#x3a9; &#x3d;&#x2009; sin&#x2009;<italic>&#x3b8;</italic> d<italic>&#x3b8;</italic> d<italic>&#x3d5;</italic> &#x3d; 2&#x20;d<italic>&#x3bc;</italic> d<italic>&#x3d5;</italic>. The DCS, per unit energy transfer and per unit deflection is then<disp-formula id="e5">
<mml:math id="m12">
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2</mml:mn>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3d5;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>4</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(5)</label>
</disp-formula>The last expression is valid only when scattering is axially symmetric, in which case the azimuthal angle is a random variable uniformly distributed in [0, 2<italic>&#x3c0;</italic>).</p>
<p>The mean free path between interactions is<disp-formula id="e6">
<mml:math id="m13">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(6)</label>
</disp-formula>
<inline-formula id="inf8">
<mml:math id="m14">
<mml:mi mathvariant="script">N</mml:mi>
</mml:math>
</inline-formula> is the number of molecules per unit volume, given by<disp-formula id="e7">
<mml:math id="m15">
<mml:mi mathvariant="script">N</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>A</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(7)</label>
</disp-formula>where <italic>N</italic>
<sub>A</sub> &#x3d; 6.022 141&#x20;29 &#xd7; 10<sup>23</sup>&#xa0;g/mol is Avogadro&#x2019;s number, <italic>&#x3c1;</italic> is the mass density (g/cm<sup>3</sup>), and <italic>A</italic>
<sub>m</sub> is the molar mass (g/mol) of the material. The inverse mean free path <inline-formula id="inf9">
<mml:math id="m16">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>int</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> gives the interaction probability per unit path length of the projectile.</p>
<p>The interaction models implemented in <sc>penelope</sc> combine results from first-principles calculations, semi-empirical formulas and evaluated databases. The DCS of each interaction mechanism is either defined numerically or given by an analytical formula with parameters fitted to relevant theoretical or experimental information. <sc>Penelope</sc> uses the most accurate physics models available that are compatible with the intended generality of the&#x20;code.</p>
<p>Most of the physics models pertain to interactions with free atoms or with single-element materials. In the case of a compound (or mixture), the molecular DCS is obtained by means of the independent-atom approximation (<italic>i.e.</italic>, as the sum of DCSs of the atoms in a molecule). This approximation is expected to be valid whenever the de Broglie wave length of the radiation is much shorter than typical inter-atomic distances in the material. Inelastic collisions of charged particles are peculiar in that they are dominated by excitations of weakly bound electrons and, hence, they are strongly affected by the state of aggregation of the material. The DCS for inelastic collisions is obtained from an analytical model with parameters determined by the mass density <italic>&#x3c1;</italic> and the mean excitation energy <italic>I</italic> of the material, the central parameter in the Bethe stopping power formula [<xref ref-type="bibr" rid="B7">7</xref>, <xref ref-type="bibr" rid="B8">8</xref>]. Empirical <italic>I</italic> values of materials [<xref ref-type="bibr" rid="B9">9</xref>] are used, so as to account approximately for the aggregation state of the material.</p>
<p>The <sc>penelope</sc> code system includes an extensive database of atomic DCSs and total (integrated) cross sections, for all elements in the periodic system, from hydrogen (<italic>Z</italic>&#x20;&#x3d; 1) to einsteinium (<italic>Z</italic>&#x20;&#x3d; 99), covering the energy range from 50&#xa0;eV to 1&#xa0;GeV. In the following Subsections we give a brief description of the interaction models adopted for photons and electrons/positrons. Further details on the physics models, and a thorough description of sampling methods for the different interaction mechanisms, are given in the <sc>penelope</sc> manual [<xref ref-type="bibr" rid="B2">2</xref>]. References to the underlying theory and calculations can also be found in the review article by Salvat and Fern&#xe1;ndez-Varea&#x20;[<xref ref-type="bibr" rid="B10">10</xref>].</p>
<sec id="s2-1">
<title>2.1 Photon Interactions</title>
<p>The considered interactions of photons and the corresponding physics models are:</p>
<p>
<list list-type="simple">
<list-item>
<p>&#x2022; <italic>Rayleigh scattering (Ra).</italic> The DCS for the coherent scattering of unpolarized photons by atoms is a function of the polar angle <italic>&#x3b8;</italic> of the direction of the scattered photon. It is expressed as the product of the Thomson DCS (which describes the scattering of electromagnetic waves by free electrons at rest) and the squared modulus of the atomic form factor plus angle-independent anomalous scattering factors [<xref ref-type="bibr" rid="B11">11</xref>]. The atomic form factors and the total (integrated) atomic cross sections are taken from the LLNL Evaluated Photon Data Library [<xref ref-type="bibr" rid="B12">12</xref>]. The direction of the scattered photon is sampled from the DCS in the form-factor approximation, <italic>i.e.</italic>, disregarding the anomalous scattering factors.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Compton scattering (Co).</italic> The atomic DCS for the incoherent scattering of photons by atoms depends on the direction and energy <italic>E</italic>&#x2032; of the scattered photon. It is calculated from the relativistic impulse approximation with analytical one-electron Compton profiles [<xref ref-type="bibr" rid="B13">13</xref>] that approach the numerical Hartree-Fock Compton profiles given by Biggs <italic>et&#x20;al.</italic> [<xref ref-type="bibr" rid="B14">14</xref>]. This approximation accounts for the effect of electron binding and Doppler broadening in a consistent way. The total atomic cross section is obtained as the sum of contributions of the various electron subshells. In the case of conductors, conduction electrons are assumed to behave as a degenerate electron gas having the electron density of the conduction band. The DCS for Compton scattering is a function of the energy transfer <italic>W</italic>&#x20;&#x3d; <italic>E</italic>&#x20;&#x2212; <italic>E</italic>&#x2032; and the polar angle <italic>&#x3b8;</italic> of the direction of the scattered photon.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Photoelectric absorption (ph).</italic> The photoelectric effect is described by using total atomic cross sections, and partial cross sections for the K shell and L, M, and N subshells of neutral atoms, which were calculated by using conventional first-order perturbation theory [<xref ref-type="bibr" rid="B15">15</xref>]. In these calculations (as well as in those of impact ionization by electron and positron impact, <italic>see</italic> below), atomic wave functions are represented as single Slater determinants built with one-electron orbitals that are solutions of the Dirac equation for the Dirac-Hartree-Fock-Slater self-consistent potential [<xref ref-type="bibr" rid="B16">16</xref>, <xref ref-type="bibr" rid="B17">17</xref>]. The cross sections in the database account only for ionization, <italic>i.e.</italic>, contributions from excitations of atoms to discrete bound energy levels are disregarded. Additionally, the photon energy was shifted slightly so that the shell ionization thresholds coincide with the electron binding energies recommended by Carlson [<xref ref-type="bibr" rid="B18">18</xref>], which were obtained from a combination of experimental data and theoretical calculations. Our cross sections practically coincide with those in the LLNL Evaluated Photon Data Library [<xref ref-type="bibr" rid="B12">12</xref>], although they are tabulated in a denser grid of energies to accurately describe the structure of the cross section near absorption edges. A screening normalization correction, initially proposed by Pratt [<xref ref-type="bibr" rid="B19">19</xref>] is included. The initial direction of photoelectrons is sampled from Sauter&#x2019;s K-shell hydrogenic DCS [<xref ref-type="bibr" rid="B20">20</xref>], which is a function of the polar angle <italic>&#x3b8;</italic> of the direction of the emitted photoelectron.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Electron-positron pair production (pp).</italic> The total atomic cross sections for pair (and triplet) production were obtained from the <sc>xcom</sc> program of Berger <italic>et&#x20;al.</italic> [<xref ref-type="bibr" rid="B21">21</xref>]. The initial kinetic energies of the produced particles are sampled from the Bethe-Heitler DCS for pair production, with exponential screening and Coulomb correction, empirically modified to improve its reliability for energies near the pair-production threshold. This DCS is a function of the kinetic energy of the electron, <italic>E</italic>
<sub>&#x2212;</sub>; the energy of the positron is determined by energy conservation.</p>
</list-item>
</list>
</p>
<p>The total cross section for each of these processes is obtained by integration of its DCS,<disp-formula id="e8">
<mml:math id="m17">
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Ra</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>d</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Co</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>ph</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mtext>and</mml:mtext>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>pp</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(8)</label>
</disp-formula>over the corresponding variables. The total molecular cross section, <italic>&#x3c3;</italic>
<sub>tot</sub>, is the sum of contributions,<disp-formula id="e9">
<mml:math id="m18">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>tot</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Ra</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Co</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>ph</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>pp</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>The length <italic>s</italic> of each photon free flight is sampled from the familiar exponential distribution<disp-formula id="e10">
<mml:math id="m19">
<mml:mi>p</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>at</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em"/>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>at</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(10)</label>
</disp-formula>where<disp-formula id="e11">
<mml:math id="m20">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>at</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>tot</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(11)</label>
</disp-formula>is the attenuation coefficient (<italic>i.e.</italic>, the inverse mean free path) for photons of energy <italic>E</italic>. Partial and total mass attenuation coefficients, <italic>&#x3bc;</italic>
<sub>at</sub>/<italic>&#x3c1;</italic>, of carbon and mercury are displayed in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Partial and total mass attenuation coefficients of carbon and mercury as functions of the photon energy. Notice the different low-<italic>E</italic> behavior of the incoherent-scattering contribution, <inline-formula id="inf10">
<mml:math id="m21">
<mml:mi mathvariant="script">N</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Co</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>/</mml:mo>
<mml:mi>&#x3c1;</mml:mi>
</mml:math>
</inline-formula>, for insulators (carbon) and conductors (mercury).</p>
</caption>
<graphic xlink:href="fphy-09-738735-g001.tif"/>
</fig>
<p>P<sc>enelope</sc> can also simulate Rayleigh and Compton scattering of polarized photons, with the state of polarization described by means of the Stokes parameters [<xref ref-type="bibr" rid="B2">2</xref>]. The polarization of photons does not alter neither the total cross sections nor the distributions of polar angles (<italic>see</italic>, <italic>e.g.</italic>, Ref. [<xref ref-type="bibr" rid="B2">2</xref>]), but the distribution of azimuthal angles ceases to be uniform. Characteristic x rays and bremsstrahlung photons emitted by electrons or positrons, as well as positron annihilation quanta, are assumed to be unpolarized.</p>
</sec>
<sec id="s2-2">
<title>2.2 Electron and Positron Interactions</title>
<p>The interactions of electrons and positrons considered in <sc>penelope</sc> are:<list list-type="simple">
<list-item>
<p>&#x2022; <italic>Elastic collisions (el).</italic> The DCSs for elastic collisions of electrons and positrons were calculated numerically by running the program <sc>elsepa</sc> [<xref ref-type="bibr" rid="B22">22</xref>, <xref ref-type="bibr" rid="B23">23</xref>] which uses the relativistic Dirac partial-wave expansion method for the electrostatic potential of the target atom obtained from Dirac-Fock atomic electron densities [<xref ref-type="bibr" rid="B24">24</xref>, <xref ref-type="bibr" rid="B25">25</xref>], with the exchange potential of Furness and McCarthy [<xref ref-type="bibr" rid="B26">26</xref>] for electrons. <xref ref-type="fig" rid="F2">Figure&#x20;2</xref> displays DCSs from the <sc>elsepa</sc> database for elastic scattering of electrons and positrons by carbon and mercury atoms. These plots illustrate the variation of the DCS with the atomic number <italic>Z</italic>, the charge of the projectile, and the energy&#x20;<italic>E</italic>.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Inelastic collisions (in).</italic> Interactions involving electronic excitations of the medium are simulated on the basis of the plane-wave Born approximation with the Sternheimer-Liljequist generalized oscillator strength model [<xref ref-type="bibr" rid="B27">27</xref>, <xref ref-type="bibr" rid="B28">28</xref>]. The model is designed to simplify the simulation of inelastic collisions and to facilitate the calculation of the density-effect correction. The excitation spectrum is modeled as a discrete set of delta oscillators. Each oscillator represents excitations of an electron subshell, its strength is set equal to the number of electrons in that subshell and its resonance energy is proportional to the subshell binding energy. The proportionality constant is the same for all subshells, and it is determined from the requirement that the generalized oscillator strength model reproduces the empirical value of the mean excitation energy <italic>I</italic> recommended in the ICRU Report 37 [<xref ref-type="bibr" rid="B9">9</xref>]. This procedure ensures that the stopping powers calculated from this model agree closely with the tabulated values in the ICRU Report 37. To smear out the effect of discrete resonances, the energy loss in distant interactions with bound electrons is sampled from a continuous (triangular) distribution with a mean value equal to the resonance energy of the active subshell.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Ionization of inner shells by impact of electrons and positrons (si).</italic> The K shell, and the L, M, and N subshells that have binding energies larger than about 50&#xa0;eV are considered as inner atomic electron shells. Because the total cross sections obtained from the Sternheimer-Liljequist generalized oscillator strength model are not sufficiently accurate for describing the ionization of inner shells, <sc>penelope</sc> uses numerical shell-ionization cross sections calculated by Bote and Salvat [<xref ref-type="bibr" rid="B29">29</xref>] by means of the distorted-wave (first) Born approximation with the Dirac-Hartree-Fock-Slater self-consistent potential (<italic>see</italic> also Ref. [<xref ref-type="bibr" rid="B30">30</xref>]), multiplied by an energy-dependent factor that accounts for the density-effect correction. The energy loss and the momentum transfer in ionizing collisions are sampled from the distribution given by the Liljequist-Sternheimer model. The total cross sections of outer subshells are renormalized to keep the value of the stopping power unaltered. This approach yields the correct number of ionizations per unit path length, without altering substantially the modeling of inelastic collisions.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Bremsstrahlung emission (br).</italic> The energy <italic>W</italic> of the emitted photon is set equal to the energy loss of the projectile. It is sampled from numerical energy-loss spectra obtained from the scaled cross-section tables of Seltzer and Berger [<xref ref-type="bibr" rid="B31">31</xref>, <xref ref-type="bibr" rid="B32">32</xref>]. The intrinsic angular distribution of emitted photons is described by an analytical expression &#x2014;an admixture of two &#x201c;boosted&#x201d; dipole distributions&#x2014;&#x20;[<xref ref-type="bibr" rid="B33">33</xref>] with parameters determined by fitting a set of 910 angular distributions calculated with the program of Po&#x161;kus [<xref ref-type="bibr" rid="B34">34</xref>], which extends the previously available calculation of Kissel <italic>et&#x20;al.</italic> [<xref ref-type="bibr" rid="B35">35</xref>]. P<sc>enelope</sc> assumes that elastic collisions account for all angular deflections of the particle trajectory caused by the atomic field and, consequently, that radiative events do not modify the direction of the electron or positron.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>Positron annihilation (an).</italic> In the simulation of positron annihilation the target electrons are assumed to be at rest. The process is described by the Heitler DCS [<xref ref-type="bibr" rid="B36">36</xref>, <xref ref-type="bibr" rid="B37">37</xref>] for in-flight annihilation with emission of two photons of energies <italic>E</italic>
<sub>&#x2212;</sub> and <italic>E</italic>
<sub>&#x2b;</sub>, with <italic>E</italic>
<sub>&#x2212;</sub> &#x2264; <italic>E</italic>
<sub>&#x2b;</sub>, which add to <italic>E</italic>&#x20;&#x2b; 2m<sub>e</sub>
<italic>c</italic>
<sup>2</sup>, where m<sub>e</sub> is the rest mass of the electron and m<sub>e</sub>
<italic>c</italic>
<sup>2</sup> &#x2243; 511&#xa0;keV its rest energy. The Heitler DCS is a function of the energy <italic>E</italic>
<sub>&#x2212;</sub> of the less energetic photon. The directions of the two photons are determined by energy and momentum conservation. When the energy of a positron is less than its absorption energy, <inline-formula id="inf11">
<mml:math id="m22">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, it is assumed to annihilate with emission of two photons of energy equal to m<sub>e</sub>
<italic>c</italic>
<sup>2</sup> with opposite directions.</p>
</list-item>
</list>
</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>DCS for elastic scattering of electrons and positrons by carbon and mercury atoms as a function of the polar deflection angle <italic>&#x3b8;</italic>. Notice the change from logarithmic to linear scale at <italic>&#x3b8;</italic> &#x3d; 10&#x20;deg.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g002.tif"/>
</fig>
<p>The DCSs for these interaction mechanisms,<disp-formula id="e12">
<mml:math id="m23">
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>d</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:mtext>and</mml:mtext>
<mml:mspace width="1em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>an</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(12)</label>
</disp-formula>are functions of the angular deflection <italic>&#x3bc;</italic> &#x3d; (1 &#x2212; cos&#x2009; <italic>&#x3b8;</italic>)/2 and/or the energy loss <italic>W</italic>, or the photon energy <italic>E</italic>
<sub>&#x2212;</sub>. The corresponding total cross sections are obtained by integration of these DCSs over the allowed intervals of the relevant variables. The mean free path <italic>&#x3bb;</italic> of electrons and positrons is<disp-formula id="e13">
<mml:math id="m24">
<mml:mi>&#x3bb;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>tot</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(13)</label>
</disp-formula>where<disp-formula id="e14">
<mml:math id="m25">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>tot</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>an</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(14)</label>
</disp-formula>with the annihilation term present only for positrons.</p>
<p>Elastic scattering is characterized by the mean free path,<disp-formula id="e15">
<mml:math id="m26">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(15)</label>
</disp-formula>and the transport mean free paths, <italic>&#x3bb;</italic>
<sub>el,<italic>&#x2113;</italic>
</sub>, defined by<disp-formula id="e16">
<mml:math id="m27">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(16)</label>
</disp-formula>where <italic>P</italic>
<sub>
<italic>&#x2113;</italic>
</sub>(&#x2009;cos&#x2009;<italic>&#x3b8;</italic>) are Legendre polynomials with the argument cos&#x2009;<italic>&#x3b8;</italic> &#x3d; 1&#x20;&#x2212; 2<italic>&#x3bc;</italic>. The inverse first and second transport mean free paths can be expressed as<disp-formula id="e17">
<mml:math id="m28">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mo>&#x27e9;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mrow>
<mml:msub>
<mml:mo>&#x27e9;</mml:mo>
<mml:mn>1</mml:mn>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:math>
<label>(17)</label>
</disp-formula>and<disp-formula id="e18">
<mml:math id="m29">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mfenced open="&#x27e8;" close="&#x27e9;">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>cos</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>6</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mfenced open="&#x27e8;" close="&#x27e9;">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(18)</label>
</disp-formula>where the notation &#x27e8;&#x2026;&#x27e9;<sub>1</sub> indicates the average value in a single collision. <inline-formula id="inf13">
<mml:math id="m31">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> gives a measure of the average angular deflection per unit path length; by analogy with the stopping power (<italic>see</italic> below), the quantity 2<italic>&#x3bb;</italic>
<sub>el,1</sub> is sometimes called the <italic>scattering power</italic>
<xref ref-type="fn" rid="FN2">
<sup>2</sup>
</xref>. <xref ref-type="fig" rid="F3">Figure&#x20;3</xref> shows elastic mean free paths and transport mean free paths for electrons in carbon and mercury. For energies larger than about 10&#xa0;keV, when <italic>E</italic> increases the DCS becomes strongly peaked in the forward direction. In the high-energy limit, scattering is preferentially at small angles (with sin&#x2009;<italic>&#x3b8;</italic> &#x2243;<italic>&#x3b8;</italic>) and <italic>&#x3bb;</italic>
<sub>el,2</sub> &#x2243; <italic>&#x3bb;</italic>
<sub>el,1</sub>/3.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Elastic mean free path, <italic>&#x3bb;</italic>
<sub>el</sub>, and first and second transport mean free paths, <italic>&#x3bb;</italic>
<sub>el,1</sub> and <italic>&#x3bb;</italic>
<sub>el,2</sub>, for electrons scattered in carbon and mercury as functions of the kinetic energy of the projectile.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g003.tif"/>
</fig>
<p>The mean free path <italic>&#x3bb;</italic>
<sub>in</sub> between inelastic collisions is<disp-formula id="e19">
<mml:math id="m32">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:math>
<label>(19)</label>
</disp-formula>The total cross section for bremsstrahlung emission is infinite because the corresponding DCS diverges as <italic>W</italic>
<sup>&#x2212;1</sup>&#xa0;at&#xa0;<italic>W</italic>&#x20;&#x3d; 0 (<italic>see</italic> Ref. [<xref ref-type="bibr" rid="B10">10</xref>] and references therein).</p>
<p>A fundamental quantity in transport studies is the stopping power <italic>S</italic> (&#x3d; average energy loss per unit path length), given by<disp-formula id="e20">
<mml:math id="m33">
<mml:mi>S</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mi>W</mml:mi>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(20)</label>
</disp-formula>where the terms in square brackets are the energy-loss DCSs for inelastic collisions and bremsstrahlung emission, respectively. Relatively small energy transfers also occur in elastic collisions, which manifest as the recoil of the target atom or as phonon excitations, and give rise to the so-called nuclear stopping power. P<sc>enelope</sc> disregards the energy loss in elastic events because the nuclear stopping power is typically four orders of magnitude smaller than <italic>S</italic>. Another relevant quantity is the energy-straggling parameter ( &#x3d; increase of the variance of the energy distribution per unit path length) given by<disp-formula id="e21">
<mml:math id="m34">
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
<label>(21)</label>
</disp-formula>We notice that the contributions from inelastic collisions to the stopping power and to the energy-straggling parameter can be expressed as<disp-formula id="e22">
<mml:math id="m35">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mrow>
<mml:msub>
<mml:mo>&#x27e9;</mml:mo>
<mml:mn>1</mml:mn>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="2em"/>
<mml:mtext>and</mml:mtext>
<mml:mspace width="2em"/>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mfenced open="&#x27e8;" close="&#x27e9;">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(22)</label>
</disp-formula>respectively, where <inline-formula id="inf14">
<mml:math id="m36">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>n</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo>&#x27e9;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the average value of <italic>W</italic>
<sup>
<italic>n</italic>
</sup> in a collision. <xref ref-type="fig" rid="F4">Figure&#x20;4</xref> displays the mean free path of inelastic collisions and the stopping power for electrons in carbon and mercury, together with the collision and radiative contributions to the stopping&#x20;power.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Mean free path of inelastic collisions and stopping powers for electrons in carbon and mercury as functions of the kinetic energy <italic>E</italic>. The plotted quantities are <italic>&#x3c1;&#x3bb;</italic>
<sub>in</sub> and <italic>S</italic>/<italic>&#x3c1;</italic>. The dashed curves represent the contributions from inelastic collisions and from bremsstrahlung emission to the stopping&#x20;power.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g004.tif"/>
</fig>
</sec>
<sec id="s2-3">
<title>2.3 Atomic Relaxation</title>
<p>P<sc>enelope</sc> simulates the emission of characteristic x rays and Auger electrons with energies larger than <inline-formula id="inf15">
<mml:math id="m37">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> that result from vacancies produced in the inner subshells of atoms by photoelectric absorption and Compton scattering of photons and by electron or positron impact. The relaxation of excited ions is simulated as a sequence of transitions in which vacancies move towards the outer subshells by emission of Auger electrons and x rays; the relaxation process is followed until all vacancies have moved to subshells with binding energies less than a certain value <italic>E</italic>
<sub>cut</sub>, which is determined by the absorption energies of electrons and photons. The adopted transition probabilities, as well as the energies of Auger electrons, were extracted from the LLNL Evaluated Atomic Data Library [<xref ref-type="bibr" rid="B38">38</xref>]. The energies of K and L x-ray lines are taken from the review of Deslattes <italic>et&#x20;al.</italic> [<xref ref-type="bibr" rid="B39">39</xref>], while those of M and N lines are from Bearden&#x2019;s compilation [<xref ref-type="bibr" rid="B40">40</xref>]. X rays and electrons are emitted in random directions sampled from the isotropic distribution.</p>
</sec>
</sec>
<sec id="s3">
<title>3 Generation of Random Electron-Photon Showers</title>
<p>A detailed description of the sampling algorithms used to simulate the various interactions from their associated DCSs is given in the <sc>penelope</sc> manual [<xref ref-type="bibr" rid="B2">2</xref>]. Most continuous distributions are sampled numerically by means of the adaptive algorithm RITA (Rational Inverse Transform with Aliasing); Walker&#x2019;s aliasing method [<xref ref-type="bibr" rid="B41">41</xref>] is utilized to sample discrete distributions with large numbers of possible outcomes. The adopted sampling methods are both fast and robust.</p>
<p>The simulation of photons follows the usual detailed procedure, where all interaction events in a photon history are simulated in chronological succession. The physics simulation subroutines set the distance <italic>s</italic> from the current position <bold>r</bold> to the next interaction, assuming the medium is infinite, by random sampling from the exponential distribution defined in <xref ref-type="disp-formula" rid="e10">Eq. 10</xref>. The program then propagates the photon the distance <italic>s</italic> along the ray, <italic>i.e.</italic>, to a position <inline-formula id="inf16">
<mml:math id="m38">
<mml:mi mathvariant="bold">r</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">d</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>, where the next interaction takes place. In Rayleigh and Compton scattering, the photon is absorbed and a second photon is emitted with energy <italic>E</italic>&#x2032; (equal to or less than <italic>E</italic>). When <inline-formula id="inf17">
<mml:math id="m39">
<mml:msup>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3e;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, the surviving photon is followed by repeating these steps. That is, a photon history represents the evolution of the primary photon <italic>and its descendants</italic> resulting from Compton and Rayleigh interactions. Photoabsorption and pair production terminate the photon history. Each photon history consists of a sequence of a relatively small number ( &#x2272; 10) of free flights and interactions, which can be simulated rapidly.</p>
<p>The simulation of electron and positron histories is more difficult because of the large number of interactions these particles undergo before being brought to rest. On average, an electron looses a few tens of eV at each individual interaction. Therefore, detailed simulation of electrons and positrons is feasible only in&#x20;situations where the number of interactions is sufficiently small, that is, for energies up to about 50&#xa0;keV, and for particles with higher energies traveling through thin material foils. To cope with this difficulty, charged particles are usually tracked by using condensed simulation schemes (class-I schemes in the terminology of Berger [<xref ref-type="bibr" rid="B42">42</xref>]) which consist in decomposing each particle trajectory into a number of steps (either of fixed or random lengths), and the global effect of all the interactions that occur along each step is described <italic>approximately</italic> by using multiple scattering theories. Because these theories apply to homogeneous infinite media, a limitation of class-I schemes occurs when a particle is close to a material interface: the step length must then be kept smaller than the distance to the nearest interface, to prevent the particle from entering the next medium. Therefore, in class-I simulations the geometry subroutines must keep control of the proximity of interfaces.</p>
<p>The practical alternative are class-II schemes [<xref ref-type="bibr" rid="B42">42</xref>], also called mixed schemes, which take advantage of the fact that the DCSs for interactions of high-energy charged particles are rapidly decreasing functions of the energy loss <italic>W</italic> and the polar scattering angle <italic>&#x3b8;</italic>. Consequently, cutoffs <italic>W</italic>
<sub>c</sub> and <italic>&#x3b8;</italic>
<sub>c</sub> can be set so that the number of &#x201c;hard&#x201d; interactions (<italic>i.e.</italic>, interactions with energy loss or polar scattering angle larger than the corresponding cutoffs) that occur along each particle history is small enough to allow their individual simulation by random sampling from the corresponding <italic>restricted</italic> DCSs. The accumulated angular deflection caused by all soft interactions (with sub-cutoff energy transfers or angular deflections) that occur along a trajectory step between two successive hard interactions can be described by means of a multiple-scattering approach consistent with the DCSs restricted to soft events. The energy loss caused by soft interactions along the step can be obtained from a simple distribution having the exact first and second moments, as calculated from the energy-loss DCS restricted to soft interactions.</p>
<p>Class-II schemes are more accurate than purely condensed simulation because: <italic>1</italic>) hard events are simulated exactly from the corresponding restricted DCSs, and <italic>2</italic>) multiple scattering approximations have a milder effect when applied to soft interactions only. A further advantage of these schemes is that the tracking algorithm only requires computing intersections of particle rays (straight lines) with interfaces, instead of having to control the distances to the interfaces. In addition, class-II schemes allow verifying the stability of simulation results under variations of the cutoffs, as well as the accuracy of the multiple-scattering approximations adopted for describing the soft interactions. The only disadvantage of class-II schemes is that they require a more elaborate coding of the simulation program, and somewhat larger look-up tables.</p>
<p>Most general-purpose Monte Carlo codes for high-energy radiation transport (<italic>e.g.</italic>, <sc>etran</sc> [<xref ref-type="bibr" rid="B43">43</xref>&#x2013;<xref ref-type="bibr" rid="B45">45</xref>], <sc>its3</sc> [<xref ref-type="bibr" rid="B46">46</xref>], <sc>egs4</sc> [<xref ref-type="bibr" rid="B37">37</xref>], <sc>egs</sc>nrc [<xref ref-type="bibr" rid="B47">47</xref>], <sc>mcnp</sc> [<xref ref-type="bibr" rid="B48">48</xref>], G<sc>eant</sc>4 [<xref ref-type="bibr" rid="B4">4</xref>&#x2013;<xref ref-type="bibr" rid="B6">6</xref>], <sc>fluka</sc> [<xref ref-type="bibr" rid="B49">49</xref>], <sc>egs5</sc> [<xref ref-type="bibr" rid="B50">50</xref>] <sc>mcnp6</sc> [<xref ref-type="bibr" rid="B51">51</xref>]) simulate charged particles by means of a combination of class-I and class-II schemes. By contrast, <sc>penelope</sc> [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>], and recently the <sc>penelope</sc>-based <sc>PenRed</sc> [<xref ref-type="bibr" rid="B52">52</xref>], make systematic use of class-II schemes for all interactions of electrons and positrons.</p>
<sec id="s3-1">
<title>3.1 Simulation of Electron and Positron Trajectories</title>
<p>P<sc>enelope</sc> describes the transport of electrons and positrons by means of an elaborate class-II scheme, with fixed energy-loss cutoffs and an energy-dependent angular cutoff <italic>&#x3b8;</italic>
<sub>c</sub> for elastic collisions, which is set internally by the program in terms of two user-defined simulation parameters. Particle trajectories are generated by using the random-hinge method [<xref ref-type="bibr" rid="B53">53</xref>], which operates similarly to detailed simulations, <italic>i.e.</italic>, the transported particle is moved in straight &#x201c;jumps,&#x201d; and the energy and direction of movement change only through discrete events (hard interactions and hinges). With the appropriate set of DCSs, the method is applicable to any charged particle; class-II simulations of protons with the random-hinge method have been reported by Salvat and Quesada [<xref ref-type="bibr" rid="B54">54</xref>,&#x20;<xref ref-type="bibr" rid="B55">55</xref>].</p>
<sec id="s3-1-1">
<title>3.1.1 Interactions With Energy Loss</title>
<p>Electrons and positrons lose energy through inelastic collisions and bremsstrahlung emission. These interactions are classified by the respective cutoff energy-loss values, <italic>W</italic>
<sub>cc</sub> and <italic>W</italic>
<sub>cr</sub>, which are assumed to be independent of the energy of the projectile. Interactions with energy loss <italic>W</italic> larger than the corresponding cutoff are considered as hard interactions and are simulated individually by sampling from the corresponding restricted DCSs. The slowing down caused by soft interactions is described by the <italic>restricted</italic> stopping power,<disp-formula id="e23">
<mml:math id="m40">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>cc</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:mi>W</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>cr</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(23)</label>
</disp-formula>and the <italic>restricted</italic> energy straggling parameter,<disp-formula id="e24">
<mml:math id="m41">
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>cc</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>cr</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
<label>(24)</label>
</disp-formula>
</p>
<p>A difficulty of class-II algorithms arises from the fact that the energy of the particle decreases along the step between two consecutive hard interactions. Because the cutoff energies <italic>W</italic>
<sub>cc</sub> and <italic>W</italic>
<sub>cr</sub> do not change with <italic>E</italic>, we can assume that, at least for small fractional energy losses, the DCSs for soft energy-loss events vary linearly with <italic>E</italic>. Under this assumption we can calculate the first moments of the distribution of the energy loss <italic>W</italic>
<sub>s</sub> of a particle with initial energy <italic>E</italic>
<sub>0</sub> after traveling a path length <italic>s</italic> under only the influence of soft events [<xref ref-type="bibr" rid="B2">2</xref>]. The mean and variance of this distribution are, respectively,<disp-formula id="e25a">
<mml:math id="m42">
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>s</mml:mi>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>ln</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(25a)</label>
</disp-formula>and<disp-formula id="e25b">
<mml:math id="m43">
<mml:mi>var</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>s</mml:mi>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>ln</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>ln</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(25b)</label>
</disp-formula>where the factors in curly braces account for the global effect of the energy dependence of the soft energy-loss DCS, within the linear approximation.</p>
<p>In practical simulations, the energy loss <italic>W</italic>
<sub>s</sub> due to soft interactions along a path length <italic>s</italic> is sampled from a distribution, <italic>P</italic>(<italic>W</italic>
<sub>s</sub>), that has the mean and variance of the actual energy-loss distribution, as given by <xref ref-type="disp-formula" rid="e25a">Eqs. 25</xref>. When <inline-formula id="inf18">
<mml:math id="m44">
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x226b;</mml:mo>
<mml:mi>var</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, and the cutoff energy losses <italic>W</italic>
<sub>cc</sub> and <italic>W</italic>
<sub>cr</sub> are much smaller than &#x27e8;<italic>W</italic>
<sub>s</sub>&#x27e9;, the central limit theorem implies that the actual energy-loss distribution is nearly Gaussian. Unfortunately, this is not true for small path lengths, which correspond to small <italic>W</italic>
<sub>s</sub>, and one must rely on artificial distributions. In <sc>penelope</sc> the distribution <italic>P</italic>(<italic>W</italic>
<sub>s</sub>) has different forms, depending on the ratio<disp-formula id="e26a">
<mml:math id="m45">
<mml:mi>X</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(26a)</label>
</disp-formula>where <inline-formula id="inf19">
<mml:math id="m46">
<mml:mi>&#x3c3;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:mi>var</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>/</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> is the standard deviation of <italic>W</italic>
<sub>s</sub>. Specifically, we consider the following cases.<list list-type="simple">
<list-item>
<p>&#x2022; Case I. If <italic>X</italic>&#x20;&#x3e; 3, the energy loss is sampled from the truncated Gaussian distribution (normalisation is irrelevant here),</p>
</list-item>
</list>
<disp-formula id="e26b">
<mml:math id="m47">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>I</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mi>exp</mml:mi>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x232a;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1.015387</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x232a;</mml:mo>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi>&#x3c3;</mml:mi>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>otherwise,</mml:mtext>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(26b)</label>
</disp-formula>where the numerical factor 1.015387 corrects the standard deviation for the effect of the truncation. Notice that the shape of this distribution is very similar to that of the &#x201c;true&#x201d; energy-loss distribution.<list list-type="simple">
<list-item>
<p>&#x2022; Case II. When 3<sup>1/2</sup> &#x3c; <italic>X</italic>&#x20;&#x3c; 3, we use the uniform distribution<xref ref-type="fn" rid="fn3">
<sup>3</sup>
</xref>
</p>
</list-item>
</list>
<disp-formula id="e26c">
<mml:math id="m48">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>II</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>U</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(26c)</label>
</disp-formula>with<disp-formula id="e26d">
<mml:math id="m49">
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msqrt>
<mml:mspace width="0.3333em"/>
<mml:mi>&#x3c3;</mml:mi>
</mml:math>
<label>(26d)</label>
</disp-formula>and<disp-formula id="e26e">
<mml:math id="m50">
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msqrt>
<mml:mspace width="0.3333em"/>
<mml:mi>&#x3c3;</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
<label>(26e)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>&#x2022; Case III. Finally, when <italic>X</italic>&#x20;&#x3c; 3<sup>1/2</sup>, the adopted distribution is an admixture of a delta distribution and a uniform distribution,</p>
</list-item>
</list>
<disp-formula id="e26f">
<mml:math id="m51">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>III</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mo>&#x03B4;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mi>U</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(26f)</label>
</disp-formula>with<disp-formula id="e26g">
<mml:math id="m52">
<mml:mi>A</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>3</mml:mn>
<mml:mi>var</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2212;</mml:mo>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x232a;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>3</mml:mn>
<mml:mi>var</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x232a;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="2em"/>
<mml:mtext>and</mml:mtext>
<mml:mspace width="2em"/>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>3</mml:mn>
<mml:mi>var</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x232a;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x232a;</mml:mo>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(26g)</label>
</disp-formula>It can be easily verified that these distributions have the required mean and variance. It is also worth noticing that they yield <italic>W</italic>
<sub>s</sub> values that are less than<disp-formula id="e27">
<mml:math id="m53">
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s,</mml:mtext>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mi>&#x3c3;</mml:mi>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>&#x2009;in&#x2009;case&#x2009;I</mml:mtext>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>&#x2009;in&#x2009;case&#x2009;II</mml:mtext>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>&#x2009;in&#x2009;case&#x2009;III</mml:mtext>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(27)</label>
</disp-formula>
<italic>W</italic>
<sub>s,max</sub> is normally much less than the kinetic energy <italic>E</italic>
<sub>0</sub> of the transported particle. Energy losses larger than <italic>E</italic>
<sub>0</sub> might be generated only when the step length <italic>s</italic> has a value of the order of the continuous slowing down approximation (CSDA) range, but this never happens in practical simulation. Despite the artificial shapes of the distributions given by <xref ref-type="disp-formula" rid="e26a">Eqs 26</xref>, after a moderately large number of short steps, the distribution of the accumulated energy loss has the correct first and second moments and is similar in shape to the &#x201c;true&#x201d; distribution for soft interactions only, which is nearly Gaussian. Further improvements of the distribution of soft-energy losses would require considering higher order moments of the energy-loss in single interaction events.</p>
</sec>
<sec id="s3-1-2">
<title>3.1.2 Elastic collisions</title>
<p>Angular deflections of the particle trajectories are mostly caused by elastic collisions with the atoms of the material. To analyze the cumulative effect of multiple interactions, let us consider an electron that starts from the origin of coordinates moving in the direction of the <italic>z</italic> axis with energy <italic>E</italic>. Let <italic>&#x3b8;</italic>
<sub>m</sub> and (<italic>x</italic>, <italic>y</italic>, <italic>z</italic>) denote the polar angle of the direction of motion and the position coordinates of the electron after traveling a path length <italic>s</italic>. Under the assumption that energy losses are negligible, the multiple-scattering theories of Goudsmit and Saunderson [<xref ref-type="bibr" rid="B56">56</xref>] and Lewis [<xref ref-type="bibr" rid="B57">57</xref>] provide exact expressions for the angular distribution, <italic>p</italic>(<italic>&#x3bc;</italic>
<sub>m</sub>) with <italic>&#x3bc;</italic>
<sub>m</sub> &#x3d; (1 &#x2212; cos&#x2009; <italic>&#x3b8;</italic>
<sub>m</sub>)/2, which are determined by the so-called transport mean free paths <italic>&#x3bb;</italic>
<sub>el,<italic>&#x2113;</italic>
</sub>, <xref ref-type="disp-formula" rid="e16">Eq. 16</xref>. In addition, the Lewis theory for pure elastic scattering gives exact analytical expressions for the average values &#x27e8;&#x2009;cos&#x2009;<italic>&#x3b8;</italic>
<sub>m</sub>&#x27e9;, &#x27e8;&#x2009;cos<sup>2</sup>
<italic>&#x3b8;</italic>
<sub>m</sub>&#x27e9;, &#x27e8;<italic>z</italic>&#x27e9;, &#x27e8;<italic>z</italic>&#x2009;cos&#x2009;<italic>&#x3b8;</italic>
<sub>m</sub>&#x27e9;, &#x27e8;<italic>z</italic>
<sup>2</sup>&#x27e9;, and &#x27e8;<italic>x</italic>
<sup>2</sup> &#x2b; <italic>y</italic>
<sup>2</sup>&#x27e9;. These quantities are completely determined by the values of the transport mean free paths <italic>&#x3bb;</italic>
<sub>el,1</sub> and <italic>&#x3bb;</italic>
<sub>el,2</sub>.</p>
<p>In <sc>penelope</sc> the cutoff deflection <italic>&#x3bc;</italic>
<sub>c</sub>, which separates hard and soft elastic collisions, varies with the energy <italic>E</italic> in a way that ensures that the simulation becomes purely detailed at low energies, where elastic scattering is more intense. The cutoff deflection is determined by two energy-independent user parameters, <italic>C</italic>
<sub>1</sub> and <italic>C</italic>
<sub>2</sub>, which typically should be given small values, between 0 and 0.1. These two parameters are used to fix the mean free path between hard elastic events (<italic>i.e.</italic>, the average step length between consecutive hard elastic collisions), which is defined as<disp-formula id="e28">
<mml:math id="m54">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>max</mml:mi>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mi>min</mml:mi>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el,&#x2009;</mml:mtext>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfrac>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(28)</label>
</disp-formula>where <italic>&#x3bb;</italic>
<sub>el,1</sub> is the first transport mean free path, and <italic>S</italic> is the stopping power due to both inelastic collisions and bremsstrahlung emission, <xref ref-type="disp-formula" rid="e20">Eq. 20</xref>. The equation<disp-formula id="e29">
<mml:math id="m55">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>c</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
<label>(29)</label>
</disp-formula>then fixes the cutoff <italic>&#x3bc;</italic>
<sub>c</sub> as a function of the energy <italic>E</italic> of the projectile. The average angular deflection of the electron trajectory at the end of a step of length <inline-formula id="inf20">
<mml:math id="m56">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> can be evaluated from Lewis&#x2019; theory [<xref ref-type="bibr" rid="B57">57</xref>] which, ignoring energy losses along the step, gives<disp-formula id="e30">
<mml:math id="m57">
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:mi>cos</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2243;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2272;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(30)</label>
</disp-formula>That is, <italic>C</italic>
<sub>1</sub> defines an approximate upper limit for the cumulative average angular deflection along step. On the other hand, the average energy loss along the step is<disp-formula id="e31">
<mml:math id="m58">
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>final</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2243;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mi>S</mml:mi>
<mml:mo>&#x2272;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mi>E</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(31)</label>
</disp-formula>so that <italic>C</italic>
<sub>2</sub> sets a limit to the average fractional energy loss along the step. An increase of <italic>C</italic>
<sub>1</sub> or <italic>C</italic>
<sub>2</sub> leads to increased values of both the mean free path between hard events, <inline-formula id="inf21">
<mml:math id="m59">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, and the cutoff deflection, <italic>&#x3bc;</italic>
<sub>c</sub>, in certain energy ranges [<xref ref-type="bibr" rid="B2">2</xref>]. Of course, an increase of <inline-formula id="inf22">
<mml:math id="m60">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> implies a reduction in the number of hard events along a particle track with an accompanying reduction of the simulation&#x20;time.</p>
<p>It should be noted that <italic>C</italic>
<sub>1</sub> and <italic>C</italic>
<sub>2</sub> act within different energy domains. This is illustrated in <xref ref-type="fig" rid="F5">Figure&#x20;5</xref>, where the lengths <italic>&#x3bb;</italic>
<sub>el</sub>, <italic>&#x3bb;</italic>
<sub>el,1</sub> and <italic>E</italic>/<italic>S</italic> for electrons in carbon and mercury are represented as functions of the kinetic energy. The mean free path <inline-formula id="inf23">
<mml:math id="m61">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> for hard elastic events, determined from the formula <xref ref-type="disp-formula" rid="e28">(28)</xref> with <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05 is also plotted. For low energies, <inline-formula id="inf24">
<mml:math id="m62">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and the simulation is purely detailed (<italic>&#x3bc;</italic>
<sub>c</sub> &#x3d; 0). For intermediate energies, <inline-formula id="inf25">
<mml:math id="m63">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, whereas <inline-formula id="inf26">
<mml:math id="m64">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mi>E</mml:mi>
<mml:mo>/</mml:mo>
<mml:mi>S</mml:mi>
</mml:math>
</inline-formula> in the high-energy domain. From <xref ref-type="fig" rid="F5">Figure&#x20;5</xref> it is clear that increasing the value of <italic>C</italic>
<sub>2</sub> does not have any effect on the simulation of electron tracks with initial energies that are less than about 1 and 10&#xa0;MeV for carbon and mercury, respectively.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Elastic mean free path <italic>&#x3bb;</italic>
<sub>el</sub>, first transport mean free path <italic>&#x3bb;</italic>
<sub>el,1</sub> and <italic>E</italic>/<italic>S</italic>(<italic>E</italic>) for electrons in carbon and mercury. The solid lines represent the mean free path between hard elastic events <inline-formula id="inf27">
<mml:math id="m65">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> obtained from <xref ref-type="disp-formula" rid="e28">Eq. 28</xref> with <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g005.tif"/>
</fig>
<p>The justification for the recipe <xref ref-type="disp-formula" rid="e28">(28)</xref> is that it automatically forces detailed simulation (<italic>&#x3bc;</italic>
<sub>c</sub> &#x3d; 0) at low energies, where elastic scattering dominates. In addition, when the energy increases, the portion of elastic collisions that are hard, <inline-formula id="inf28">
<mml:math id="m66">
<mml:mo>&#x221d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>/</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, reduces gradually, being much less than unity at high energies, where scattering is preferentially at small-angles.</p>
<p>Assuming negligible energy losses, the angular distribution produced by the soft elastic collisions along a path length <italic>s</italic> is [<xref ref-type="bibr" rid="B57">57</xref>]<disp-formula id="e32">
<mml:math id="m67">
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x221e;</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:mfrac>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>/</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>cos</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(32)</label>
</disp-formula>where <italic>&#x3bc;</italic>
<sub>s</sub> &#x2261; (1 &#x2212; &#x2009;cos&#x2009; <italic>&#x3b8;</italic>
<sub>s</sub>)/2 is the accumulated deflection, and <inline-formula id="inf29">
<mml:math id="m68">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> are the transport mean free paths for the soft interactions,<disp-formula id="e33">
<mml:math id="m69">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>c</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
<label>(33)</label>
</disp-formula>The DCS for soft elastic events has a discontinuity at <italic>&#x3bc;</italic>
<sub>c</sub>, which implies that for small path lengths the Legendre series <xref ref-type="disp-formula" rid="e32">(32)</xref> does not converge with a finite number of terms. Therefore, it is impractical to sample the multiple-scattering deflection <italic>&#x3bc;</italic>
<sub>s</sub> from the distribution <italic>F</italic>
<sub>s</sub>(<italic>s</italic>; <italic>&#x3bc;</italic>
<sub>s</sub>).</p>
<p>It is important to notice that soft inelastic collisions also cause a small deflection of the projectile. The scattering effect of these interactions is accounted for by considering their contributions to the soft transport mean free paths,<disp-formula id="e34">
<mml:math id="m70">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">N</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>cos</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>cc</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>d</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mtext>d</mml:mtext>
<mml:mi>&#x3bc;</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
<label>(34)</label>
</disp-formula>The combined (elastic plus inelastic) soft scattering process is then described by the transport mean free paths<disp-formula id="e35">
<mml:math id="m71">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>comb</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(35)</label>
</disp-formula>Assuming that the energy loss is small, the first and second moments of the angular deflection after a path length <italic>s</italic>, under the sole action of soft elastic and soft inelastic interactions, are [<xref ref-type="bibr" rid="B2">2</xref>, <xref ref-type="bibr" rid="B57">57</xref>]<disp-formula id="e36a">
<mml:math id="m72">
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>/</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>comb</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(36a)</label>
</disp-formula>and<disp-formula id="e36b">
<mml:math id="m73">
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo stretchy="false">&#x232a;</mml:mo>
<mml:mo>&#x3d;</mml:mo>
<mml:mo stretchy="false">&#x2329;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x232a;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>6</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>/</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>comb</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(36b)</label>
</disp-formula>
</p>
<p>In practical simulations the angular deflection <italic>&#x3bc;</italic>
<sub>s</sub> after a path length <italic>s</italic> is sampled from an artificial distribution, <italic>P</italic>(<italic>&#x3bc;</italic>
<sub>s</sub>), which is required to have the same moments,<disp-formula id="e37">
<mml:math id="m74">
<mml:mfenced open="&#x27e8;" close="&#x27e9;">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mspace width="0.3333em"/>
<mml:mi>P</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mtext>d</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(37)</label>
</disp-formula>of orders <italic>n</italic>&#x20;&#x3d; 1 and 2 as the real distribution, <xref ref-type="disp-formula" rid="e36a">Eqs 36</xref>, but is otherwise arbitrary. In our programs we use the following<disp-formula id="e38a">
<mml:math id="m75">
<mml:mi>P</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi>U</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>U</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(38a)</label>
</disp-formula>where <italic>U</italic>(<italic>a</italic>, <italic>b</italic>; <italic>x</italic>) denotes the normalised uniform distribution in the interval (<italic>a</italic>, <italic>b</italic>). The parameters obtained by requiring the aforesaid conditions are<disp-formula id="e38b">
<mml:math id="m76">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(38b)</label>
</disp-formula>and<disp-formula id="e38c">
<mml:math id="m77">
<mml:mi>A</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo stretchy="false">&#x27e8;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">&#x27e9;</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(38c)</label>
</disp-formula>This simple distribution is flexible enough to reproduce the combinations of first and second moments encountered in the simulations [notice that &#x27e8;<italic>&#x3bc;</italic>
<sub>s</sub>&#x27e9;, <xref ref-type="disp-formula" rid="e36a">Eq. (36a)</xref>, is always less than 0.5] and allows fast random sampling of the deflection <italic>&#x3bc;</italic>
<sub>s</sub>.</p>
</sec>
<sec id="s3-1-3">
<title>3.1.3&#x20;Random-Hinge Method</title>
<p>As indicated above, hard interactions are simulated individually according to their restricted DCSs. Assuming that the energy loss due to soft collisions is small, the distance <italic>s</italic> traveled by an electron with initial energy <italic>E</italic> from its current position <bold>r</bold> to the next hard collision can be sampled from the familiar exponential distribution, with the total mean free path <inline-formula id="inf30">
<mml:math id="m78">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> given by<disp-formula id="e39">
<mml:math id="m79">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.28em"/>
<mml:mspace width="0.28em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>an</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(39)</label>
</disp-formula>That is, random values of <italic>s</italic> can be generated by using the sampling formula<disp-formula id="e40">
<mml:math id="m80">
<mml:mi>s</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi>ln</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>&#x3be;</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(40)</label>
</disp-formula>where <italic>&#x3be;</italic> is a random number uniformly distributed in&#x20;(0,1).</p>
<p>Because of the effect of soft interactions, the kinetic energy of the transported particle varies along the step between two hard interactions. The accumulated angular deflection caused by all soft interactions that occur along a trajectory step is simulated as if it were caused by a single artificial event (a hinge), which occurs at a random position within the step. The energy loss along the step and the polar angular deflection at the hinge are sampled from approximate multiple-scattering distributions that have the correct means and variances, <xref ref-type="disp-formula" rid="e25a">Eqs 25</xref>, <xref ref-type="disp-formula" rid="e36a">36</xref>, which are calculated beforehand from the DCSs restricted to soft interactions [<xref ref-type="bibr" rid="B2">2</xref>]. Unfortunately, the multiple-scattering theories do not provide enough information to determine the spatial distribution and the correlation between the direction and the position of the electron at the end of a step. The only characteristics readily available are the low-order moments given by the theory of Lewis.</p>
<p>The energy loss <italic>W</italic>
<sub>s</sub> and the angular deflection <italic>&#x3bc;</italic>
<sub>s</sub> caused by multiple soft interactions along the step are sampled from artificial distributions, which are required to preserve the moments given by <xref ref-type="disp-formula" rid="e25a">Eqs 25</xref> and <xref ref-type="disp-formula" rid="e36a">36</xref>. Other details of these distributions are irrelevant, provided only that the fractional energy loss, &#x27e8;<italic>W</italic>
<sub>s</sub>&#x27e9;/<italic>E</italic>, and the average soft deflection, &#x27e8;<italic>&#x3bc;</italic>
<sub>s</sub>&#x27e9;, in each step are small [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>]. A convenient feature of the adopted energy-loss distributions, which will be helpful below, is that they permit energy transfers up to a well defined maximum value <italic>W</italic>
<sub>s,max</sub>, <xref ref-type="disp-formula" rid="e27">Eq. 27</xref>, determined by the kinetic energy <italic>E</italic> of the projectile and the step length&#x20;<italic>s</italic>.</p>
<p>In <sc>penelope</sc>, the angular deflection and the space displacement due to multiple soft collisions along the path length <italic>s</italic> are described by means of the <italic>random-hinge</italic> method [<xref ref-type="bibr" rid="B53">53</xref>], which operates as follows (<xref ref-type="fig" rid="F6">Figure&#x20;6</xref>).<list list-type="simple">
<list-item>
<p>1) First, the program samples the length <italic>s</italic> of the step to the next hard interaction.</p>
</list-item>
<list-item>
<p>2) The energy loss <italic>W</italic>
<sub>s</sub> caused by all soft interactions along the step is sampled from the distribution given by <xref ref-type="disp-formula" rid="e26a">Eqs 26</xref>, which has the correct mean and variance, <xref ref-type="disp-formula" rid="e25a">Eqs 25</xref>, and approaches the normal distribution for sufficiently long&#x20;steps.</p>
</list-item>
<list-item>
<p>3) The electron then flies a random distance <italic>&#x3c4;</italic>, which is sampled uniformly in the interval (0, <italic>s</italic>), in the initial direction.</p>
</list-item>
<list-item>
<p>4) The artificial event (hinge) takes place at the end of the flight, where the electron changes its direction of movement. The polar deflection, <italic>&#x3bc;</italic>
<sub>s</sub> &#x3d; (1 &#x2212; cos&#x2009; <italic>&#x3b8;</italic>
<sub>s</sub>)/2, is sampled from the distribution <xref ref-type="disp-formula" rid="e38a">(38)</xref> having the mean and variance evaluated from the DCSs of soft events at an energy <italic>E</italic>&#x2032; &#x3d; <italic>E</italic>&#x20;&#x2212; (<italic>&#x3c4;</italic>/<italic>s</italic>)<italic>W</italic>
<sub>s</sub>. The azimuthal deflection angle <italic>&#x3d5;</italic>
<sub>s</sub> is sampled uniformly in (0, 2<italic>&#x3c0;</italic>)</p>
</list-item>
<list-item>
<p>5) Finally, the electron flies a distance <italic>s</italic>&#x20;&#x2212; <italic>&#x3c4;</italic> in the new direction, to the position of the next hard interaction. The energy at the end of the step is set to <italic>E</italic>&#x20;&#x2212;&#x20;<italic>W</italic>
<sub>s</sub>.</p>
</list-item>
</list>
</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Random hinge method. The accumulated angular deflection <italic>&#x3b8;</italic>
<sub>s</sub> caused by the soft interactions that occur along the step is applied at the&#x20;hinge.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g006.tif"/>
</fig>
<p>Thus, each step <italic>s</italic> is simulated as a sequence of two trajectory segments.</p>
<p>With this tracking algorithm, the code operates as in detailed simulations, <italic>i.e.</italic>, the transported particle moves freely in straight trajectory segments, and the energy and direction of movement change only through discrete events (hard interactions and hinges). This strategy simplifies the simulation of transport in complex material structures consisting of homogeneous bodies with well-defined interfaces. When the electron crosses an interface, we only have to halt it at the crossing point, and resume the simulation in the new material. Because the distance <italic>&#x3c4;</italic> to the hinge is distributed uniformly in (0, <italic>s</italic>), the particle reaches the interface with nearly correct average energy and direction [<xref ref-type="bibr" rid="B2">2</xref>]. We point out that this tracking scheme only requires computing intersections of particle rays and interfaces. In the case of a generic quadric surface, this is accomplished by solving a quadratic equation. The easiness of the ray-tracing method is at variance with class-I schemes, which require calculating the distance to the nearest interface at the beginning of each step; in the case of a quadric surface the calculation of that distance involves finding a root of a polynomial of up to 6th degree&#x20;[<xref ref-type="bibr" rid="B58">58</xref>].</p>
<p>In spite of its simplicity, the random-hinge method competes in accuracy and speed with other, more sophisticated transport algorithms [<xref ref-type="bibr" rid="B59">59</xref>, <xref ref-type="bibr" rid="B60">60</xref>]. Comparison of results from detailed and class-II simulations of electrons in an infinite medium [<xref ref-type="bibr" rid="B2">2</xref>] shows that the randomness of the hinge position leads to correlations between the angular deflection and the displacement that are close to the actual correlations. It is also worth noting that the possible positions of the next hard interaction fill the sphere of radius <italic>s</italic> centered at <bold>r</bold>, the beginning of the&#x20;step.</p>
<p>It is convenient to consider that the energy <italic>W</italic>
<sub>s</sub> is lost at a constant rate along the step, <italic>i.e.</italic>, as in the CSDA with an effective stopping power <italic>S</italic>
<sub>soft</sub> &#x3d; <italic>W</italic>
<sub>s</sub>/<italic>s</italic>. In previous versions of <sc>penelope</sc>, the energy loss <italic>W</italic>
<sub>s</sub> was deposited at the hinge. This yielded an artifact in the depth-dose distribution, which does not occur when the energy loss is distributed uniformly along the step [<xref ref-type="bibr" rid="B2">2</xref>]. The use of the CSDA instead of assuming a discrete loss at the hinge also reduces statistical uncertainties in the simulated distributions of fluence with respect to energy. In addition, the CSDA permits accounting for the reduced energy loss in segments that are truncated at interfaces: the energy of the electron at the intersection is <italic>E</italic>
<sub>0</sub> &#x2212; <italic>s</italic>&#x2032;<italic>S</italic>
<sub>soft</sub>, where <italic>E</italic>
<sub>0</sub> denotes the energy at the beginning of the segment and <italic>s</italic>&#x2032; is the length of the segment before the interface.</p>
<p>A further advantage of considering that soft energy-loss interactions slow down electrons with constant stopping power is that the calculation of flight times is trivial. Consider an electron with initial energy <italic>E</italic>
<sub>0</sub>, subject to the stopping power <italic>S</italic>
<sub>soft</sub>. The time in which the electron moves along a trajectory segment of length <italic>s</italic>&#x2032; is given by<disp-formula id="equ1">
<mml:math id="m81">
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x222b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>soft</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mspace width="0.3333em"/>
<mml:mfrac>
<mml:mrow>
<mml:mtext>d</mml:mtext>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>soft</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>Inserting the relativistic expression of the velocity,<disp-formula id="equ2">
<mml:math id="m82">
<mml:mi>v</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mfrac>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mtext>e</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mtext>e</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
</disp-formula>The integral is elementary and gives<disp-formula id="e41">
<mml:math id="m83">
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>soft</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mtext>e</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msqrt>
<mml:mo>&#x2212;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>soft</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>soft</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mtext>e</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(41)</label>
</disp-formula>where <italic>c</italic> is the speed of light in vacuum.</p>
</sec>
<sec id="s3-1-4">
<title>3.1.4 Variation of <inline-formula id="inf31">
<mml:math id="m84">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> With Energy</title>
<p>Due to soft energy-loss interactions, the energy of the transported particle decreases along the step in an essentially unpredictable way. This implies that the mean free path <inline-formula id="inf32">
<mml:math id="m85">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> also changes along a single step. Consequently, the sampling formula <xref ref-type="disp-formula" rid="e40">(40)</xref> is incorrect (this formula is valid only when the energy remains constant along the step). <xref ref-type="fig" rid="F7">Figure&#x20;7</xref> shows the inverse mean free path (interaction probability per unit path length) for hard interactions of electrons in carbon and mercury evaluated by <sc>penelope</sc> for various values of the simulation parameters <italic>C</italic>
<sub>1</sub> and <italic>C</italic>
<sub>2</sub>, all with <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 100&#xa0;eV. Generally, when the energy increases, the inverse mean free path for hard events decreases monotonically at low energies, has a broad minimum, and then increases slowly to saturate at high energies. Note that, by varying the values of <italic>C</italic>
<sub>1</sub> and <italic>C</italic>
<sub>2</sub>, the inverse mean free path cannot be made smaller than the contributions from hard inelastic and radiative events. Hence, at high energies, the value <italic>&#x3bb;</italic>
<sup>(h)</sup>(<italic>E</italic>) is determined by the cutoff energies <italic>W</italic>
<sub>cc</sub> and&#x20;<italic>W</italic>
<sub>cr</sub>.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Inverse mean free path (interaction probability per unit path length) for hard interactions of electrons in carbon and mercury for the indicated values of the simulation parameters. The plotted curves were calculated with <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 100&#xa0;eV.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g007.tif"/>
</fig>
<p>To account for the variation of <inline-formula id="inf33">
<mml:math id="m86">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> with energy, and also to facilitate the simulation of electrons and positrons in electromagnetic fields, the user may set a maximum step length, <italic>s</italic>
<sub>max</sub>. By default <sc>penelope</sc> uses the value <inline-formula id="inf34">
<mml:math id="m87">
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>4</mml:mn>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>. Let <italic>E</italic>
<sub>0</sub> be the kinetic energy of the electron at the beginning of the step. As the adopted energy-loss distributions are such that the energy loss <italic>W</italic>
<sub>s</sub> in steps of length <italic>s</italic>&#x20;&#x2264; <italic>s</italic>
<sub>max</sub> has an upper bound <italic>W</italic>
<sub>s,max</sub> [<italic>see</italic> <xref ref-type="disp-formula" rid="e27">Eq. 27</xref>], the energy of the particle decreases along the step from <italic>E</italic>
<sub>0</sub> to a value that is never less than <italic>E</italic>
<sub>0</sub> &#x2212; <italic>W</italic>
<sub>s,max</sub> at the end of the step. We can then determine the minimum value <italic>&#x3bb;</italic>
<sub>T,</sub>&#x2009;<sub>min</sub> of <inline-formula id="inf35">
<mml:math id="m88">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> in the energy interval between <italic>E</italic>
<sub>0</sub> &#x2212; <italic>W</italic>
<sub>s,</sub>&#x2009;<sub>max</sub> and <italic>E</italic>
<sub>0</sub>, and consider that the particle can undergo delta interactions (<italic>i.e.</italic>, fictitious events in which the energy and direction of the electron remain unchanged) with a mean free path <italic>&#x3bb;</italic>
<sub>
<italic>&#x3b4;</italic>
</sub>(<italic>E</italic>) such that<disp-formula id="e42">
<mml:math id="m89">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>in</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>br</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>an</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x03B4;</mml:mo>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T,</mml:mtext>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(42)</label>
</disp-formula>Because this sum is constant with <italic>E</italic>, we can sample the step length <italic>s</italic> from the exponential distribution with the mean free path <italic>&#x3bb;</italic>
<sub>T,min</sub>. When the sampled step length is larger than <italic>s</italic>
<sub>max</sub>, the particle is moved a length <italic>s</italic>&#x20;&#x3d; <italic>s</italic>
<sub>max</sub> and a delta interaction is assumed to occur at the end of the step. The introduction of delta interactions does not affect the reliability of the simulation results because of the Markovian character of the transport process.</p>
<p>Once the step length is determined, the soft energy loss <italic>W</italic>
<sub>s</sub> is sampled from the distribution defined by <xref ref-type="disp-formula" rid="e26a">Eqs 26</xref>, with the moments given by <xref ref-type="disp-formula" rid="e25a">Eqs 25</xref>. The soft angular deflection <italic>&#x3bc;</italic>
<sub>s</sub> at the hinge is sampled from the distribution <xref ref-type="disp-formula" rid="e38a">(38)</xref> with the moments <xref ref-type="disp-formula" rid="e36a">(36)</xref> calculated at the energy <italic>E</italic>
<sub>hinge</sub> &#x3d; <italic>E</italic>
<sub>0</sub> &#x2212; <italic>&#x3c4;S</italic>
<sub>soft</sub> corresponding to the hinge (within the CSDA). On average, this is equivalent to assuming that the transport mean free paths <inline-formula id="inf36">
<mml:math id="m90">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> and <inline-formula id="inf37">
<mml:math id="m91">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> vary linearly with energy. When the sampled step length <italic>s</italic> is less than <italic>s</italic>
<sub>max</sub>, the kind of event (hard or delta interaction) that occurs at the end of the step is sampled from the corresponding partial inverse mean free paths. The angular deflection and/or the energy loss at hard interactions is sampled from the corresponding restricted DCSs. The simulation of a particle ends when either its energy becomes lower than the predefined absorption energy, <inline-formula id="inf38">
<mml:math id="m92">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, or when it leaves the entire geometry.</p>
</sec>
</sec>
<sec id="s3-2">
<title>3.2 Selecting the Simulation Parameters</title>
<p>The speed and accuracy of the simulation of coupled electron-photon transport is determined by the values of the simulation parameters <inline-formula id="inf39">
<mml:math id="m93">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, <italic>C</italic>
<sub>1</sub>, <italic>C</italic>
<sub>2</sub>, <italic>W</italic>
<sub>cc</sub>, and <italic>W</italic>
<sub>cr</sub>, which are selected by the user for each material in the simulated structure. Here we summarize the rules for assigning &#x201c;safe&#x201d; values to these parameters.</p>
<p>The absorption energies <inline-formula id="inf40">
<mml:math id="m94">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> should be estimated from either the characteristics of the experiment or the required space resolution. The quantities to be considered are the desired resolution of energy-deposition spectra and the penetration distances of particles with these energies (<italic>i.e.</italic>, photon mean free path and the residual ranges of electrons/positrons). P<sc>enelope</sc> prints tables of mean free paths and particle ranges when the initialization method <inline-formula id="inf41">
<mml:math id="m95">
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">E</mml:mi>
<mml:mi mathvariant="monospace">I</mml:mi>
<mml:mi mathvariant="monospace">N</mml:mi>
<mml:mi mathvariant="monospace">I</mml:mi>
<mml:mi mathvariant="monospace">T</mml:mi>
</mml:math>
</inline-formula> is invoked with the input parameter <inline-formula id="inf42">
<mml:math id="m96">
<mml:mi mathvariant="monospace">I</mml:mi>
<mml:mi mathvariant="monospace">N</mml:mi>
<mml:mi mathvariant="monospace">F</mml:mi>
<mml:mi mathvariant="monospace">O</mml:mi>
<mml:mi mathvariant="monospace">&#x3d;</mml:mi>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:math>
</inline-formula> or larger. For example, to calculate spatial dose distributions, the values <inline-formula id="inf43">
<mml:math id="m97">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> should be such that the penetration distances of particles with these energies are less than the typical dimensions of the volume bins used to tally the dose map. In other cases, it is advisable to run short simulations with increasing values of <inline-formula id="inf44">
<mml:math id="m98">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> (starting from 50&#xa0;eV) to study the effect of these parameters on the results.</p>
<p>The use of different absorption energies in neighboring bodies may create visible artifacts in the space distribution of absorbed dose. For instance, if the values of <inline-formula id="inf45">
<mml:math id="m99">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> for electrons in bodies 1 and 2 are, respectively, 10 and 100&#xa0;keV, electrons entering body 2 from body 1 with <italic>E</italic> less than 100&#xa0;keV will be absorbed at the first interaction, giving an excess of dose at the border of body 2. When the spatial distribution of absorbed dose is important, absorption energies should be given similar values over the region of interest. If the absorption energies of <italic>the three types of transported particles</italic> are given the same value in all the materials present, the simulated dose distribution is continuous when there is effective equilibrium of radiation with energy less than <inline-formula id="inf46">
<mml:math id="m100">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">K</mml:mi>
<mml:mi mathvariant="monospace">P</mml:mi>
<mml:mi mathvariant="monospace">A</mml:mi>
<mml:mi mathvariant="monospace">R</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>The random-hinge method for electrons and positrons is expected to work well when the accumulated effect (energy loss and angular deflection) of the soft interactions along a step is small. The cutoff energies <italic>W</italic>
<sub>cc</sub> and <italic>W</italic>
<sub>cr</sub> have a weak influence on the accuracy of the results provided that they are both smaller than the width of the bins used to tally energy distributions. It is worth recalling that the DCSs for inelastic collisions and bremsstrahlung emission decrease rapidly with the energy loss <italic>W</italic> (roughly as <italic>W</italic>
<sup>&#x2212;2</sup> and <italic>W</italic>
<sup>&#x2212;1</sup>, respectively). As a consequence, for particles with energies larger than about 100&#xa0;keV, when <italic>W</italic>
<sub>cc</sub> and <italic>W</italic>
<sub>cr</sub> are increased, the simulation speed tends to a saturation value. For these high energies, the gain in speed is small when the cutoffs are made larger than about 5&#xa0;keV. On the other hand, these cutoff energies have an effect on the energy-straggling distributions, which are faithfully described only when the number of hard interactions is &#x201c;statistically sufficient.&#x201d; Therefore, the cutoff energies should not be too large. Our recommendation is to set the cutoff energies equal to one 100th of the typical energy of primary particles, or 5&#xa0;keV, whichever is the smallest. Note that, for the sake of consistency, <italic>W</italic>
<sub>cc</sub> should be smaller than the absorption energy of electrons in the material, <inline-formula id="inf47">
<mml:math id="m101">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>; otherwise, we would miss secondary electrons that have energies larger than <inline-formula id="inf48">
<mml:math id="m102">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. Similarly, <italic>W</italic>
<sub>cr</sub> should be less than the photon absorption energy <inline-formula id="inf49">
<mml:math id="m103">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>The allowed values of the elastic-scattering parameters <italic>C</italic>
<sub>1</sub> and <italic>C</italic>
<sub>2</sub> are limited to the interval [0,0.2]. Because the energy dependence of the cross sections for soft interactions and of the hard mean free paths is effectively accounted for (<italic>see</italic> <xref ref-type="sec" rid="s3-1">Section 3.1</xref>), these two parameters have a very weak influence on the results. The recommended practice is to set <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05, which is fairly conservative. Before increasing the value of any of these parameters, it is advisable to perform short test simulations to verify that the results remain essentially unaltered when using the augmented parameter value (and that the simulation runs faster; if there is no gain in speed, keep the conservative values).</p>
<p>The parameter <italic>s</italic>
<sub>max</sub> is the maximum allowed step length. Limiting the step length is necessary to account for the variation of the mean free path for hard events, <inline-formula id="inf50">
<mml:math id="m104">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, with the energy of the particle. The value of <italic>s</italic>
<sub>max</sub> should be about, or less than one 10th of the characteristic thickness of the body where the particle is transported. This ensures that, on average, there will be more than 10 hinges along a typical electron/positron track through that body, which is enough to &#x201c;wash out&#x201d; the details of the artificial distributions used to sample these events. We recall that <sc>penelope</sc> internally forces the step length to be less than <inline-formula id="inf51">
<mml:math id="m105">
<mml:mn>4</mml:mn>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>. Therefore, for thick bodies (thicker than <inline-formula id="inf52">
<mml:math id="m106">
<mml:mo>&#x223c;</mml:mo>
<mml:mn>10</mml:mn>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>T</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>), the average number of hinges along each track is larger than about 10, and it is not necessary to limit the length of the steps. If the slowing-down of the particle due to soft events is described as a continuous stopping process, external step control is not critical.</p>
<p>It is interesting to observe that when the parameters <italic>C</italic>
<sub>1</sub>, <italic>C</italic>
<sub>2</sub>, and <italic>W</italic>
<sub>cc</sub> are set to zero, our class-II scheme becomes purely detailed (<italic>i.e.</italic>, nominally exact) simulation of elastic and inelastic collisions. Bremsstrahlung emission cannot be simulated detailedly because its DCS diverges at zero photon energy (and, hence, the total cross section is infinite), although the radiative stopping power is finite. When the input value of <italic>W</italic>
<sub>cr</sub> is negative, <sc>penelope</sc> sets <italic>W</italic>
<sub>cr</sub> &#x3d; 10&#xa0;eV and disregards the emission of photons with lower energies, thus performing an almost detailed simulation of radiative events. A clear advantage of our class-II scheme is that its accuracy and stability under variations of the user parameters can be numerically verified by simply comparing the simulation results with those of a detailed simulation.</p>
</sec>
</sec>
<sec id="s4">
<title>4 C&#x2b;&#x2b; Classes and Coupling to Geant4</title>
<p>Linking the <sc>penelope</sc> physics and tracking subroutines to G<sc>eant</sc>4 was not trivial because <italic>1</italic>) <sc>penelope</sc> transports electrons and positrons by using a class-II algorithm which operates differently to the tracking method used by G<sc>eant</sc>4, and <italic>2</italic>) <sc>penelope</sc> builds its interaction models from a material database that is different from the one used by G<sc>eant</sc>4. To ensure consistency, and to reduce the interference between the two transport modes, the <sc>penelope</sc> tracking is allowed in a limited energy interval, which by default extends from <italic>E</italic>
<sub>min</sub> &#x3d; 50&#xa0;eV to <italic>E</italic>
<sub>max</sub> &#x3d; 1&#xa0;GeV. Electrons, positrons, and photons with energies higher than <italic>E</italic>
<sub>max</sub> are followed by G<sc>eant</sc>4 as ordinary particles. The user defines a threshold energy <italic>E</italic>
<sub>thr</sub>, necessarily less than <italic>E</italic>
<sub>max</sub>, at which the transported electron, positron or gamma is converted into a <sc>penelope</sc>-type particle by cloning its state variables, and the remaining part of the history, until its completion, is generated by the <sc>penelope</sc> classes. To prevent interfering with the G<sc>eant</sc>4 logic, electrons, positrons, and photons passed to the <sc>penelope</sc> classes are considered as particles of a special type (denoted as <monospace>&#x201c;pe-&#x201d;</monospace>, <monospace>&#x201c;pe&#x2b;&#x201d;</monospace>, and <monospace>&#x201c;pgamma&#x201d;</monospace>, respectively) different from the G<sc>eant</sc>4 &#x201c;ordinary&#x201d; particles. In addition, secondary electrons, positrons, and photons released with initial energies less than <italic>E</italic>
<sub>thr</sub> are directly tracked by the <sc>penelope</sc> classes.</p>
<p>The C&#x2b;&#x2b; translation of the <sc>penelope</sc> physics and transport subroutines is organized in two directories: <monospace>penG4include</monospace> and <monospace>penG4src</monospace>, which store the corresponding header and source files, respectively. The coupling of the two simulation codes is organized as follows:<list list-type="simple">
<list-item>
<p>&#x2022; The file <monospace>penG4include/PenelopeDefines.hh</monospace> includes the definitions of all the constants, global variables and global-scope methods. Similarly, common variables and namespaces are declared in <monospace>penG4include/common-share.hh</monospace>.</p>
</list-item>
<list-item>
<p>&#x2022; The C&#x2b;&#x2b; <sc>penelope</sc> classes are organized into shared and thread-local sets according to the multi-thread design of G<sc>eant</sc>4. Thus, the <sc>penelope</sc> methods and data with thread-local scope are declared in <monospace>penG4include/local.h</monospace> and defined in <monospace>&#x2a;.cpp</monospace> files contained in the <monospace>penG4src/localSubs</monospace> directory, whereas methods and data that are shared over threads are declared in <monospace>penG4include/share.h</monospace> and implemented in files named <monospace>&#x2a;.cpp</monospace> and placed in the <monospace>penG4src/shareSubs/</monospace>directory.</p>
</list-item>
<list-item>
<p>&#x2022; The classes <monospace>PenInterface</monospace> and <monospace>PenPhys</monospace> encapsulate the C&#x2b;&#x2b; <sc>penelope</sc> classes. They constitute the &#x201c;bridge&#x201d; between <sc>penelope</sc> and the classes of the G<sc>eant</sc>4 application using&#x20;them.</p>
</list-item>
<list-item>
<p>&#x2022; The class <monospace>PenPhys</monospace> encapsulates the <sc>Penelope</sc> physics functions that are called during the tracking of particles, and it works with the thread-local classes mentioned above. Its public methods are issued from the <monospace>PenEMProcess</monospace> class, which dictates the physics and tracking models that are applied and proposes changes in the state variables of the particle being tracked.</p>
</list-item>
<list-item>
<p>&#x2022; <monospace>PenInterface</monospace> is a singleton class which contains all the methods shared over threads. In the G<sc>eant</sc>4 application, this class is used <italic>1</italic>) to register each material in the <monospace>DetectorConstruction</monospace> class with its corresponding transport parameters <monospace>EABS(1-3)</monospace>, <monospace>C1</monospace>, <monospace>C2</monospace>, <monospace>WCC</monospace> and <monospace>WCR</monospace> for tracking of <monospace>&#x201c;pe-&#x201d;</monospace>, <monospace>&#x201c;pe&#x2b;&#x201d;</monospace>, and <monospace>&#x201c;pgamma&#x201d;</monospace> particles, and <italic>2</italic>) to define the energy range (<italic>E</italic>
<sub>min</sub>, <italic>E</italic>
<sub>max</sub>) where the <sc>penelope</sc> tracking is applied. By default the code sets <italic>E</italic>
<sub>min</sub> &#x3d; 50&#xa0;eV and <italic>E</italic>
<sub>max</sub> &#x3d; 1&#xa0;GeV; these values can be set from the <monospace>PenelopeEMPhysics</monospace> constructor as indicated below. In addition, <monospace>PenInterface</monospace> is responsible for initializing the <sc>penelope</sc> classes. The class design also allows the user to create user-interface commands to set the transport parameters for each material.</p>
</list-item>
<list-item>
<p>&#x2022; The remaining classes of the code interface define the <sc>penelope</sc>-type particles being tracked by the G<sc>eant</sc>4 application and the <italic>processes</italic> modeling their electromagnetic interactions with matter. The code defines three new particle types by using the <monospace>G4ParticleDefinition</monospace> constructor, which correspond to electrons, photons, and positrons that are tracked by <sc>penelope</sc> and clone the static properties (rest mass, charge, etc.) of ordinary G<sc>eant</sc>4 particles,</p>
</list-item>
<list-item>
<p>&#x2022; <monospace>PenElectron</monospace> for a <sc>penelope</sc>-type electron, <monospace>&#x201c;pe-&#x201d;</monospace>,</p>
</list-item>
<list-item>
<p>&#x2022; <monospace>PenGamma</monospace> for a <sc>penelope</sc>-type photon, <monospace>&#x201c;pgamma&#x201d;</monospace>,</p>
</list-item>
<list-item>
<p>&#x2022; <monospace>PenPositron</monospace> for a <sc>penelope</sc>-type positron, <monospace>&#x201c;pe&#x2b;&#x201d;</monospace>.</p>
</list-item>
</list>
</p>
<p>Thus, during the same simulation we may use either <monospace>G4Electron</monospace>, <monospace>G4Gamma</monospace> and <monospace>G4Positron</monospace> and follow particles with ordinary G<sc>eant</sc>4 electromagnetic physics, or <monospace>PenElectron, PenGamma and PenPositron</monospace> for tracking them with the <sc>penelope</sc> physics and tracking.</p>
<p>As mentioned above, particles with energy <italic>E</italic> higher than <italic>E</italic>
<sub>thr</sub> are tracked by G<sc>eant</sc>4. When a particle (electron, photon, or positron) reaches a kinetic energy below <italic>E</italic>
<sub>thr</sub>, it must be converted to the corresponding <sc>penelope</sc>-type particle to switch the tracking to <sc>penelope</sc>. With this purpose, two classes derived from <monospace>G4VProcess</monospace> were defined:<list list-type="simple">
<list-item>
<p>&#x2022; <monospace>PenEMProcess</monospace> is the wrapper class for the <sc>penelope</sc> physics; it is only applicable to <sc>penelope</sc>-type particles. All the changes of the particle state variables are proposed <italic>via</italic> the process <monospace>PostStepDoIt()</monospace>, <italic>i.e.</italic>, in the same way as for discrete interactions. In addition, the <monospace>PenInterface</monospace> singleton is initialized within <monospace>PenEMProcess::BuildPhysicsTable()</monospace>, which in multi-thread mode is invoked once the G<sc>eant</sc>4 execution gets initialized by, for instance, issuing (blank) <italic>
<monospace>run/initialize</monospace>
</italic> command in a macro&#x20;file.</p>
</list-item>
<list-item>
<p>&#x2022; <monospace>PenPartConvertProcess</monospace> is the process responsible for converting a G<sc>eant</sc>4-type particle into the equivalent <sc>penelope</sc>-type particle once its kinetic energy falls below the threshold energy <italic>E</italic>
<sub>thr</sub>. The value of <italic>E</italic>
<sub>thr</sub>, which must be <inline-formula id="inf53">
<mml:math id="m107">
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> can be set by passing it as an argument of the <monospace>PenPartConvertProcess</monospace> constructor or using the <monospace>SetThresholdEnergy()</monospace> method. The class <monospace>PenEMProcess</monospace> is derived from <monospace>G4VDiscreteProcess</monospace>, it is of type <monospace>fDecay</monospace> and is only applicable to particles of types <monospace>G4Electron,</monospace> <monospace>G4Gamma and G4Positron</monospace>. It works by defining a special &#x201c;decay&#x201d; from the G<sc>eant</sc>4 ordinary particle to its corresponding <sc>penelope</sc> particle, keeping its dynamic properties (position, energy, direction of momentum, total time of flight&#x2026;).</p>
</list-item>
</list>
</p>
<p>Notice that no process is defined to do the inverse conversion, <italic>i.e.</italic>, we assume that once the <sc>penelope</sc> mode is entered, it remains active until the end of the transported particle history. It is also important to point out that the G<sc>eant</sc>4 production thresholds do not apply to the <sc>penelope</sc> physics and tracking.</p>
<p>Finally, a physics constructor named <monospace>PenelopeEMPhysics</monospace> derived from the generic <monospace>G4VPhysicsConstructor</monospace>, has been written to ease the inclusion of <sc>penelope</sc> physics into a G<sc>eant</sc>4 application by using a modular physics list. The value <italic>E</italic>
<sub>thr</sub> &#x3d; 500&#xa0;keV is assumed by default; it can be modified by passing the desired value as argument of the <monospace>G4PenelopeEMPhysics</monospace> constructor. Moreover, <italic>E</italic>
<sub>max</sub> can be set within the <monospace>ConstructProcess()</monospace> method <italic>via</italic> the <monospace>PenInterface</monospace> singleton. The values <italic>E</italic>
<sub>thr</sub> and <italic>E</italic>
<sub>max</sub> can also be set by issuing commands from a macro file. The <monospace>PenelopeEMPhysics</monospace> constructor registers in the <monospace>ConstructParticles()</monospace> method the <sc>penelope</sc>-type particles (<monospace>PenElectron, PenGamma, and PenPositron</monospace>). The <monospace>ConstructProcess()</monospace> method has been designed <italic>1</italic>) to add <monospace>PenPartConvertProces</monospace>s as a discrete process that converts the ordinary G<sc>eant</sc>4 electrons, photons, and positrons, when their energies fall below <italic>E</italic>
<sub>thr</sub>, into <sc>penelope</sc>-type particles, and <italic>2</italic>) to add <monospace>PenEMProcess</monospace> as the <italic>only</italic> discrete process for the <sc>penelope</sc>-type particles.</p>
<p>In what follows, for the sake of brevity, the combination of G<sc>eant</sc>4 and the <sc>penelope</sc> C&#x2b;&#x2b; methods and database will be named P<sc>en</sc>G4.</p>
</sec>
<sec id="s5">
<title>5 Validation of the penelope Classes</title>
<p>To verify the correctness of the implementation of the <sc>penelope</sc> physics and tracking scheme into G<sc>eant</sc>4, a series of simulations of monoenergetic pencil beams of electrons, positrons and photons incident on simple material structures have been performed. The considered geometries (<italic>see</italic> <xref ref-type="fig" rid="F8">Figure&#x20;8</xref>) are either a homogeneous cylinder of radius <italic>r</italic> and thickness <italic>t</italic>
<sub>1</sub>, or a number of stacked cylinders of the same radius and heights <italic>t</italic>
<sub>1</sub>, <italic>t</italic>
<sub>2</sub>, &#x2026;. In all cases the radiation beam impinges along the <italic>z</italic> axis, which coincides with the symmetry axis of the cylinders.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Schematic diagram of the geometries adopted in the example simulations. In all the examples, a pencil beam of particles impinges on the lower surface of the material cylinder along the <italic>z</italic>&#x20;axis.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g008.tif"/>
</fig>
<p>Simulations were performed by running the <sc>penelope</sc> Fortran code and the P<sc>en</sc>G4 C&#x2b;&#x2b; code under strictly equivalent conditions, <italic>i.e.</italic>, for the same materials and geometry parameters, the same beam characteristics, and the same set of simulation parameters. As the two codes utilize different random number generators, their results are expected to be consistent (within estimated statistical uncertainties) but not identical. The simulated arrangements were selected so as to evidence the consistency of the two simulations, and to magnify the effect of interfaces in thin structures, which is where the <sc>penelope</sc> tracking is deemed to be superior. It is worth mentioning that the adopted values of the simulation parameters were set to magnify the relevant processes, rather than ensuring reliability of the results.</p>
<p>In the following paragraphs we give a brief description of the various cases considered for validation of P<sc>en</sc>G4, with plots of sample results. The provided results era expected to be helpful to users of P<sc>en</sc>G4 as a basic test to confirm that the code is being used correctly. All distributions are normalized per primary particle and thus, for instance, the integral of the depth-dose distribution <italic>D</italic>(<italic>z</italic>) over depth <italic>z</italic> equals the average energy deposited into the target by each incident particle. Each plotted distribution is accompanied with a small plot of the relative difference &#x394;<sub>rel</sub> between the P<sc>en</sc>G4 and <sc>penelope</sc> values (dots) and its statistical uncertainty (gray bars). Generally, &#x394;<sub>rel</sub> is less than its uncertainty, that is, the results from the two codes are statistically consistent.</p>
<sec id="s5-1">
<title>1. Electron Beam on a Copper Cylinder</title>
<p>In this example a beam of 1&#xa0;MeV electrons impinged on a copper cylinder (material ID &#x3d; 29) having radius <italic>r</italic>&#x20;&#x3d; 1&#xa0;cm and thickness <italic>t</italic>
<sub>1</sub> &#x3d; 4.25 &#xd7; 10<sup>&#x2013;4</sup>&#xa0;cm, about 75 elastic mean free paths of electrons with the initial energy. The parameters used in these simulations were <italic>E</italic>
<sub>max</sub> &#x3d; <italic>E</italic>
<sub>thr</sub> &#x3d; 1&#xa0;MeV (<italic>i.e.</italic>, all particles were of <sc>penelope</sc> type), <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05, <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 1&#xa0;keV, <inline-formula id="inf54">
<mml:math id="m108">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>10</mml:mn>
</mml:math>
</inline-formula> keV, <inline-formula id="inf55">
<mml:math id="m109">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> keV, <italic>s</italic>
<sub>max</sub> &#x3d; 2&#x20;&#xd7; 10<sup>&#x2013;5</sup>&#xa0;cm, and each simulation run involved the generation of 2.0 &#xd7; 10<sup>9</sup> showers. <xref ref-type="fig" rid="F9">Figure&#x20;9</xref> shows partial results from the simulations: the depth-dose distribution (integrated laterally), the energy distribution of transmitted (upbound) electrons, and the angular distributions of electrons and photons emerging from the material cylinder. The blue histograms are results from <sc>penelope</sc>; they effectively mask the results from P<sc>en</sc>G4, represented as red histograms, which are only visible where statistical uncertainties are appreciable.</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>Simulation results for 1&#xa0;MeV electrons incident on a copper cylinder, as described in the text. The blue histograms are results from <sc>penelope</sc>. Red histograms, practically invisible, are results from P<sc>en</sc>G4. The upper diagram in each plot displays the relative differences of the results (dots) and their associated statistical uncertainties with coverage factor &#x3d; 3 (gray bars).</p>
</caption>
<graphic xlink:href="fphy-09-738735-g009.tif"/>
</fig>
</sec>
<sec id="s5-2">
<title>2. Electrons on a Tungsten Plate</title>
<p>
<xref ref-type="fig" rid="F10">Figure&#x20;10</xref> shows partial results from simulations of 125&#xa0;keV electrons impinging on a tungsten cylinder (material ID &#x3d; 74) with radius <italic>r</italic>&#x20;&#x3d; 1&#xa0;cm and thickness <italic>t</italic>
<sub>1</sub> &#x3d; 24&#xa0;<italic>&#x3bc;</italic>m, approximately equal to the CSDA range of incident electrons. The adopted simulation parameters were <italic>E</italic>
<sub>max</sub> &#x3d; <italic>E</italic>
<sub>thr</sub> &#x3d; 125&#xa0;keV, <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05, <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 1&#xa0;keV, <inline-formula id="inf56">
<mml:math id="m110">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>5</mml:mn>
</mml:math>
</inline-formula> keV, <inline-formula id="inf57">
<mml:math id="m111">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> keV. The variance-reduction techniques of interaction forcing and bremsstrahlung and x-ray splitting were used in the <sc>penelope</sc> simulation, while P<sc>en</sc>G4 did an analogue simulation. The displayed results are the depth-dose distribution (integrated laterally) and the energy distribution of photons released with polar angles <italic>&#x3b8;</italic> &#x3e; 90&#xb0; (lower hemisphere).</p>
<fig id="F10" position="float">
<label>FIGURE 10</label>
<caption>
<p>Simulation results for 125&#xa0;keV electrons incident on a tungsten cylinder. Details are the same as in <xref ref-type="fig" rid="F9">Figure&#x20;9</xref>.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g010.tif"/>
</fig>
</sec>
<sec id="s5-3">
<title>3. Positron Beam on a Copper Foil</title>
<p>Simulations were performed for 1&#xa0;MeV positrons incident on a copper foil (material ID &#x3d; 29) having radius <italic>r</italic>&#x20;&#x3d; 1&#xa0;cm and thickness <italic>t</italic>
<sub>1</sub> &#x3d; 4.25 &#xd7; 10<sup>&#x2013;4</sup>&#xa0;cm. The parameters used in these simulations were <italic>E</italic>
<sub>max</sub> &#x3d; <italic>E</italic>
<sub>thr</sub> &#x3d; 1.82952&#xa0;MeV (<italic>i.e.</italic>, 1.21&#x20;times the initial total energy of positrons, including their rest mass), <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.05, <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 1&#xa0;keV, <inline-formula id="inf58">
<mml:math id="m112">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>10</mml:mn>
</mml:math>
</inline-formula> keV, <inline-formula id="inf59">
<mml:math id="m113">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> keV, <italic>s</italic>
<sub>max</sub> &#x3d; 2&#x20;&#xd7; 10<sup>&#x2013;5</sup>&#xa0;cm, and 2.0 &#xd7; 10<sup>9</sup> showers were generated in each run. <xref ref-type="fig" rid="F11">Figure&#x20;11</xref> shows the calculated energy distributions of transmitted positrons and photons, which are sensitive to both positron and photon transport.</p>
<fig id="F11" position="float">
<label>FIGURE 11</label>
<caption>
<p>Simulation results for 1&#xa0;MeV positrons on a copper foil. Details are the same as in <xref ref-type="fig" rid="F9">Figure&#x20;9</xref>.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g011.tif"/>
</fig>
</sec>
<sec id="s5-4">
<title>4. Photons on a 1.5&#x201d; NaI Detector With Aluminium Backing</title>
<p>In this simulation example a 1.25&#xa0;MeV photon beam impinges on a NaI cylinder (material ID &#x3d; 253) covered with an aluminium cylinder (material ID &#x3d; 13); the two cylinders have the same radius, <italic>r</italic>&#x20;&#x3d; 1.905 cm, and the heights of the NaI and the Al cylinders are <italic>t</italic>
<sub>1</sub> &#x3d; 3.810&#xa0;cm and <italic>t</italic>
<sub>2</sub> &#x3d; 2.190 cm, respectively. Simulations were run with the parameters <italic>E</italic>
<sub>max</sub> &#x3d; <italic>E</italic>
<sub>thr</sub> &#x3d; 1.25 MeV, <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.1, <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 2&#xa0;keV, <inline-formula id="inf60">
<mml:math id="m114">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>50</mml:mn>
</mml:math>
</inline-formula> keV, <inline-formula id="inf61">
<mml:math id="m115">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>10</mml:mn>
</mml:math>
</inline-formula> keV. <xref ref-type="fig" rid="F12">Figure&#x20;12</xref> shows depth-dose distribution (integrated laterally) with a noteworthy interface discontinuity, and the spectrum of energy deposited in the NaI cylinder, which features scape peaks of positron-annihilation photons and a visible Compton backscattering peak around the position of the double-scape&#x20;peak.</p>
<fig id="F12" position="float">
<label>FIGURE 12</label>
<caption>
<p>Simulation results for 1.25&#xa0;MeV photons incident on a NaI cylinder with aluminium backing. Details are the same as in <xref ref-type="fig" rid="F9">Figure&#x20;9</xref>.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g012.tif"/>
</fig>
</sec>
<sec id="s5-5">
<title>5. Photons on a Stack of Three Cylinders of Different Materials</title>
<p>We performed simulations of a 1.25&#xa0;MeV photon beam incident on a stack of three cylinders of radius 50&#xa0;cm consisting of two layers of liquid water (<italic>t</italic>
<sub>1</sub> &#x3d; 2&#xa0;cm and <italic>t</italic>
<sub>3</sub> &#x3d; 2&#xa0;cm, material ID &#x3d; 278) separated by a layer of aluminium (<italic>t</italic>
<sub>2</sub> &#x3d; 1&#xa0;cm, material ID &#x3d; 13). The adopted simulation parameters were <italic>E</italic>
<sub>max</sub> &#x3d; <italic>E</italic>
<sub>thr</sub> &#x3d; 1.25 MeV, <italic>C</italic>
<sub>1</sub> &#x3d; <italic>C</italic>
<sub>2</sub> &#x3d; 0.1, <italic>W</italic>
<sub>cc</sub> &#x3d; <italic>W</italic>
<sub>cr</sub> &#x3d; 2&#xa0;keV, <inline-formula id="inf62">
<mml:math id="m116">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">1</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">3</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>50</mml:mn>
</mml:math>
</inline-formula> keV, <inline-formula id="inf63">
<mml:math id="m117">
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="monospace">2</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>10</mml:mn>
</mml:math>
</inline-formula> keV. <xref ref-type="fig" rid="F13">Figure&#x20;13</xref> shows the simulated depth-dose distributions (integrated laterally) with characteristic discontinuities at the interfaces, and the energy spectra of downbound photons, <italic>i.e.</italic>, emerging from the irradiated object with polar angles larger than 90&#xb0; (lower hemisphere).</p>
<fig id="F13" position="float">
<label>FIGURE 13</label>
<caption>
<p>Results for a 1.25&#xa0;MeV photon beam incident on a stack of three cylinders of water, aluminium, and water. Details are the same as in <xref ref-type="fig" rid="F9">Figure&#x20;9</xref>.</p>
</caption>
<graphic xlink:href="fphy-09-738735-g013.tif"/>
</fig>
</sec>
</sec>
<sec id="s6">
<title>6 Conclusion</title>
<p>The code system <sc>penelope</sc> implements reliable interaction models and a robust class-II mixed scheme for tracking electrons and positrons through complex geometrical structures. In the present article we have summarized the interaction models implemented in the code, and provided a concise description of the class-II algorithm used for tracking electrons and positrons, in a way that can be readily applied to other charged particles (<italic>see</italic>, <italic>e.g.</italic>, Refs. [<xref ref-type="bibr" rid="B54">54</xref>,&#x20;<xref ref-type="bibr" rid="B55">55</xref>]).</p>
<p>Since there is ample evidence of the reliability of <sc>penelope</sc>&#x2019;s simulation results for electrons/positrons and photons with energies from about 1&#xa0;keV up to &#x223c;1&#xa0;GeV, we have translated the <sc>penelope</sc> physics and tracking subroutines to C&#x2b;&#x2b; and organized them to be accessible from G<sc>eant</sc>4 as an additional physics package. The new tool, named P<sc>en</sc>G4 has been shown to couple correctly to G<sc>eant</sc>4 and to yield results equivalent to those from the original <sc>penelope</sc>&#x20;code.</p>
<p>Using the two codes, we have performed a set of test simulations with various incident particles and material structures, which were designed to explore different aspects of the transport physics, and we obtained consistent results. Inclusion of P<sc>en</sc>G4 as part of the G<sc>eant</sc>4 toolkit allows taking advantage of the multi-threading capabilities and advanced geometry and statistical tools of G<sc>eant</sc>4.</p>
<p>The P<sc>en</sc>G4 package, including the <sc>penelope</sc> C&#x2b;&#x2b; classes and physics database, is currently available from the authors, and it will soon be distributed through international agencies.</p>
</sec>
</body>
<back>
<sec id="s7">
<title>Data Availability Statement</title>
<p>The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding authors.</p>
</sec>
<sec id="s8">
<title>Author Contributions</title>
<p>All authors have contributed equally to the&#x20;work.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ack>
<p>Financial support from the Spanish Ministerio de Ciencia, Innovaci&#xf3;n y Universidades/Agencia Estatal de Investigaci&#xf3;n/European Regional Development Fund, European Union, (projects nos. RTI2018-098117-B-C21 and RTI2018-098117-B-C22) is gratefully aknowledged. The work of VA was supported by the program &#x201c;Ayudas para la contrataci&#xf3;n de personal investigador en formaci&#xf3;n de car&#xe1;cter predoctoral, programa VALi&#x2b;d&#x201d; under grant number ACIF/2018/148 from the Conselleria d&#x2019;Educaci&#xf3; of the Generalitat Valenciana and the Fondo Social Europeo (FSE). VG acknowledges partial support from FEDER/MCIyU-AEI under grant FPA2017-84543-P, by the Severo Ochoa Excellence Program under grant SEV-2014-0398 and by Generalitat Valenciana through the project PROMETEO/2019/087.</p>
</ack>
<fn-group>
<fn id="FN1">
<label>1</label>
<p>The name is an acronym that stands for &#x201c;PENetration and Energy LOss of Positrons and Electrons.&#x201d;</p>
</fn>
<fn id="FN2">
<label>2</label>
<p>When small angles dominate, <inline-formula id="inf64">
<mml:math id="m118">
<mml:mrow>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
</mml:mrow>
<mml:msub>
<mml:mo>&#x27e9;</mml:mo>
<mml:mn>1</mml:mn>
</mml:msub>
</mml:mrow>
<mml:mo>&#x2243;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>&#x03B8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo>&#x27e9;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo>/</mml:mo>
<mml:mn>4</mml:mn>
</mml:math>
</inline-formula> and <inline-formula id="inf65">
<mml:math id="m119">
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2243;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo>&#x27e8;</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>&#x03B8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo>&#x27e9;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>/</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>el</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</fn>
<fn id="fn3">
<label>3</label>
<p>The normalized uniform distribution in the interval (<italic>a</italic>, <italic>b</italic>), with <italic>a</italic>&#x20;&#x3c; <italic>b</italic>, is <inline-formula id="e126b">
<mml:math id="m147">
<mml:mi>U</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>;</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>/</mml:mo>
<mml:mo>(</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if</mml:mtext>
<mml:mspace width="0.3333em"/>
<mml:mi>a</mml:mi>
<mml:mo>&#x003c;</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>b</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>otherwise.</mml:mtext>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>
</p>
</fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bar&#xf3;</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Sempau</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>PENELOPE: An Algorithm for Monte Carlo Simulation of the Penetration and Energy Loss of Electrons and Positrons in Matter</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>1995</year>) <volume>100</volume>:<fpage>31</fpage>&#x2013;<lpage>46</lpage>. <pub-id pub-id-type="doi">10.1016/0168-583x(95)00349-5</pub-id> </citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <source>penelope-2018: A Code System for Monte Carlo Simulation of Electron and Photon Transport</source>. <publisher-loc>Boulogne-Billancourt, France</publisher-loc>: <publisher-name>OECD Nuclear Energy Agency, document NEA/MBDAV/R(2019)1</publisher-name> (<year>2019</year>). <pub-id pub-id-type="doi">10.1787/32da5043-en</pub-id> </citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sempau</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Acosta</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Experimental Benchmarks of the Monte Carlo Code PENELOPE</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>2003</year>) <volume>207</volume>:<fpage>107</fpage>&#x2013;<lpage>23</lpage>. <pub-id pub-id-type="doi">10.1016/s0168-583x(03)00453-1</pub-id> </citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Agostinelli</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Allison</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Amako</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Apostolakis</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Araujo</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Arce</surname>
<given-names>P</given-names>
</name>
<etal/>
</person-group>
<article-title> Geant4&#x2014;A Simulation Toolkit</article-title>. <source>Nucl Instrum Meth A</source> (<year>2003</year>) <volume>506</volume>:<fpage>250</fpage>&#x2013;<lpage>303</lpage>. <pub-id pub-id-type="doi">10.1016/S0168-9002(03)01368-8</pub-id> </citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Allison</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Amako</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Apostolakis</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Araujo</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Arce Dubois</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Asai</surname>
<given-names>M.</given-names>
</name> </person-group>
<article-title>Geant4 Developments and Applications</article-title>. <source>IEEE Trans Nucl Sci</source> (<year>2006</year>) <volume>53</volume>:<fpage>270</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1109/TNS.2006.869826</pub-id> </citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Allison</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Amako</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Apostolakis</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Arce</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Asai</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Aso</surname>
<given-names>T.</given-names>
</name>
</person-group> <article-title>Recent Developments in Geant4</article-title>. <source>Nucl Instrum Meth A</source> (<year>2016</year>) <volume>835</volume>:<fpage>186</fpage>&#x2013;<lpage>225</lpage>. <pub-id pub-id-type="doi">10.1016/j.nima.2016.06.125</pub-id> </citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fano</surname>
<given-names>U</given-names>
</name>
</person-group>. <article-title>Penetration of Protons, Alpha Particles, and Mesons</article-title>. <source>Annu Rev Nucl Sci</source> (<year>1963</year>) <volume>13</volume>:<fpage>1</fpage>&#x2013;<lpage>66</lpage>. <pub-id pub-id-type="doi">10.1146/annurev.ns.13.120163.000245</pub-id> </citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Inokuti</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Inelastic Collisions of Fast Charged Particles with Atoms and Molecules-The Bethe Theory Revisited</article-title>. <source>Rev Mod Phys</source> (<year>1971</year>) <volume>43</volume>:<fpage>297</fpage>&#x2013;<lpage>347</lpage>. <pub-id pub-id-type="doi">10.1103/revmodphys.43.297</pub-id> </citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="book">
<collab>ICRU Report 37</collab>. <source>Stopping Powers for Electrons and Positrons</source>. <publisher-loc>Bethesda, MD</publisher-loc>: <publisher-name>ICRU</publisher-name> (<year>1984</year>). . </citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
</person-group>. <article-title>Overview of Physical Interaction Models for Photon and Electron Transport Used in Monte Carlo Codes</article-title>. <source>Metrologia</source> (<year>2009</year>) <volume>46</volume>:<fpage>S112</fpage>&#x2013;<lpage>S138</lpage>. <pub-id pub-id-type="doi">10.1088/0026-1394/46/2/s08</pub-id> </citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cromer</surname>
<given-names>DT</given-names>
</name>
<name>
<surname>Liberman</surname>
<given-names>D</given-names>
</name>
</person-group>. <article-title>Relativistic Calculation of Anomalous Scattering Factors for X Rays</article-title>. <source>J&#x20;Chem Phys</source> (<year>1970</year>) <volume>53</volume>:<fpage>1891</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1063/1.1674266</pub-id> </citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Cullen</surname>
<given-names>DE</given-names>
</name>
<name>
<surname>Hubbell</surname>
<given-names>JH</given-names>
</name>
<name>
<surname>Kissel</surname>
<given-names>L</given-names>
</name>
</person-group>. <article-title>EPDL97 the Evaluated Photon Data Library, &#x2032;97 Version</article-title>. In: <source>Tech. Rep. UCRL-50400</source>. <publisher-loc>Livermore, CA</publisher-loc>: <publisher-name>Lawrence Livermore National Laboratory</publisher-name> (<year>1997</year>). </citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Brusa</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Stutz</surname>
<given-names>G</given-names>
</name>
<name>
<surname>Riveros</surname>
<given-names>JA</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Fast Sampling Algorithm for the Simulation of Photon Compton Scattering</article-title>. <source>Nucl Instr Methods Phys Res Section A: Acc Spectrometers, Detectors Associated Equipment</source> (<year>1996</year>) <volume>379</volume>:<fpage>167</fpage>&#x2013;<lpage>75</lpage>. <pub-id pub-id-type="doi">10.1016/0168-9002(96)00652-3</pub-id> </citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Biggs</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Mendelsohn</surname>
<given-names>LB</given-names>
</name>
<name>
<surname>Mann</surname>
<given-names>JB</given-names>
</name>
</person-group>. <article-title>Hartree-Fock Compton Profiles for the Elements</article-title>. <source>At Data Nucl Data Tables</source> (<year>1975</year>) <volume>16</volume>:<fpage>201</fpage>&#x2013;<lpage>309</lpage>. <pub-id pub-id-type="doi">10.1016/0092-640x(75)90030-3</pub-id> </citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sabbatucci</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Theory and Calculation of the Atomic Photoeffect</article-title>. <source>Radiat Phys Chem</source> (<year>2016</year>) <volume>121</volume>:<fpage>122</fpage>&#x2013;<lpage>40</lpage>. <pub-id pub-id-type="doi">10.1016/j.radphyschem.2015.10.021</pub-id> </citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liberman</surname>
<given-names>DA</given-names>
</name>
<name>
<surname>Cromer</surname>
<given-names>DT</given-names>
</name>
<name>
<surname>Waber</surname>
<given-names>JT</given-names>
</name>
</person-group>. <article-title>Relativistic Self-Consistent Field Program for Atoms and Ions</article-title>. <source>Comp Phys Commun</source> (<year>1971</year>) <volume>2</volume>:<fpage>107</fpage>&#x2013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1016/0010-4655(71)90020-8</pub-id> </citation>
</ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
</person-group>. <article-title>Radial: A Fortran Subroutine Package for the Solution of the Radial Schr&#xf6;dinger and Dirac Wave Equations</article-title>. <source>Comp Phys Commun</source> (<year>2019</year>) <volume>240</volume>:<fpage>165</fpage>&#x2013;<lpage>77</lpage>. <pub-id pub-id-type="doi">10.1016/j.cpc.2019.02.011</pub-id> </citation>
</ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Carlson</surname>
<given-names>TA</given-names>
</name>
</person-group>. <source>Photoelectron and Auger Spectroscopy</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Plenum Press</publisher-name> (<year>1975</year>). </citation>
</ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pratt</surname>
<given-names>RH</given-names>
</name>
<name>
<surname>Tseng</surname>
<given-names>HK</given-names>
</name>
</person-group>. <article-title>Behavior of Electron Wave Functions Near the Atomic Nucleus and Normalization Screening Theory in the Atomic Photoeffect</article-title>. <source>Phys Rev A</source> (<year>1972</year>) <volume>5</volume>:<fpage>1063</fpage>&#x2013;<lpage>72</lpage>. <pub-id pub-id-type="doi">10.1103/physreva.5.1063</pub-id> </citation>
</ref>
<ref id="B20">
<label>20.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sauter</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>&#xdc;ber den atomaren Photoeffekt in der K-Schale nach der relativistischen Wellenmechanik Diracs</article-title>. <source>Ann Phys</source> (<year>1931</year>) <volume>403</volume>:<fpage>454</fpage>&#x2013;<lpage>88</lpage>. <pub-id pub-id-type="doi">10.1002/andp.19314030406</pub-id> </citation>
</ref>
<ref id="B21">
<label>21.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Coursey</surname>
<given-names>JS</given-names>
</name>
<name>
<surname>Zucker</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Chang</surname>
<given-names>J</given-names>
</name>
</person-group>. <source>Stopping-power and Range Tables for Electrons, Protons, and Helium Ions</source>. <publisher-loc>Gaithersburg, MD</publisher-loc>: <publisher-name>Tech. rep., Institute of Standards and Technology</publisher-name> (<year>2005</year>). <comment>Available at: <ext-link ext-link-type="uri" xlink:href="http://www.nist.gov/pml/data/star/index.cfm">www.nist.gov/pml/data/star/index.cfm</ext-link>
</comment>. </citation>
</ref>
<ref id="B22">
<label>22.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Jablonski</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Powell</surname>
<given-names>CJ</given-names>
</name>
</person-group>. <article-title>Elsepa-Dirac Partial-Wave Calculation of Elastic Scattering of Electrons and Positrons by Atoms, Positive Ions and Molecules</article-title>. <source>Comp Phys Commun</source> (<year>2005</year>) <volume>165</volume>:<fpage>157</fpage>&#x2013;<lpage>90</lpage>. <pub-id pub-id-type="doi">10.1016/j.cpc.2004.09.006</pub-id> </citation>
</ref>
<ref id="B23">
<label>23.</label>
<citation citation-type="book">
<collab>ICRU Report 77</collab>. <source>Elastic Scattering of Electrons and Positrons</source>. <publisher-loc>Bethesda, MD</publisher-loc>: <publisher-name>ICRU</publisher-name> (<year>2007</year>). </citation>
</ref>
<ref id="B24">
<label>24.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Desclaux</surname>
<given-names>JP</given-names>
</name>
</person-group>. <article-title>A Multiconfiguration Relativistic Dirac-Fock Program</article-title>. <source>Comp Phys Commun</source> (<year>1975</year>) <volume>9</volume>:<fpage>31</fpage>&#x2013;<lpage>45</lpage>. <pub-id pub-id-type="doi">10.1016/0010-4655(75)90054-5</pub-id> </citation>
</ref>
<ref id="B25">
<label>25.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Desclaux</surname>
<given-names>JP</given-names>
</name>
</person-group>. <article-title>Erratum Notice</article-title>. <source>Comput Phys Commun</source> (<year>1977</year>) <volume>13</volume>:<fpage>71</fpage>. <pub-id pub-id-type="doi">10.1016/0010-4655(77)90029-7</pub-id> </citation>
</ref>
<ref id="B26">
<label>26.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Furness</surname>
<given-names>JB</given-names>
</name>
<name>
<surname>McCarthy</surname>
<given-names>IE</given-names>
</name>
</person-group>. <article-title>Semiphenomenological Optical Model for Electron Scattering on Atoms</article-title>. <source>J&#x20;Phys B: Mol Phys</source> (<year>1973</year>) <volume>6</volume>:<fpage>2280</fpage>&#x2013;<lpage>91</lpage>. <pub-id pub-id-type="doi">10.1088/0022-3700/6/11/021</pub-id> </citation>
</ref>
<ref id="B27">
<label>27.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liljequist</surname>
<given-names>D</given-names>
</name>
</person-group>. <article-title>A Simple Calculation of Inelastic Mean Free Path and Stopping Power for 50&#x20;eV-50 keV Electrons in Solids</article-title>. <source>J&#x20;Phys D: Appl Phys</source> (<year>1983</year>) <volume>16</volume>:<fpage>1567</fpage>&#x2013;<lpage>82</lpage>. <pub-id pub-id-type="doi">10.1088/0022-3727/16/8/023</pub-id> </citation>
</ref>
<ref id="B28">
<label>28.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sternheimer</surname>
<given-names>RM</given-names>
</name>
</person-group>. <article-title>The Density Effect for the Ionization Loss in Various Materials</article-title>. <source>Phys Rev</source> (<year>1952</year>) <volume>88</volume>:<fpage>851</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1103/physrev.88.851</pub-id> </citation>
</ref>
<ref id="B29">
<label>29.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bote</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Calculations of Inner-Shell Ionization by Electron Impact with the Distorted-Wave and Plane-Wave Born Approximations</article-title>. <source>Phys Rev A</source> (<year>2008</year>) <volume>77</volume>:<fpage>042701</fpage>. <pub-id pub-id-type="doi">10.1103/physreva.77.042701</pub-id> </citation>
</ref>
<ref id="B30">
<label>30.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Llovet</surname>
<given-names>X</given-names>
</name>
<name>
<surname>Powell</surname>
<given-names>CJ</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Jablonski</surname>
<given-names>A</given-names>
</name>
</person-group>. <article-title>Cross Sections for Inner-Shell Ionization by Electron Impact</article-title>. <source>J&#x20;Phys Chem Reference Data</source> (<year>2014</year>) <volume>43</volume>:<fpage>013102</fpage>. <pub-id pub-id-type="doi">10.1063/1.4832851</pub-id> </citation>
</ref>
<ref id="B31">
<label>31.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
</person-group>. <article-title>Bremsstrahlung Spectra from Electron Interactions with Screened Atomic Nuclei and Orbital Electrons</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>1985</year>) <volume>12</volume>:<fpage>95</fpage>&#x2013;<lpage>134</lpage>. <pub-id pub-id-type="doi">10.1016/0168-583x(85)90707-4</pub-id> </citation>
</ref>
<ref id="B32">
<label>32.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
</person-group>. <article-title>Bremsstrahlung Energy Spectra from Electrons with Kinetic Energy 1&#x20;keV-10 GeV Incident on Screened Nuclei and Orbital Electrons of Neutral Atoms with Z &#x3d; 1-100</article-title>. <source>At Data Nucl Data Tables</source> (<year>1986</year>) <volume>35</volume>:<fpage>345</fpage>&#x2013;<lpage>418</lpage>. <pub-id pub-id-type="doi">10.1016/0092-640x(86)90014-8</pub-id> </citation>
</ref>
<ref id="B33">
<label>33.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Acosta</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Llovet</surname>
<given-names>X</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Monte Carlo Simulation of Bremsstrahlung Emission by Electrons</article-title>. <source>Appl Phys Lett</source> (<year>2002</year>) <volume>80</volume>:<fpage>3228</fpage>&#x2013;<lpage>30</lpage>. <pub-id pub-id-type="doi">10.1063/1.1473684</pub-id> </citation>
</ref>
<ref id="B34">
<label>34.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Po&#x161;kus</surname>
<given-names>A</given-names>
</name>
</person-group>. <article-title>BREMS: A Program for Calculating Spectra and Angular Distributions of Bremsstrahlung at Electron Energies Less Than 3 MeV</article-title>. <source>Comput Phys Commun</source> (<year>2018</year>) <volume>232</volume>:<fpage>237</fpage>&#x2013;<lpage>55</lpage>. <pub-id pub-id-type="doi">10.17632/mvd57skzd9.1</pub-id> </citation>
</ref>
<ref id="B35">
<label>35.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kissel</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Quarles</surname>
<given-names>CA</given-names>
</name>
<name>
<surname>Pratt</surname>
<given-names>RH</given-names>
</name>
</person-group>. <article-title>Shape Functions for Atomic-Field Bremsstrahlung from Electrons of Kinetic Energy 1-500 keV on Selected Neutral Atoms 1&#x20;&#x2264; Z &#x2264; 92</article-title>. <source>At Data Nucl Data Tables</source> (<year>1983</year>) <volume>28</volume>:<fpage>381</fpage>&#x2013;<lpage>460</lpage>. <pub-id pub-id-type="doi">10.1016/0092-640x(83)90001-3</pub-id> </citation>
</ref>
<ref id="B36">
<label>36.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Heitler</surname>
<given-names>W</given-names>
</name>
</person-group>. <source>The Quantum Theory of Radiation</source>. <publisher-loc>London, UK</publisher-loc>: <publisher-name>Oxford University Press</publisher-name> (<year>1954</year>). </citation>
</ref>
<ref id="B37">
<label>37.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Nelson</surname>
<given-names>WR</given-names>
</name>
<name>
<surname>Hirayama</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Rogers</surname>
<given-names>DWO</given-names>
</name>
</person-group>. <source>The EGS4 Code System</source>. <publisher-loc>Stanford, CA</publisher-loc>: <publisher-name>Stanford Linear Accelerator Center</publisher-name> (<year>1985</year>). </citation>
</ref>
<ref id="B38">
<label>38.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Perkins</surname>
<given-names>ST</given-names>
</name>
<name>
<surname>Cullen</surname>
<given-names>DE</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>MH</given-names>
</name>
<name>
<surname>Hubbell</surname>
<given-names>JH</given-names>
</name>
<name>
<surname>Rathkopf</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Scofield</surname>
<given-names>J</given-names>
</name>
</person-group>. <source>Tables and Graphs of Atomic Subshell and Relaxation Data Derived from the LLNL Evaluated Atomic Data Library (EADL), <italic>Z</italic>&#x20;&#x3d; 1&#x2013;100</source>. <publisher-loc>Livermore, CA</publisher-loc>: <publisher-name>Lawrence Livermore National Laboratory</publisher-name> (<year>1991</year>). </citation>
</ref>
<ref id="B39">
<label>39.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Deslattes</surname>
<given-names>RD</given-names>
</name>
<name>
<surname>Kessler</surname>
<given-names>EG</given-names>
</name>
<name>
<surname>Indelicato</surname>
<given-names>P</given-names>
</name>
<name>
<surname>de Billy</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Lindroth</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Anton</surname>
<given-names>J</given-names>
</name>
</person-group>. <article-title>X-ray Transition Energies: New Approach to a Comprehensive Evaluation</article-title>. <source>Rev Mod Phys</source> (<year>2003</year>) <volume>75</volume>:<fpage>36</fpage>&#x2013;<lpage>99</lpage>. <pub-id pub-id-type="doi">10.1103/revmodphys.75.35</pub-id> </citation>
</ref>
<ref id="B40">
<label>40.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bearden</surname>
<given-names>JA</given-names>
</name>
</person-group>. <article-title>X-ray Wavelengths</article-title>. <source>Rev Mod Phys</source> (<year>1967</year>) <volume>39</volume>:<fpage>78</fpage>&#x2013;<lpage>124</lpage>. <pub-id pub-id-type="doi">10.1103/revmodphys.39.78</pub-id> </citation>
</ref>
<ref id="B41">
<label>41.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Walker</surname>
<given-names>AJ</given-names>
</name>
</person-group>. <article-title>An Efficient Method for Generating Discrete Random Variables with General Distributions</article-title>. <source>ACM Trans Math Softw</source> (<year>1977</year>) <volume>3</volume>:<fpage>253</fpage>&#x2013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.1145/355744.355749</pub-id> </citation>
</ref>
<ref id="B42">
<label>42.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
</person-group>. <article-title>Monte Carlo Calculation of the Penetration and Diffusion of Fast Charged Particles</article-title>. In: <person-group person-group-type="editor">
<name>
<surname>Alder</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Fernbach</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Rotenberg</surname>
<given-names>M</given-names>
</name>
</person-group>, editors. <source>Methods in Computational Physics</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Academic Press</publisher-name> (<year>1963</year>). <fpage>135</fpage>&#x2013;<lpage>215</lpage>. </citation>
</ref>
<ref id="B43">
<label>43.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
</person-group>. <article-title>An Overview of ETRAN Monte Carlo Methods</article-title>. In: <person-group person-group-type="editor">
<name>
<surname>Jenkins</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>Nelson</surname>
<given-names>WR</given-names>
</name>
<name>
<surname>Rindi</surname>
<given-names>A</given-names>
</name>
</person-group>, editors. <source>Monte Carlo Transport of Electrons and Photons</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Plenum</publisher-name> (<year>1988</year>). </citation>
</ref>
<ref id="B44">
<label>44.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
</person-group>. <article-title>Applications of ETRAN Monte Cario Codes</article-title>. In: <person-group person-group-type="editor">
<name>
<surname>Jenkins</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>Nelson</surname>
<given-names>WR</given-names>
</name>
<name>
<surname>Rindi</surname>
<given-names>A</given-names>
</name>
</person-group>, editors. <source>Monte Carlo Transport of Electrons and Photons</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Plenum</publisher-name> (<year>1988</year>). </citation>
</ref>
<ref id="B45">
<label>45.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
</person-group>. <article-title>ETRAN &#x2014;&#x20;Experimental Benchmarks</article-title>. In: <person-group person-group-type="editor">
<name>
<surname>Jenkins</surname>
<given-names>TM</given-names>
</name>
<name>
<surname>Nelson</surname>
<given-names>WR</given-names>
</name>
<name>
<surname>Rindi</surname>
<given-names>A</given-names>
</name>
</person-group>, editors. <source>Monte Carlo Transport of Electrons and Photons</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Plenum</publisher-name> (<year>1988</year>). </citation>
</ref>
<ref id="B46">
<label>46.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Halbleib</surname>
<given-names>JA</given-names>
</name>
<name>
<surname>Kensek</surname>
<given-names>RP</given-names>
</name>
<name>
<surname>Mehlhorn</surname>
<given-names>TA</given-names>
</name>
<name>
<surname>Valdez</surname>
<given-names>GD</given-names>
</name>
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
<name>
<surname>Berger</surname>
<given-names>MJ</given-names>
</name>
</person-group>. <article-title>ITS Version 3.0: the Integrated TIGER Series of Coupled Electron/photon Monte Carlo Transport Codes</article-title>. In: <source>Tech. Rep. SAND91-1634</source>. <publisher-loc>Albuquerque, NM</publisher-loc>: <publisher-name>Sandia National Laboratories</publisher-name> (<year>1992</year>). </citation>
</ref>
<ref id="B47">
<label>47.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Kawrakow</surname>
<given-names>I</given-names>
</name>
<name>
<surname>Rogers</surname>
<given-names>DWO</given-names>
</name>
</person-group>. <article-title>EGSnrc Code System: Monte Carlo Simulation of Electron and Photon Transport</article-title>. In: <source>Tech. Rep. PIRS-701</source>. <publisher-loc>Ottawa</publisher-loc>: <publisher-name>National Research Council of Canada</publisher-name> (<year>2001</year>). </citation>
</ref>
<ref id="B48">
<label>48.</label>
<citation citation-type="book">
<collab>X-5 Monte Carlo Team</collab>. <source>MCNP&#x2014;A General Monte Carlo N-Particle Transport Code)</source>. <publisher-loc>Los Alamos, NM</publisher-loc>: <publisher-name>Los Alamos National Laboratory</publisher-name> (<year>2003</year>). </citation>
</ref>
<ref id="B49">
<label>49.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Ferrari</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Sala</surname>
<given-names>PR</given-names>
</name>
<name>
<surname>Fass&#xf2;</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Ranft</surname>
<given-names>J</given-names>
</name>
</person-group>. <article-title>Fluka: A Multi-Particle Transport Code</article-title>. In: <source>Tech. Rep. CERN-2005-00X</source>. <publisher-loc>Geneva</publisher-loc>: <publisher-name>CERN</publisher-name> (<year>2005</year>). <pub-id pub-id-type="doi">10.2172/877507</pub-id> </citation>
</ref>
<ref id="B50">
<label>50.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Hirayama</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Namito</surname>
<given-names>Y</given-names>
</name>
<name>
<surname>Bielajew</surname>
<given-names>AF</given-names>
</name>
<name>
<surname>Wilderman</surname>
<given-names>SJ</given-names>
</name>
<name>
<surname>Nelson</surname>
<given-names>WR</given-names>
</name>
</person-group>. <source>The EGS5 Code System. Tech. Rep. SLAC-R-730</source>. <publisher-loc>Menlo Park, CA</publisher-loc>: <publisher-name>Stanford Linear Accelerator Center</publisher-name> (<year>2006</year>). </citation>
</ref>
<ref id="B51">
<label>51.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Goorley</surname>
<given-names>JT</given-names>
</name>
<name>
<surname>James</surname>
<given-names>MR</given-names>
</name>
<name>
<surname>Booth</surname>
<given-names>TE</given-names>
</name>
<name>
<surname>Brown</surname>
<given-names>FB</given-names>
</name>
<name>
<surname>Bull</surname>
<given-names>JS</given-names>
</name>
<name>
<surname>Cox</surname>
<given-names>LJ</given-names>
</name>
<etal/>
</person-group>
<source>Initial MCNP6 Release Overview - MCNP6 Version 1.0</source>. <publisher-loc>Los Alamos, NM</publisher-loc>: <publisher-name>Los Alamos National Laboratory</publisher-name> (<year>2013</year>). </citation>
</ref>
<ref id="B52">
<label>52.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gim&#xe9;nez-Alventosa</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Gim&#xe9;nez G&#xf3;mez</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Oliver</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>PenRed: An Extensible and Parallel Monte-Carlo Framework for Radiation Transport Based on PENELOPE</article-title>. <source>Comp Phys Commun</source> (<year>2021</year>) <volume>267</volume>:<fpage>108065</fpage>. <pub-id pub-id-type="doi">10.1016/j.cpc.2021.108065</pub-id> </citation>
</ref>
<ref id="B53">
<label>53.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fern&#xe1;ndez-Varea</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Mayol</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Bar&#xf3;</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>On the Theory and Simulation of Multiple Elastic Scattering of Electrons</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>1993</year>) <volume>73</volume>:<fpage>447</fpage>&#x2013;<lpage>73</lpage>. <pub-id pub-id-type="doi">10.1016/0168-583x(93)95827-r</pub-id> </citation>
</ref>
<ref id="B54">
<label>54.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>A Generic Algorithm for Monte Carlo Simulation of Proton Transport</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>2013</year>) <volume>316</volume>:<fpage>144</fpage>&#x2013;<lpage>59</lpage>. <pub-id pub-id-type="doi">10.1016/j.nimb.2013.08.035</pub-id> </citation>
</ref>
<ref id="B55">
<label>55.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
<name>
<surname>Quesada</surname>
<given-names>JM</given-names>
</name>
</person-group>. <article-title>Nuclear Effects in Proton Transport and Dose Calculations</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>2020</year>) <volume>475</volume>:<fpage>49</fpage>&#x2013;<lpage>62</lpage>. <pub-id pub-id-type="doi">10.1016/j.nimb.2020.03.017</pub-id> </citation>
</ref>
<ref id="B56">
<label>56.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Goudsmit</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Saunderson</surname>
<given-names>JL</given-names>
</name>
</person-group>. <article-title>Multiple Scattering of Electrons</article-title>. <source>Phys Rev</source> (<year>1940</year>) <volume>57</volume>:<fpage>24</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1103/physrev.57.24</pub-id> </citation>
</ref>
<ref id="B57">
<label>57.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lewis</surname>
<given-names>HW</given-names>
</name>
</person-group>. <article-title>Multiple Scattering in an Infinite Medium</article-title>. <source>Phys Rev</source> (<year>1950</year>) <volume>78</volume>:<fpage>526</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1103/physrev.78.526</pub-id> </citation>
</ref>
<ref id="B58">
<label>58.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Bielajew</surname>
<given-names>AF</given-names>
</name>
</person-group>. <article-title>HOWFAR and HOWNEAR: Geometry Modeling for Monte Carlo Particle Transport</article-title>. In: <source>Tech. Rep. PIRS-0341</source>. <publisher-loc>Ottawa</publisher-loc>: <publisher-name>National Research Council of Canada</publisher-name> (<year>1995</year>). </citation>
</ref>
<ref id="B59">
<label>59.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kawrakow</surname>
<given-names>I</given-names>
</name>
<name>
<surname>Bielajew</surname>
<given-names>AF</given-names>
</name>
</person-group>. <article-title>On the Condensed History Technique for Electron Transport</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>1998</year>) <volume>142</volume>:<fpage>253</fpage>&#x2013;<lpage>80</lpage>. <pub-id pub-id-type="doi">10.1016/s0168-583x(98)00274-2</pub-id> </citation>
</ref>
<ref id="B60">
<label>60.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bielajew</surname>
<given-names>AF</given-names>
</name>
<name>
<surname>Salvat</surname>
<given-names>F</given-names>
</name>
</person-group>. <article-title>Improved Electron Transport Mechanics in the PENELOPE Monte-Carlo Model</article-title>. <source>Nucl Instr Methods Phys Res Section B: Beam Interactions Mater Atoms</source> (<year>2001</year>) <volume>173</volume>:<fpage>332</fpage>&#x2013;<lpage>43</lpage>. <pub-id pub-id-type="doi">10.1016/s0168-583x(00)00363-3</pub-id> </citation>
</ref>
</ref-list>
</back>
</article>