Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 1: | Line 1: | ||
+ | == Introduction == | ||
+ | |||
GEANT4 is a software toolkit based on C++. In your code you have to define: | GEANT4 is a software toolkit based on C++. In your code you have to define: | ||
Line 25: | Line 27: | ||
* <span style="color:#800000"> G4RunManager </span>: Manages the simulation process | * <span style="color:#800000"> G4RunManager </span>: Manages the simulation process | ||
+ | == The function main() == | ||
The function <span style="color:#ff0000"> '''main()''' </span> defines the skeleton of your simulation code. Inside the function you instantiate <span style="color:#800000"> G4RunManager </span> and notify it of your mandatory and optional classes. Example <span style="color:#ff0000"> '''main()''' </span> function: | The function <span style="color:#ff0000"> '''main()''' </span> defines the skeleton of your simulation code. Inside the function you instantiate <span style="color:#800000"> G4RunManager </span> and notify it of your mandatory and optional classes. Example <span style="color:#ff0000"> '''main()''' </span> function: | ||
Line 58: | Line 61: | ||
<span style="color:#800000"> } </span> | <span style="color:#800000"> } </span> | ||
+ | |||
+ | == Experimental setup == | ||
+ | |||
+ | == Physics processes == | ||
+ | |||
+ | == Generate primary particles == | ||
+ | |||
+ | == Optional user classes == |