Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 25: | Line 25: | ||
* <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 G4RunManager and notify it of your mandatory and optional classes. |
- | Example main() function: | + | Example <span style="color:#ff0000"> '''main()''' </span> function: |