Loading...
Searching...
No Matches
vis.mac
Go to the documentation of this file.
1#Define some geometrical parameters
2###############################################
3/RMC01/geometry/SetSensitiveVolumeHeight 1. mm
4/RMC01/geometry/SetSensitiveVolumeRadius 1. mm
5
6/RMC01/geometry/SetShieldingThickness 2. mm
7
8
9#
10#Select physics list
11###############################################
12
13#/adjoint_physics/UseProtonIonisation true
14/adjoint_physics/UseGammaConversion false
15/adjoint_physics/SetEminForAdjointModels 1. keV
16/adjoint_physics/SetEmaxForAdjointModels 10. MeV
17#
18#Initialize geometry and physics
19###############################################
20/run/initialize
21
22#
23#Set cut
24###############################################
25
26/run/setCut 1.000e-02 mm
27/control/verbose 1
28
29
30#
31#Definition of parameters for the Adjoint simulation
32##################################
33
34
35#Definition of the external source
36
37/adjoint/DefineExtSourceOnExtSurfaceOfAVolume Shielding
38/adjoint/SetExtSourceEmax 10. MeV
39
40#Definition of the adjoint source
41/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume SensitiveVolume
42/adjoint/SetAdjSourceEmin 1. keV
43/adjoint/SetAdjSourceEmax 10. MeV
44
45
46#Definition of the primary spectrum to which
47#the results of the adjoint/reverse simulation will be normalised
48
49/RMC01/analysis/SetExponentialSpectrumForAdjointSim e- 1. cm-2 1. 1e-3 10. MeV
50
51#Definition of the precision in % that the computed energy deposited should reach
52#before aborting the run.
53/RMC01/analysis/SetExpectedPrecisionOfResults 1.
54
55# Open a viewer
56/vis/open
57# This opens the default viewer - see examples/basic/B1/vis.mac for a
58# more comprehensive overview of options. Also the documentation.
59#
60# Disable auto refresh and quieten vis messages whilst scene and
61# trajectories are established:
62/vis/viewer/set/autoRefresh false
63/vis/verbose errors
64#
65# Draw geometry:
66/vis/drawVolume
67#
68# Specify view angle:
69#/vis/viewer/set/viewpointThetaPhi 90. 0.
70#
71# Specify zoom value:
72#/vis/viewer/zoom 2.
73#
74# Specify style (surface or wireframe):
75#/vis/viewer/set/style wireframe
76#
77# Draw coordinate axes:
78#/vis/scene/add/axes 0 0 0 1 m
79#
80# Draw smooth trajectories at end of event, showing trajectory points
81# as markers 2 pixels wide:
82/vis/scene/add/trajectories smooth
83/vis/modeling/trajectories/create/drawByCharge
84/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
85/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
86# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
87#
88# Draw hits at end of event:
89#/vis/scene/add/hits
90#
91# To draw only gammas:
92#/vis/filtering/trajectories/create/particleFilter
93#/vis/filtering/trajectories/particleFilter-0/add gamma
94#
95# To invert the above, drawing all particles except gammas,
96# keep the above two lines but also add:
97#/vis/filtering/trajectories/particleFilter-0/invert true
98#
99# Many other options are available with /vis/modeling and /vis/filtering.
100# For example, to select colour by particle ID:
101#/vis/modeling/trajectories/create/drawByParticleID
102#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
103#
104# To superimpose all of the events from a given run:
105#/vis/scene/endOfEventAction accumulate
106#
107# Re-establish auto refreshing and verbosity:
108/vis/viewer/set/autoRefresh true
109/vis/verbose warnings
110#
111# For file-based drivers, use this to create an empty detector view:
112/vis/viewer/flush
113
114/run/verbose 1
115/tracking/verbose 0
116/adjoint/start_run 10

Applications | User Support | Publications | Collaboration