1#Define some geometrical parameters
2###############################################
3/RMC01/geometry/SetSensitiveVolumeHeight 1. mm
4/RMC01/geometry/SetSensitiveVolumeRadius 1. mm
6/RMC01/geometry/SetShieldingThickness 2. mm
11###############################################
13#/adjoint_physics/UseProtonIonisation true
14/adjoint_physics/UseGammaConversion false
15/adjoint_physics/SetEminForAdjointModels 1. keV
16/adjoint_physics/SetEmaxForAdjointModels 10. MeV
18#Initialize geometry and physics
19###############################################
24###############################################
26/run/setCut 1.000e-02 mm
31#Definition of parameters for the Adjoint simulation
32##################################
35#Definition of the external source
37/adjoint/DefineExtSourceOnExtSurfaceOfAVolume Shielding
38/adjoint/SetExtSourceEmax 10. MeV
40#Definition of the adjoint source
41/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume SensitiveVolume
42/adjoint/SetAdjSourceEmin 1. keV
43/adjoint/SetAdjSourceEmax 10. MeV
46#Definition of the primary spectrum to which
47#the results of the adjoint/reverse simulation will be normalised
49/RMC01/analysis/SetExponentialSpectrumForAdjointSim e- 1. cm-2 1. 1e-3 10. MeV
51#Definition of the precision in % that the computed energy deposited should reach
52#before aborting the run.
53/RMC01/analysis/SetExpectedPrecisionOfResults 1.
57# This opens the default viewer - see examples/basic/B1/vis.mac for a
58# more comprehensive overview of options. Also the documentation.
60# Disable auto refresh and quieten vis messages whilst scene and
61# trajectories are established:
62/vis/viewer/set/autoRefresh false
69#/vis/viewer/set/viewpointThetaPhi 90. 0.
74# Specify style (surface or wireframe):
75#/vis/viewer/set/style wireframe
77# Draw coordinate axes:
78#/vis/scene/add/axes 0 0 0 1 m
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)
88# Draw hits at end of event:
92#/vis/filtering/trajectories/create/particleFilter
93#/vis/filtering/trajectories/particleFilter-0/add gamma
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
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
104# To superimpose all of the events from a given run:
105#/vis/scene/endOfEventAction accumulate
107# Re-establish auto refreshing and verbosity:
108/vis/viewer/set/autoRefresh true
111# For file-based drivers, use this to create an empty detector view: