Proton beam with realistic geometry
From UCL HEP PBT Wiki
for
Proton beam with realistic geometry
Jump to:
navigation
,
search
== <span style="color:#000080"> Introduction </span> == This example shows the dose distribution in water along the incident proton beam. The difference with the monoenergetic proton pencil beam example is that the beam is defined with realistic geometry. Instead of particle gun, we use general particle source for the generation of the proton beam. For more details on general particle source look [https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s07.html here]. == <span style="color:#000080"> Setting up the environment </span> == ; Connect to HEP cluster and create folder ProtonGBFolder in your area <pre style="color: #800000; background-color: #dcdcdc"> ssh username@plus1.hep.ucl.ac.uk password: type your password here cd /home/username/ mkdir ProtonGBFolder cd ProtonGBFolder </pre> ; Setup GEANT4 environment <pre style="color: #800000; background-color: #dcdcdc"> source /unix/pbt/software/dev/bin/pbt-dev.sh </pre> == <span style="color:#000080"> How to get the code </span> == ; Copy the code to your working directory and rename it <pre style="color: #800000; background-color: #dcdcdc"> cp -r /unix/pbt/tutorials/basic/ProtonGB . mv ProtonGB ProtonGB_source </pre> == <span style="color:#000080"> How to run the code </span> == ; Inside /home/username/ProtonGBFolder/ create a directory <pre style="color: #800000; background-color: #dcdcdc"> mkdir ProtonGB_build </pre> ; To compile the code enter this directory and run cmake and make <pre style="color: #800000; background-color: #dcdcdc"> cd ProtonGB_build cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonGBFolder/ProtonGB_source make </pre> ; Run macro proton.mac. <pre style="color: #800000; background-color: #dcdcdc"> ./protonGB proton.mac </pre> == <span style="color:#000080"> How to analyze data </span> ==
Return to
Proton beam with realistic geometry
.
Views
Page
Discussion
View source
History
Personal tools
Log in
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages