Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 29: | Line 29: | ||
== The function main() == | == The function main() == | ||
- | The function <span style="color:#ff0000"> | + | The function <span style="color:#ff0000"> main() </span> defines the skeleton of your simulation code. Inside the function you instantiate <span style="color:#ff0000"> G4RunManager </span> and notify it of your mandatory and optional classes. Example <span style="color:#ff0000"> main() </span> function: |
<span style="color:#800000"> { </span> | <span style="color:#800000"> { </span> |