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