28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1.3 Leading Particle Biasing<br />

The second application of importance sampling that we will discuss primarily concerns the deposition<br />

of energy in an electromagnetic shower initiated by a high energy electron (or photon).<br />

The analog approach that is used throughout <strong>EGS5</strong>, in which each and every particle is generally<br />

followed to completion (ı.e. energy cutoff guarantees that high energy shower calculations will take<br />

lots of time. For the most energetic particle energies under consideration at present day accelerators<br />

(> 50 GeV), one can barely manage to simulate showers in this fashion because of computer<br />

time limitations (Recall that execution time per incident particle grows linearly with energy). Fortunately,<br />

a certain class of problems involving the calculation of energy deposition is well-suited<br />

for a non-analog treatment known as leading particle biasing[175]. Examples of such problems are<br />

radiobiological dose, heating effects, and radiation damage, although some care must be taken in<br />

not being too general with this statement (more on this later).<br />

As a rule, variance reduction techniques of this type should only be used when there is some<br />

prior knowledge of the physical processes that are the most (or least) important to the answer one<br />

is looking for. Leading particle biasing is a classic example of this. The most important processes in<br />

the development of an EM shower, at least in terms of total energy deposition, are bremsstrahlung<br />

and pair production. Furthermore, after every one of these interactions the particle with the higher<br />

of the two energies is expected to contribute most to the total energy deposition.<br />

Leading particle biasing is very easily implemented within the framework of <strong>EGS5</strong> by means of<br />

the following statements:<br />

if (iarg.eq.7) then ! Apply Leading Particle Biasing for brems.<br />

eks=e(np)+e(np-1)-RM ! Kinetic energy before brems.<br />

ekenp=e(np)<br />

if(iq(np).ne.0) ekenp=e(np)-RM<br />

call randomset(rnnolp)<br />

if (rnnolp.lt.ekenp/eks) then ! Follow np<br />

e(np-1)=e(np)<br />

iq(np-1)=iq(np)<br />

u(np-1)=u(np)<br />

v(np-1)=v(np)<br />

w(np-1)=w(np)<br />

end if<br />

ekenp=e(np-1)<br />

if (iq(np-1).ne.0) ekenp=e(np-1)-RM<br />

wt(np-1)=wt(np-1)*eks/ekenp<br />

np=np-1<br />

end if<br />

if (iarg.eq.16) then ! Apply Leading Particle Biasing for pair.<br />

eks=e(np)+e(np-1)-2.0*RM<br />

191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!