[904] | 1 | <pre> |
---|
| 2 | ####################################################################### |
---|
| 3 | # MACRO FILE NAME: exN03Tree1.mac # |
---|
| 4 | # # |
---|
| 5 | # AUTHOR(S): Satoshi Tanaka # |
---|
| 6 | # # |
---|
| 7 | # DATE: # |
---|
| 8 | # Sept 08-09, 2001 (at Hebden Bridge, UK) # |
---|
| 9 | # June 20, 2001 # |
---|
| 10 | # # |
---|
| 11 | # CONTENTS: A macro to demonstrate GAG DTREE # |
---|
| 12 | # # |
---|
| 13 | # USAGE: # |
---|
| 14 | # * Edit exampleN03.cc to use the GAG interface # |
---|
| 15 | # % $G4BINDIR/exampleN03 # |
---|
| 16 | # Idle> /control/execute visTutor/exN03Tree1.mac # |
---|
| 17 | # # |
---|
| 18 | # REQUIRED PLATFORMS & SOFTWARES: Unix/Windows, GAG (Java version) # |
---|
| 19 | # # |
---|
| 20 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: # |
---|
| 21 | # # |
---|
| 22 | # * Unnecessary # |
---|
| 23 | # # |
---|
| 24 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: # |
---|
| 25 | # (See geant4/source/visualization/README for details.) # |
---|
| 26 | # # |
---|
| 27 | # * Unnecessary # |
---|
| 28 | # # |
---|
| 29 | # VERBOSE LEVEL: # |
---|
| 30 | # # |
---|
| 31 | # < 10: - does not print daughters of repeated logical volumes. # |
---|
| 32 | # - does not repeat replicas. # |
---|
| 33 | # >= 10: prints all physical volumes. # |
---|
| 34 | # For level of detail add: # |
---|
| 35 | # >= 0: prints physical volume name. # |
---|
| 36 | # >= 1: prints logical volume name. # |
---|
| 37 | # >= 2: prints solid name and type. # |
---|
| 38 | # # |
---|
| 39 | # ADDITIONAL NOTES: # |
---|
| 40 | # * The geometry tree is displayed in GAG windows stdout. # |
---|
| 41 | # (If you are using the G4 character terminals, the tree is # |
---|
| 42 | # displayed in stdout.) # |
---|
| 43 | # * The compound command to visualize geometry tree: # |
---|
| 44 | # /vis/drawTree [<physical-volume-name>] [<system>] # |
---|
| 45 | ####################################################################### |
---|
| 46 | |
---|
| 47 | # Draw the whole geometry tree |
---|
| 48 | # Note: "!" means the default argument, i.e., "world" |
---|
| 49 | /vis/drawTree ! GAGTree |
---|
| 50 | |
---|
| 51 | # Draw a part of tree |
---|
| 52 | /vis/drawTree Gap GAGTree |
---|
| 53 | |
---|
| 54 | # Change the level to display details |
---|
| 55 | /vis/GAGTree/verbose 1 |
---|
| 56 | /vis/drawTree ! GAGTree |
---|
| 57 | |
---|
| 58 | # Change the level to display details |
---|
| 59 | /vis/GAGTree/verbose 2 |
---|
| 60 | /vis/drawTree ! GAGTree |
---|
| 61 | |
---|
| 62 | # Change the level to display details |
---|
| 63 | /vis/GAGTree/verbose 10 |
---|
| 64 | /vis/drawTree ! GAGTree |
---|
| 65 | </pre> |
---|