-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis.mac
63 lines (46 loc) · 1.51 KB
/
vis.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Macro file for the initialization phase of field02.
#
# It creates the default geometry (simple absorber cylinder )
#
/tracking/verbose 0
/run/verbose 0
/field/setStepperType 4
/field/setMinStep 10 mm
/field/update
/run/initialize
/run/particle/dumpCutValues
/gun/particle gamma
/gun/energy 0.511 MeV
/process/em/lowestElectronEnergy 10 eV
# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
# Use this open statement to create a .heprep file suitable for
# viewing in HepRApp:
#/vis/open HepRepFile
# Use this open statement to create a .wrl file suitable for
# viewing in a VRML viewer:
#/vis/open VRML2FILE
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
/vis/verbose errors
# Draw geometry:
/vis/drawVolume
# Specify view angle:
/vis/viewer/set/viewpointThetaPhi 90. 0.
# Specify zoom value:
/vis/viewer/zoom 2.
# Draw smooth trajectories at end of event, showing trajectory points
# as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
/vis/modeling/trajectories/create/drawByCharge
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# To superimpose all of the events from a given run:
#/vis/scene/endOfEventAction accumulate
#
# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
/vis/verbose warnings
#/process/optical/scintillation/setTrackSecondariesFirst true
#/run/beamOn 1