source: trunk/examples/novice/N03/visTutor/exN03Vis9.mac @ 1302

Last change on this file since 1302 was 1302, checked in by garnier, 14 years ago

change in NO3

File size: 3.7 KB
Line 
1#######################################################################
2#  MACRO FILE NAME: exN03Vis9.mac                                     #
3#                                                                     #
4#  AUTHOR(S): Guy Barrand                                             #
5#                                                                     #
6#  DATE:                                                              #
7#        April   08, 2004                                             #
8#                                                                     #
9#  CONTENTS: A simplest macro to demonstrate visualization of         #
10#            detector geometry and events                             #
11#                                                                     #
12#  USAGE:  % gmake visclean                                           #
13#          % $G4BINDIR/exampleN03                                     #
14#          Idle> /control/execute visTutor/exN03Vis9.mac              #
15#                                                                     #
16#  REQUIRED PLATFORMS & SOFTWARES: Windows, OpenGL                    #
17#  OPTIONAL :                      DAWN (version 3.85 or after)       #
18#                                                                     #
19#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
20#  (See geant4/source/visualization/README for details.)              #
21#                                                                     #
22#    G4VIS_BUILD_OPENGLWIN32_DRIVER                                   #
23#   (G4UI_BUILD_WIN32_SESSION)                                        #
24#                                                                     #
25#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
26#  (See geant4/source/visualization/README for details.)              #
27#                                                                     #
28#    G4VIS_USE_OPENGLWIN32                                            #
29#   (G4UI_USE_WIN32)                                                  #
30#                                                                     #
31#  ADDITIONAL NOTES:                                                  #
32#    The compound command "/vis/open <vis-driver-name>"               #
33#    is equivalent to the following set of commands:                  #
34#                                                                     #
35#      /vis/sceneHandler/create $1                                    #
36#      /vis/viewer/create                                             #
37#                                                                     #
38#    The compound command "/vis/drawVolume <physical-volume-name>"    #
39#    is equivalent to the following set of commands:                  #
40#                                                                     #
41#      /vis/scene/create                                              #
42#      /vis/scene/add/volume $1                                       #
43#      /vis/sceneHandler/attach                                       #
44#                                                                     #
45#######################################################################
46
47##############################################
48# Visualization of detector geometry and trajectories
49#  with the OGLIWin32 (OpenGL Immediate Windows) driver
50##############################################
51
52# Invoke the OGLIWin32 driver
53/vis/open OGLIWin32
54
55# Set camera
56/vis/viewer/reset
57/vis/viewer/set/viewpointThetaPhi 70 20
58
59# Create an empty scene and add the detector geometry to it
60/vis/drawVolume
61
62# Visualize events added to the current scene
63/tracking/storeTrajectory 1
64/run/beamOn 1
65
Note: See TracBrowser for help on using the repository browser.