1 | <html><head> |
---|
2 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
3 | <title>Usecases of importance sampling and scoring in Geant4</title><meta name="generator" content="DocBook XSL Stylesheets V1.51.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book"><div class="titlepage"><div><h1 class="title"><a name="BiasScoreIssues"></a>Usecases of importance sampling and scoring in Geant4</h1></div><div><div class="author"><h3 class="author">Michael Dressel</h3></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>1. <a href="#introduction">Introduction</a></dt><dt>2. <a href="#mass">Mass-geometry</a></dt><dd><dl><dt>2.1. <a href="#mass-parent-ms">Particle suffers multiple scattering</a></dt><dt>2.2. <a href="#mass-parent-zero">Parent particle suffers process on mass-boundary</a></dt><dt>2.3. <a href="#mass-phys-daughter">Daughter created by a physics process on boundary</a></dt><dt>2.4. <a href="#mass-bias-daughter">Daughter created by biasing</a></dt></dl></dd><dt>3. <a href="#parallel">Parallel-geometry</a></dt><dd><dl><dt>3.1. <a href="#parallel-parent">Particle suffers multiple scattering.</a></dt><dt>3.2. <a href="#parallel-parent-zero">Particle suffers physics process on boundary</a></dt><dt>3.3. <a href="#parallel-phys-daughter">Daughter created by a physics process on a boundary</a></dt><dt>3.4. <a href="#parallel-bias-daughter">Daughter created by biasing</a></dt></dl></dd><dt>4. <a href="#problems">To the problematic usecases</a></dt><dt>5. <a href="#summary">Summary</a></dt></dl></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="introduction"></a>Chapter 1. Introduction</h2></div></div><p>This document should provide a list of |
---|
4 | usecases to check the behaviour of importance sampling and scoring |
---|
5 | against. A distinction is made between sampling in a mass and |
---|
6 | parallel geometry.</p><p><a href="#mass" title="Chapter 2. Mass-geometry">Chapter 2</a> and <a href="#parallel" title="Chapter 3. Parallel-geometry">Chapter 3</a> |
---|
7 | give detailed usecase descriptions.</p><p><a href="#problems" title="Chapter 4. To the problematic usecases">Chapter 4</a> sum's up the problematic usecases |
---|
8 | and their possible solutions.</p><p><a href="#summary" title="Chapter 5. Summary">Chapter 5</a> contains the summary.</p></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="mass"></a>Chapter 2. Mass-geometry</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>2.1. <a href="#mass-parent-ms">Particle suffers multiple scattering</a></dt><dt>2.2. <a href="#mass-parent-zero">Parent particle suffers process on mass-boundary</a></dt><dt>2.3. <a href="#mass-phys-daughter">Daughter created by a physics process on boundary</a></dt><dt>2.4. <a href="#mass-bias-daughter">Daughter created by biasing</a></dt></dl></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="mass-parent-ms"></a>2.1. Particle suffers multiple scattering</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A particle step reaches a boundary between volume <span class="emphasis"><em> |
---|
9 | A</em></span> and <span class="emphasis"><em>B</em></span> |
---|
10 | of the mass geometry and it's momentum is changed by a multiple |
---|
11 | scattering process.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p>Multiple scatteing applies for charged particles. |
---|
12 | The current version is not intended to be used for charged particles but |
---|
13 | future versions will.</p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/mass-parent.gif" alt="Parent particle"></td></tr></table><div class="caption"><p>A particle crosses the boundary in the mass |
---|
14 | geometry. The momentum is changed by multiple scattering.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>Three steps <span class="emphasis"><em>1</em></span>, <span class="emphasis"><em>2</em></span>, |
---|
15 | <span class="emphasis"><em>3</em></span> occur:</p><div class="orderedlist"><ol type="1"><li><p><a name="parent-step-1"></a>'st step:</p><div class="orderedlist"><ol type="a"><li><p>Step one is limited by the transportation. The |
---|
16 | transportation moves the particle on the boundary and locates it |
---|
17 | in volume <span class="emphasis"><em>B</em></span>.</p></li><li><p>Biasing split's or deletes the particle |
---|
18 | and changes weight correctly. |
---|
19 | See also: <a href="#mass-bias-daughter" title="2.4. Daughter created by biasing">Section 2.4</a></p></li><li><p>Scoring counts the track as entering volume |
---|
20 | <span class="emphasis"><em>B</em></span></p></li><li><p>Multiple scattering changes |
---|
21 | the momentum to point back in volume <span class="emphasis"><em>A</em></span> again.</p></li></ol></div></li><li><p>'nd step:</p><div class="orderedlist"><ol type="a"><li><p>Transportation limits step. Transportation |
---|
22 | locates particle in volume <span class="emphasis"><em>A</em></span>.</p></li><li><p>Biasing split's or deletes the particle and changes |
---|
23 | weight correctly. |
---|
24 | See also: <a href="#mass-bias-daughter" title="2.4. Daughter created by biasing">Section 2.4</a></p></li><li><p>Scoring counts the track as entering volume |
---|
25 | <span class="emphasis"><em>A</em></span></p></li></ol></div></li><li><p>'rd step:</p><p>Step may be limited by any process.</p><p>Transportation locates particle at the new |
---|
26 | position </p></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
27 | Multiple scattering is related to volume <span class="emphasis"><em>A</em></span> therefore |
---|
28 | the following should be considered:</p><div class="itemizedlist"><ul type="disc"><li><p> |
---|
29 | Importance sampling should neither run in the first nor in the second |
---|
30 | step. |
---|
31 | </p></li><li><p> |
---|
32 | The particle should not be scored as entering volume |
---|
33 | <span class="emphasis"><em>B</em></span> in the first step and it should not be scored as |
---|
34 | entering <span class="emphasis"><em>A</em></span> in the second step. |
---|
35 | </p></li></ul></div></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="mass-parent-zero"></a>2.2. Parent particle suffers process on mass-boundary</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A particle step reaches a boundary between volume <span class="emphasis"><em> |
---|
36 | A</em></span> and <span class="emphasis"><em>B</em></span> |
---|
37 | of the mass geometry. It is located in volume |
---|
38 | <span class="emphasis"><em>B</em></span>. Then a process returns a zero step length, |
---|
39 | get's called and changes the momentum back to <span class="emphasis"><em> |
---|
40 | A</em></span>.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
41 | A process should never return step length = 0. |
---|
42 | But the situation applies also if a process proposes a step length so |
---|
43 | small that the track is located within a distance of kCarTolerance to the |
---|
44 | boundary. |
---|
45 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/mass-parent-zero.gif" alt="Parent particle suffers a process on mass-boundary"></td></tr></table><div class="caption"><p>A particle crosses the boundary in the mass |
---|
46 | geometry. The momentum is changed by a process that returned sl=0.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>Three steps <span class="emphasis"><em>1</em></span>, <span class="emphasis"><em>2</em></span>, |
---|
47 | <span class="emphasis"><em>3</em></span> occur:</p><div class="orderedlist"><ol type="1"><li><p><a name="parent-step-zero-1"></a>step</p><div class="orderedlist"><ol type="a"><li><p>Step one is limited by the transportation. The |
---|
48 | transportation moves the particle on the boundary and locates it |
---|
49 | in volume <span class="emphasis"><em>B</em></span>.</p></li><li><p>Biasing split's or deletes the particle |
---|
50 | and changes weight correctly. |
---|
51 | See also: <a href="#mass-bias-daughter" title="2.4. Daughter created by biasing">Section 2.4</a></p></li><li><p>Scoring counts the track as entering volume |
---|
52 | <span class="emphasis"><em>B</em></span></p></li></ol></div></li><li><p>step</p><div class="orderedlist"><ol type="a"><li><p>A process returns step length = 0.</p></li><li><p>Scoring may count a collision with the |
---|
53 | correct weight according to volume <span class="emphasis"><em>B</em></span>.</p></li><li><p>The process changes the particles momentum, |
---|
54 | and may create daughter particles. (See |
---|
55 | <a href="#mass-phys-daughter" title="2.3. Daughter created by a physics process on boundary">Section 2.3</a>) </p></li></ol></div></li><li><p>step</p><div class="orderedlist"><ol type="a"><li><p>The step is limited by transportation. |
---|
56 | Transportation locates the particle in volume<span class="emphasis"><em>A</em></span>. |
---|
57 | </p></li><li><p>Biasing may delete the particle and change weight. |
---|
58 | </p></li><li><p>Scoring counts the track as entering volume |
---|
59 | <span class="emphasis"><em>A</em></span></p></li></ol></div></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p>This way the particle is treated correctly. |
---|
60 | </p></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="mass-phys-daughter"></a>2.3. Daughter created by a physics process on boundary</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A particle step reaches a boundary in the mass geometry |
---|
61 | between volume |
---|
62 | <span class="emphasis"><em>A</em></span> and volume <span class="emphasis"><em>B</em></span>. A physical |
---|
63 | process returns steplength =0 and creates a daughter.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
64 | A process should never return step length = 0. |
---|
65 | But the situation applies also if a process proposes a step length so |
---|
66 | small that the track is located within a distance of kCarTolerance to the |
---|
67 | boundary. |
---|
68 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/mass-phys-daughter-zero.gif" alt="A process creates a daughter on the boundary."></td></tr></table><div class="caption"><p>A process creates a daughter on the boundary.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>The description of |
---|
69 | two steps of the particle and the first step of |
---|
70 | the daughter created by a physical process on the boundary:</p><div class="orderedlist"><ol type="1"><li><p><span class="emphasis"><em>Cross boundary.</em></span></p><p>This is equivalent to step one in |
---|
71 | <a href="#mass-parent-zero" title="2.2. Parent particle suffers process on mass-boundary">Section 2.2</a></p></li><li><p><span class="emphasis"><em>Physics process.</em></span></p><div class="orderedlist"><ol type="a"><li><p>A physics process returns step length = 0.</p></li><li><p>Scoring may count collsision with the original |
---|
72 | track momentum and the correct weight.</p></li><li><p>The physics process changes the momentum of the |
---|
73 | particle and creates a daughter with momentum pointing to |
---|
74 | volume <span class="emphasis"><em>A</em></span>.</p></li></ol></div></li><li><p> |
---|
75 | First step <span class="emphasis"><em>1.d</em></span> of daughter</p><p><span class="strong"><em>The daughter should be |
---|
76 | located in volume</em></span> <span class="emphasis"><em>B</em></span> |
---|
77 | <span class="strong"><em> inspide of having it's momentum pointing |
---|
78 | to volume </em></span><span class="emphasis"><em>A</em></span> !</p><p> In this mass geometry case it should be done correct by |
---|
79 | the transportation since the Touchable of the doughter |
---|
80 | can be taken into account for location. |
---|
81 | </p></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
82 | If the daughter particle is located in volume <span class="emphasis"><em>B</em></span> |
---|
83 | the situation should be treated correctly. |
---|
84 | </p></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="mass-bias-daughter"></a>2.4. Daughter created by biasing</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A parent particle crosses the boundary in the mass |
---|
85 | geometry. Biasing creates copies of the particle. |
---|
86 | </p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
87 | The most likely situation if a particle corsses a boundary and the |
---|
88 | importance of the enterung volume is higher then the importance |
---|
89 | of the exitiong volume. |
---|
90 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/mass-bias-daughter.gif" alt="A daughter created by biasing"></td></tr></table><div class="caption"><p>A particle crosses the boundary in the mass |
---|
91 | geometry. Biasing creates a daughter.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>A step <span class="emphasis"><em>1</em></span> of the parent and the |
---|
92 | first step <span class="emphasis"><em>1.d</em></span> are shown:</p><div class="orderedlist"><ol type="1"><li><p><span class="emphasis"><em>parent step</em></span></p><div class="orderedlist"><ol type="a"><li><p>Step one is limited by the transportation. The |
---|
93 | transportation moves the particle on the boundary and locates it |
---|
94 | in volume <span class="emphasis"><em>B</em></span>.</p></li><li><p>Biasing split's or deletes the particle |
---|
95 | and changes weight correctly.</p></li><li><p>Scoring counts the track as entering volume |
---|
96 | <span class="emphasis"><em>B</em></span></p></li></ol></div></li><li><p><span class="emphasis"><em>1.d: first step of daughter</em></span></p><div class="orderedlist"><ol type="a"><li><p>G4 locates the daughter |
---|
97 | in <span class="emphasis"><em>B</em></span>.</p></li><li><p>Any process may limit the step.</p></li></ol></div></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
98 | This should be the coorect treatment of the daughter particle created by |
---|
99 | importance sampling. |
---|
100 | </p></dd></dl></div></div></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="parallel"></a>Chapter 3. Parallel-geometry</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>3.1. <a href="#parallel-parent">Particle suffers multiple scattering.</a></dt><dt>3.2. <a href="#parallel-parent-zero">Particle suffers physics process on boundary</a></dt><dt>3.3. <a href="#parallel-phys-daughter">Daughter created by a physics process on a boundary</a></dt><dt>3.4. <a href="#parallel-bias-daughter">Daughter created by biasing</a></dt></dl></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="parallel-parent"></a>3.1. Particle suffers multiple scattering.</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A particle step is limited by a boundary in the parallel |
---|
101 | geometry between volumes <span class="emphasis"><em>A</em></span> and |
---|
102 | <span class="emphasis"><em>B</em></span>. |
---|
103 | Multiple scattering occures.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
104 | Multiple scatteing applies for charged particles. |
---|
105 | The current version is not intended to be used for charged particles but |
---|
106 | future versions will. |
---|
107 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/parallel-parent.gif" alt="Parent particle"></td></tr></table><div class="caption"><p>A particle crosses the boundary in the parallel |
---|
108 | geometry. The momentum is changed by multiple scattering.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>Three steps <span class="emphasis"><em>1</em></span>, <span class="emphasis"><em>2</em></span>, |
---|
109 | <span class="emphasis"><em>3</em></span> occur:</p><div class="orderedlist"><ol type="1"><li><p><a name="parallel-parent-step-1"></a>Step:</p><div class="orderedlist"><ol type="a"><li><p>The step is limited by a boundary in the parallel |
---|
110 | geometry found by the ParallelImportanceProcess.</p></li><li><p>Transportation moves the particle in the mass |
---|
111 | geometry.</p></li><li><p>The ParallelImportanceProcess |
---|
112 | moves the particle on the boundary and locates it |
---|
113 | in volume <span class="emphasis"><em>B</em></span> of the parallel geometry. |
---|
114 | Biasing splits or plays Russian Roulette and changes the weight.</p><p>The ParallelImportanceProcess may create daughters |
---|
115 | see <a href="#parallel-bias-daughter" title="3.4. Daughter created by biasing">Section 3.4</a></p></li><li><p>Scoring counts a track entering.</p></li><li><p>Multiple scattering changes the momentum of the |
---|
116 | particle.</p></li></ol></div></li><li><p>Step:</p><div class="orderedlist"><ol type="a"><li><p>The step is limited by the boundary in the |
---|
117 | parallel geometry found by the ParallelImportanceProcess.</p></li><li><p>Biasing split's or deletes the particle and |
---|
118 | changes weight correctly.</p></li><li><p>Scoring counts the track as entering volume |
---|
119 | <span class="emphasis"><em>A</em></span></p></li></ol></div></li><li><p>Step:</p><p>The step may be limited by any process.</p><p>Transportation locates particle at the new |
---|
120 | position </p></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p>See the comment in <a href="#mass-parent-ms" title="2.1. Particle suffers multiple scattering">Section 2.1</a>.</p></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="parallel-parent-zero"></a>3.2. Particle suffers physics process on boundary</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p>A particle step is limited by a boundary in the parallel |
---|
121 | geometry between volumes <span class="emphasis"><em>A</em></span> and |
---|
122 | <span class="emphasis"><em>B</em></span>. A physics process returns |
---|
123 | step length = 0.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
124 | See <a href="#mass-parent-zero" title="2.2. Parent particle suffers process on mass-boundary">Section 2.2</a>. |
---|
125 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/parallel-parent-zero.gif" alt="Particle suffers process on boundary."></td></tr></table><div class="caption"><p>A parent particle crosses the boundary in the parallel |
---|
126 | geometry. A physics process happens on the boundary.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>Three steps <span class="emphasis"><em>1</em></span>, <span class="emphasis"><em>2</em></span>, |
---|
127 | <span class="emphasis"><em>3</em></span> occur:</p><div class="orderedlist"><ol type="1"><li><p><a name="parallel-parent-zero-step-1"></a>Step:</p><div class="orderedlist"><ol type="a"><li><p>The step is limited by a boundary in the parallel |
---|
128 | geometry found by the ParallelImportanceProcess.</p></li><li><p>Transportation moves the particle in the mass |
---|
129 | geometry.</p></li><li><p>The ParallelImportanceProcess |
---|
130 | moves the particle on the boundary and locates it |
---|
131 | in volume <span class="emphasis"><em>B</em></span> of the parallel geometry. |
---|
132 | Biasing splits or plays Russian Roulette and changes the weight.</p><p>The ParallelImportanceProcess may create daughters |
---|
133 | see <a href="#parallel-bias-daughter" title="3.4. Daughter created by biasing">Section 3.4</a></p></li><li><p>Scoring counts a track entering.</p></li></ol></div></li><li><p>Step:</p><div class="orderedlist"><ol type="a"><li><p>A physics process retruns step length = 0.</p></li><li><p>Scoring counts a collision in volume |
---|
134 | <span class="emphasis"><em>B</em></span></p></li><li><p>The physics process changes the momentum |
---|
135 | of the particle and creates a daughter |
---|
136 | (See <a href="#parallel-phys-daughter" title="3.3. Daughter created by a physics process on a boundary">Section 3.3</a>). Both momentums point |
---|
137 | towards volume <span class="emphasis"><em>A</em></span>.</p></li></ol></div></li><li><p>Step:</p><div class="orderedlist"><ol type="a"><li><p>The ParallelImportanceProcess limits the |
---|
138 | step.</p></li><li><p>The ParallelImportanceProcess locates it |
---|
139 | in volume <span class="emphasis"><em>A</em></span> of the parallel geometry. |
---|
140 | Biasing splits or plays Russian Roulette and changes the weight.</p><p>The ParallelImportanceProcess may create daughters |
---|
141 | see <a href="#parallel-bias-daughter" title="3.4. Daughter created by biasing">Section 3.4</a></p></li><li><p>Scoring counts a track entering volume |
---|
142 | <span class="emphasis"><em>A</em></span>.</p></li></ol></div></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
143 | This way should be correct. |
---|
144 | </p></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="parallel-phys-daughter"></a>3.3. Daughter created by a physics process on a boundary</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p> |
---|
145 | A particle step reaches a boundary in the parallel geometry between volume |
---|
146 | <span class="emphasis"><em>A</em></span> and volume <span class="emphasis"><em>B</em></span>. A physical |
---|
147 | process returns steplength =0 and creates a daughter.</p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
148 | See <a href="#mass-phys-daughter" title="2.3. Daughter created by a physics process on boundary">Section 2.3</a>. |
---|
149 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/parallel-phys-daughter-zero.gif" alt="A process creates a daughter on the boundary."></td></tr></table><div class="caption"><p>A process creates a daughter on the boundary.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p>The description of |
---|
150 | two steps of the particle and the first step of |
---|
151 | the daughter created by a physical process on the boundary:</p><div class="orderedlist"><ol type="1"><li><p><span class="emphasis"><em>Cross boundary.</em></span></p><p>This is equivalent to step one in |
---|
152 | <a href="#parallel-parent-zero" title="3.2. Particle suffers physics process on boundary">Section 3.2</a></p></li><li><p><span class="emphasis"><em>Physics process.</em></span></p><div class="orderedlist"><ol type="a"><li><p>A physics process returns step length = 0.</p></li><li><p>Scoring may count collsision with the original |
---|
153 | track momentum and the correct weight.</p></li><li><p>The physics process changes the momentum of the |
---|
154 | particle and creates a daughter with momentum pointing to |
---|
155 | volume <span class="emphasis"><em>A</em></span>.</p></li></ol></div></li><li><p> |
---|
156 | First step <span class="emphasis"><em>1.d</em></span> of daughter</p><p><span class="strong"><em>According to the |
---|
157 | momentum the daughter is located in |
---|
158 | volume</em></span> <span class="emphasis"><em>A</em></span> <span class="strong"><em>. |
---|
159 | </em></span></p><p>The ParallelImportanceProcess <span class="emphasis"><em>does not |
---|
160 | </em></span> occur. Therefore no biasing is applied and the |
---|
161 | weight is not changed!</p></li><li><p>Scoring counts a collision in volume |
---|
162 | <span class="emphasis"><em>A</em></span> <span class="emphasis"><em>with the wrong weight</em></span>. |
---|
163 | </p></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
164 | Locating the daughter particle in volume <span class="emphasis"><em>A</em></span> |
---|
165 | is wrong. |
---|
166 | </p></dd></dl></div></div><div class="sect1"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="parallel-bias-daughter"></a>3.4. Daughter created by biasing</h2></div></div><div class="variablelist"><dl><dt><span class="term"><span class="emphasis"><em>Description:</em></span></span></dt><dd><p> |
---|
167 | A parent particle crosses the boundary in the parallel |
---|
168 | geometry. Biasing creates copies of the particle. |
---|
169 | </p></dd><dt><span class="term"><span class="emphasis"><em>Relevance:</em></span></span></dt><dd><p> |
---|
170 | See <a href="#mass-bias-daughter" title="2.4. Daughter created by biasing">Section 2.4</a>. |
---|
171 | </p></dd><dt><span class="term"><span class="emphasis"><em>Figure:</em></span></span></dt><dd><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0"><tr><td><img src="figures/parallel-bias-daughter.gif" alt="A daughter created by biasing"></td></tr></table><div class="caption"><p>A particle crosses the boundary in the parallel |
---|
172 | geometry. Biasing creates copies.</p></div></div></dd><dt><span class="term"><span class="emphasis"><em>Detailed description:</em></span></span></dt><dd><p> |
---|
173 | A step <span class="emphasis"><em>1</em></span> of the parent and the |
---|
174 | first step <span class="emphasis"><em>1.d</em></span> are shown:</p><div class="orderedlist"><ol type="1"><li><p><span class="emphasis"><em>Step</em></span></p><div class="orderedlist"><ol type="a"><li><p>Step one is limited by a boundary in |
---|
175 | the parallel geometry found by ParallelImportanceProcess. The |
---|
176 | ParallelImportanceProcess moves the particle on the boundary and |
---|
177 | locates it in volume <span class="emphasis"><em>B</em></span>.</p></li><li><p>Biasing split's or deletes the particle |
---|
178 | and changes weight correctly.</p></li><li><p>Scoring counts the track as entering volume |
---|
179 | <span class="emphasis"><em>B</em></span></p></li></ol></div></li><li><p><span class="emphasis"><em>1.d: first step of daughter</em></span></p><div class="orderedlist"><ol type="a"><li><p>The ParallelImportanceProcess locates the daughter |
---|
180 | in <span class="emphasis"><em>B</em></span>.</p></li><li><p>Any process may limit the step.</p></li></ol></div></li></ol></div></dd><dt><span class="term"><span class="emphasis"><em>Comment:</em></span></span></dt><dd><p> |
---|
181 | This should be the correct way. |
---|
182 | </p></dd></dl></div></div></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="problems"></a>Chapter 4. To the problematic usecases</h2></div></div><p>Of this (probably incomplete) list of usecases the cases |
---|
183 | <a href="#mass-parent-ms" title="2.1. Particle suffers multiple scattering">Section 2.1</a>, |
---|
184 | <a href="#parallel-parent" title="3.1. Particle suffers multiple scattering.">Section 3.1</a> and |
---|
185 | <a href="#parallel-phys-daughter" title="3.3. Daughter created by a physics process on a boundary">Section 3.3</a> are treated wrongly. |
---|
186 | The first two cases apply to charged particles only. The other |
---|
187 | usecase applies for the parallel geometry. Therefore this documents |
---|
188 | does not contain problematic usecases for neutral particles in the mass |
---|
189 | geometry. </p><p>The only wrongly treated usecase in this document |
---|
190 | applying also for neutral particles is |
---|
191 | <a href="#parallel-phys-daughter" title="3.3. Daughter created by a physics process on a boundary">Section 3.3</a>. </p><p>The reason for the problem is: In contrast to the mass |
---|
192 | geometry cases there is no information about the current Touchable in |
---|
193 | the parallel geometry related to a newly starting particle.</p><p>The two types of particles starting on a parallel boundary |
---|
194 | are:</p><div class="orderedlist"><ol type="1"><li><p> <a href="#parallel-phys-daughter" title="3.3. Daughter created by a physics process on a boundary">Section 3.3</a> particles |
---|
195 | created by a physical process on the boundary.</p></li><li><p><a href="#parallel-bias-daughter" title="3.4. Daughter created by biasing">Section 3.4</a> particles created |
---|
196 | by importance sampling. All particles created by importance |
---|
197 | sampling start on a boundary.</p></li></ol></div><p>The particles starting on the boundary may be located |
---|
198 | in either of both volumes depending on the geometry |
---|
199 | e.g. which volume is deepest.</p><p>In order to treat the much more frequent cases of type |
---|
200 | number 2. correct it has been chosen to take the direction of the |
---|
201 | particle momentum into account. But this treats the cases of |
---|
202 | type 1. wrong.</p><p>To solve this problem it has been considered to somehow |
---|
203 | provide the information about the Touchable in the parallel geometry. |
---|
204 | It is not clear "who" should give that information to "whom". |
---|
205 | While the importance sampling process knows about the parallel |
---|
206 | geometry and therefore could assign a touchable to the particle |
---|
207 | in principle, the physics processes can't do that.</p></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="summary"></a>Chapter 5. Summary</h2></div></div><p>This document gives a list of usecases which should be |
---|
208 | considered for the implementation of importance sampling and |
---|
209 | scoring. </p><p>When changing the behaviour of importance sampling |
---|
210 | the resulting algorithm should be checked at least against the |
---|
211 | usecases listed here.</p><p>The current problem to be solved is to treat |
---|
212 | the usecase <a href="#parallel-phys-daughter" title="3.3. Daughter created by a physics process on a boundary">Section 3.3</a> right |
---|
213 | without messing up usecase <a href="#parallel-bias-daughter" title="3.4. Daughter created by biasing">Section 3.4</a> |
---|
214 | .</p></div></div></body></html> |
---|