https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&feed=atom&action=historyIntroduction to GEANT4 - Revision history2024-03-29T10:42:10ZRevision history for this page on the wikiMediaWiki 1.16.5https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=608&oldid=prevIlinaMediaWiki at 17:00, 4 September 20142014-09-04T17:00:24Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:00, 4 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 275:</td>
<td colspan="2" class="diff-lineno">Line 275:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>If you want to build more realistic physics list you have to use the class <span style="color:#ff0000"> G4VModularPhysicsList </span>. In <span style="color:#ff0000"> G4VModularPhysicsList </span> you can group the physics processes into separate modules<del class="diffchange diffchange-inline">: EM </del>physics<del class="diffchange diffchange-inline">, hadronic physics, decay physics etc. </del>and later chose one of <del class="diffchange diffchange-inline">them</del>. </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If you want to build more realistic physics list you have to use the class <span style="color:#ff0000"> G4VModularPhysicsList </span>. In <span style="color:#ff0000"> G4VModularPhysicsList </span> you can group the physics processes into separate modules <ins class="diffchange diffchange-inline">which are already pre-build </ins>physics <ins class="diffchange diffchange-inline">list </ins>and later chose one of <ins class="diffchange diffchange-inline">those modules</ins>. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><u> Simple example of class <span style="color:#ff0000"> MyPhysicsList </span> </u>:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><u> Simple example of class <span style="color:#ff0000"> MyPhysicsList </span> </u>:</div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=607&oldid=prevIlinaMediaWiki at 16:57, 4 September 20142014-09-04T16:57:19Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:57, 4 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 152:</td>
<td colspan="2" class="diff-lineno">Line 152:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* ConstructParticles() : Define all necessary particles; </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* ConstructParticles() : Define all necessary particles; </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ConstructProcesses() : Define all necessary processes and assign them to <del class="diffchange diffchange-inline">proper </del>particles;</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ConstructProcesses() : Define all necessary processes and assign them to <ins class="diffchange diffchange-inline">corresponding </ins>particles;</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* SetCuts() : Define production thresholds in terms of range; </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* SetCuts() : Define production thresholds in terms of range; </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=606&oldid=prevIlinaMediaWiki at 11:15, 4 September 20142014-09-04T11:15:14Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 11:15, 4 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 488:</td>
<td colspan="2" class="diff-lineno">Line 488:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Trajectory </span> ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Trajectory </span> ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Trajectories are represented by classes <span style="color:#ff0000"> G4Trajectory </span> and <span style="color:#ff0000"> G4TrajectoryPoint </span>. <span style="color:#ff0000"> G4Trajectory </span> class copies some of the <span style="color:#ff0000"> G4Track </span> class information. <span style="color:#ff0000"> G4TrajectoryPoint </span> is the class which copies some of <span style="color:#ff0000"> G4Step </span> information.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Trajectories are represented by classes <span style="color:#ff0000"> G4Trajectory </span> and <span style="color:#ff0000"> G4TrajectoryPoint </span>. <span style="color:#ff0000"> G4Trajectory </span> class copies some of the <span style="color:#ff0000"> G4Track </span> class information. <span style="color:#ff0000"> G4TrajectoryPoint </span> is the class which copies some of <ins class="diffchange diffchange-inline">the </ins><span style="color:#ff0000"> G4Step </span> information.</div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=605&oldid=prevIlinaMediaWiki at 11:14, 4 September 20142014-09-04T11:14:11Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 11:14, 4 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 476:</td>
<td colspan="2" class="diff-lineno">Line 476:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Step </span> ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Step </span> ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Step <del class="diffchange diffchange-inline">has </del>two points <del class="diffchange diffchange-inline">and </del>information about the particle e.g. energy loss on the step. A step is represented by <span style="color:#ff0000"> G4Step </span> and <span style="color:#ff0000"> G4StepPoint </span> classes. <span style="color:#ff0000"> G4UserSteppingAction </span> is optional class where you can kill, suspend, postpone a track. </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Step <ins class="diffchange diffchange-inline">is defined by </ins>two points<ins class="diffchange diffchange-inline">, it contains also </ins>information about the particle e.g. energy loss on the step. A step is represented by <span style="color:#ff0000"> G4Step </span> and <span style="color:#ff0000"> G4StepPoint </span> classes. <span style="color:#ff0000"> G4UserSteppingAction </span> is optional class where you can kill, suspend, postpone a track. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Status is attached to each <span style="color:#ff0000"> G4StepPoint </span> to show how step was determined. You can use ''PostStepPoint'' to get status of current step and ''PreStepPoint'' to get status of previous step. For example to get the x coordinate of a step you do the following:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Status is attached to each <span style="color:#ff0000"> G4StepPoint </span> to show how step was determined. You can use ''PostStepPoint'' to get status of current step and ''PreStepPoint'' to get status of previous step. For example to get the <ins class="diffchange diffchange-inline">"</ins>x<ins class="diffchange diffchange-inline">" </ins>coordinate of a step you do the following:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=560&oldid=prevIlinaMediaWiki at 15:36, 2 September 20142014-09-02T15:36:57Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:36, 2 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 450:</td>
<td colspan="2" class="diff-lineno">Line 450:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__primaryGenerator.html Here] you can find how to implement MyPrimaryGeneratorAction class in your code.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__primaryGenerator.html Here] you can find how to implement MyPrimaryGeneratorAction class in your code.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The Monoenergetic photon pencil beam example uses the '''G4ParticleGun''' class. The Proton beam with realistic geometry tutorial uses '''G4GeneralParticleSource'''. </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The <ins class="diffchange diffchange-inline">[[</ins>Monoenergetic photon pencil beam<ins class="diffchange diffchange-inline">]] </ins>example uses the '''G4ParticleGun''' class. The <ins class="diffchange diffchange-inline">[[</ins>Proton beam with realistic geometry<ins class="diffchange diffchange-inline">]] </ins>tutorial uses '''G4GeneralParticleSource'''. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Optional user classes </span> ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Optional user classes </span> ==</div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=559&oldid=prevIlinaMediaWiki at 15:35, 2 September 20142014-09-02T15:35:14Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:35, 2 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 235:</td>
<td colspan="2" class="diff-lineno">Line 235:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>void MyPhysicsList::ConstructGeneral() { </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>void MyPhysicsList::ConstructGeneral() { </div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 371:</td>
<td colspan="2" class="diff-lineno">Line 370:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>See the <del class="diffchange diffchange-inline">basic tutorials </del>to <del class="diffchange diffchange-inline">understand </del>more about <del class="diffchange diffchange-inline">the modular </del>physics lists.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>See the <ins class="diffchange diffchange-inline">[[Monoenergetic proton pencil beam]] tutorial </ins>to <ins class="diffchange diffchange-inline">learn </ins>more about <ins class="diffchange diffchange-inline">detailed </ins>physics lists.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Pre-packaged physics lists </span> ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Pre-packaged physics lists </span> ===</div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=558&oldid=prevIlinaMediaWiki at 15:31, 2 September 20142014-09-02T15:31:02Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:31, 2 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 272:</td>
<td colspan="2" class="diff-lineno">Line 272:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>See the Computed tomography tutorial to <del class="diffchange diffchange-inline">understand further how to define your own </del>physics <del class="diffchange diffchange-inline">processes for eatch particle</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>See the <ins class="diffchange diffchange-inline">[[</ins>Computed tomography<ins class="diffchange diffchange-inline">]] </ins>tutorial to <ins class="diffchange diffchange-inline">learn more about simple </ins>physics <ins class="diffchange diffchange-inline">lists </ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=557&oldid=prevIlinaMediaWiki at 15:28, 2 September 20142014-09-02T15:28:29Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:28, 2 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 259:</td>
<td colspan="2" class="diff-lineno">Line 259:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This is the full [http://geant4.cern.ch/support/proc_mod_catalog/particles/ list] of physics processes available for every particle. Finally, in method SetCuts() you can define cuts on the particles:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This is the full [http://geant4.cern.ch/support/proc_mod_catalog/particles/ list] of physics processes available for every particle. Finally, in method SetCuts() you can define cuts on the particles:</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre style="color: #800000; background-color: #dcdcdc"></div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 277:</td>
<td colspan="2" class="diff-lineno">Line 276:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>If you want to build more realistic physics list you have to use the class <span style="color:#ff0000"> G4VModularPhysicsList </span><del class="diffchange diffchange-inline">. For example, the photon from the example above can undergo compton scattering apart from conversion</del>. In <span style="color:#ff0000"> G4VModularPhysicsList </span> you can group the physics processes into separate modules: EM physics, hadronic physics, decay physics etc. </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If you want to build more realistic physics list you have to use the class <span style="color:#ff0000"> G4VModularPhysicsList </span>. In <span style="color:#ff0000"> G4VModularPhysicsList </span> you can group the physics processes into separate modules: EM physics, hadronic physics, decay physics etc. <ins class="diffchange diffchange-inline">and later chose one of them. </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><u> Simple example of class <span style="color:#ff0000"> MyPhysicsList </span> </u>:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><u> Simple example of class <span style="color:#ff0000"> MyPhysicsList </span> </u>:</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 372:</td>
<td colspan="2" class="diff-lineno">Line 371:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">See the basic tutorials to understand more about the modular physics lists.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Pre-packaged physics lists </span> ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Pre-packaged physics lists </span> ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 449:</td>
<td colspan="2" class="diff-lineno">Line 450:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__primaryGenerator.html Here] you can find how to implement MyPrimaryGeneratorAction class in your code.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__primaryGenerator.html Here] you can find how to implement MyPrimaryGeneratorAction class in your code.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">The Monoenergetic photon pencil beam example uses the '''G4ParticleGun''' class. The Proton beam with realistic geometry tutorial uses '''G4GeneralParticleSource'''. </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Optional user classes </span> ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Optional user classes </span> ==</div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=556&oldid=prevIlinaMediaWiki at 15:17, 2 September 20142014-09-02T15:17:51Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:17, 2 September 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 272:</td>
<td colspan="2" class="diff-lineno">Line 272:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>SetCutValue(defaultCutValue, "e-"); </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>SetCutValue(defaultCutValue, "e-"); </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">See the Computed tomography tutorial to understand further how to define your own physics processes for eatch particle.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== <span style="color:#000080"> Detailed physics lists </span> === </div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 387:</td>
<td colspan="2" class="diff-lineno">Line 389:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For example, if you want to simulate clinical proton beam of energy 150 MeV you can use pre-packaged physics list e.g. QGSP_BIC, QGSP_BERT and FTFP_BERT. If you are interested in Bragg curve physics, use a physics list ending in "EMV" or "EMX" e.g. QGSP_BERT_EMV. </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For example, if you want to simulate clinical proton beam of energy 150 MeV you can use pre-packaged physics list e.g. QGSP_BIC, QGSP_BERT and FTFP_BERT. If you are interested in Bragg curve physics, use a physics list ending in "EMV" or "EMX" e.g. QGSP_BERT_EMV. </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">=== <span style="color:#000080"> Building your own physics list </span> ===</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">See Computed tomography tutorial. </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Generate primary particles </span> == </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== <span style="color:#000080"> Generate primary particles </span> == </div></td></tr>
</table>IlinaMediaWikihttps://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=543&oldid=prevIlinaMediaWiki at 12:20, 2 September 20142014-09-02T12:20:13Z<p></p>
<a href="https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Introduction_to_GEANT4&diff=543&oldid=542">Show changes</a>IlinaMediaWiki