| 1 | First steps :
|
|---|
| 2 | -----------
|
|---|
| 3 | Click in 'Geant4/init' to initialize Geant4
|
|---|
| 4 | for this example. This execute the script :
|
|---|
| 5 | <package>/<version>/scripts/Geant4/init.g4m
|
|---|
| 6 |
|
|---|
| 7 | Note that any action in the GUI triggers interpreted
|
|---|
| 8 | scripts (Python, Geant4 intercoms,...)
|
|---|
| 9 |
|
|---|
| 10 | Click in 'Geant4/Detector' to visualize some geometry.
|
|---|
| 11 |
|
|---|
| 12 | Click in 'Geant4/Geant4/Run...' to map the Run dialog box.
|
|---|
| 13 |
|
|---|
| 14 | Click in Apply to start a run.
|
|---|
| 15 |
|
|---|
| 16 | After each event, control is given to the GUI.
|
|---|
| 17 | Someone can play with the Inventor viewer controls
|
|---|
| 18 | to manipulate the scene.
|
|---|
| 19 |
|
|---|
| 20 | Click in 'Geant4/Geant4/Next evt' to return to Geant4
|
|---|
| 21 | to produce a new event.
|
|---|
| 22 |
|
|---|
| 23 | By default, the command prompt is set to Geant4
|
|---|
| 24 | commands. Try for example :
|
|---|
| 25 | G4> /gun/direction 1 0 0
|
|---|
| 26 | to change the "gun" direction.
|
|---|
| 27 |
|
|---|
| 28 | Geometry viewing :
|
|---|
| 29 | ----------------
|
|---|
| 30 | Click in 'Tree/PVs' to display the geometry
|
|---|
| 31 | hierachy in the tree widget (the one at the
|
|---|
| 32 | left of the viewer).
|
|---|
| 33 |
|
|---|
| 34 | Choose an item in the tree to visualize it.
|
|---|
| 35 |
|
|---|
| 36 | Using trajectories timed mode :
|
|---|
| 37 | -----------------------------
|
|---|
| 38 | To change time slicing of the trajectories :
|
|---|
| 39 |
|
|---|
| 40 | Python> node = region_findSoG4Trajectories()
|
|---|
| 41 | Python> node.set('timeInterval 0.05')
|
|---|
| 42 | Python> node.set('timeSteps 200')
|
|---|
| 43 | Python> node.set('timeStart 0')
|
|---|
| 44 |
|
|---|
| 45 | To have some traceback :
|
|---|
| 46 |
|
|---|
| 47 | Python> node.set('verbose TRUE')
|
|---|
| 48 |
|
|---|
| 49 | To see current values :
|
|---|
| 50 |
|
|---|
| 51 | Python> iv_dumpNode(node)
|
|---|