1 | ####################################################################### |
---|
2 | # MACRO FILE NAME: exN03Vis15.mac # |
---|
3 | # # |
---|
4 | # AUTHOR(S): Laurent Garnier # |
---|
5 | # # |
---|
6 | # DATE: July 01, 2007 # |
---|
7 | # # |
---|
8 | # CONTENTS: A basic macro for demonstrating Inventor driver # |
---|
9 | # # |
---|
10 | # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis15.mac # |
---|
11 | # # |
---|
12 | # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL ,Qt # |
---|
13 | # # |
---|
14 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: # |
---|
15 | # (See geant4/source/visualization/README for details.) # |
---|
16 | # # |
---|
17 | # % setenv G4VIS_BUILD_OGLQT 1 # |
---|
18 | # # |
---|
19 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: # |
---|
20 | # (See geant4/source/visualization/README for details.) # |
---|
21 | # # |
---|
22 | # % setenv G4VIS_USE_OGLQT 1 # |
---|
23 | # # |
---|
24 | # ADDITIONAL NOTES: # |
---|
25 | # # |
---|
26 | ####################################################################### |
---|
27 | |
---|
28 | # Create "scene-0" |
---|
29 | # |
---|
30 | /vis/scene/create |
---|
31 | |
---|
32 | # Invoke the Qt driver |
---|
33 | # |
---|
34 | /vis/sceneHandler/create OGL |
---|
35 | /vis/viewer/create |
---|
36 | |
---|
37 | # Add the world volume to the current scene |
---|
38 | # |
---|
39 | /vis/scene/add/volume |
---|
40 | |
---|
41 | #/vis/scene/add/volume Layer |
---|
42 | # Name of the absorbers = name of their material (Lead) ! |
---|
43 | #/vis/scene/add/volume Lead |
---|
44 | # Name of the gaps = name of their material (liquidArgon) ! |
---|
45 | #/vis/scene/add/volume liquidArgon |
---|
46 | |
---|
47 | /tracking/storeTrajectory 1 |
---|
48 | |
---|
49 | # Bird-eye view of events |
---|
50 | # |
---|
51 | /vis/viewer/reset |
---|
52 | /vis/viewer/set/viewpointThetaPhi 45 45 |
---|
53 | |
---|
54 | /vis/scene/notifyHandlers |
---|
55 | |
---|
56 | /vis/scene/add/trajectories smooth |
---|
57 | /vis/modeling/trajectories/create/drawByCharge |
---|
58 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true |
---|
59 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 |
---|
60 | /vis/scene/endOfEventAction accumulate |
---|
61 | |
---|
62 | /control/verbose 2 |
---|
63 | |
---|
64 | /vis/viewer/update |
---|
65 | |
---|
66 | /run/beamOn 1 |
---|
67 | |
---|