Warning, /geant4/examples/extended/biasing/ReverseMC01/run_adjoint_simulation_proton.mac is written in an unsupported language. File is not indexed.
0001 #/control/verbose 1
0002
0003
0004 #
0005 #Define some geometrical parameters
0006 ###############################################
0007 /RMC01/geometry/SetSensitiveVolumeHeight 1. mm
0008 /RMC01/geometry/SetSensitiveVolumeRadius 1. mm
0009
0010 /RMC01/geometry/SetShieldingThickness 2. mm
0011
0012
0013 #
0014 #Select physics list
0015 ###############################################
0016
0017 /adjoint_physics/UseProtonIonisation true
0018 /adjoint_physics/UseGammaConversion false
0019 /adjoint_physics/SetEminForAdjointModels 1. keV
0020 /adjoint_physics/SetEmaxForAdjointModels 200. MeV
0021 #
0022 #Initialize geometry and physics
0023 ###############################################
0024 /run/initialize
0025
0026 #
0027 #Set cut
0028 ###############################################
0029
0030 /run/setCut 1.000e-02 mm
0031 /control/verbose 1
0032
0033
0034 #
0035 #Definition of parameters for the Adjoint simulation
0036 ##################################
0037
0038
0039 #Definition of the external source
0040
0041 /adjoint/DefineExtSourceOnExtSurfaceOfAVolume Shielding
0042 /adjoint/SetExtSourceEmax 200. MeV
0043
0044 #Definition of the adjoint source
0045 /adjoint/DefineAdjSourceOnExtSurfaceOfAVolume SensitiveVolume
0046 /adjoint/SetAdjSourceEmin 1. keV
0047 /adjoint/SetAdjSourceEmax 200. MeV
0048
0049
0050 #Definition of the primary spectrum to which
0051 #the results of the adjoint/reverse simulation will be normalised
0052
0053 /RMC01/analysis/SetPowerLawPrimSpectrumForAdjointSim proton 1. cm-2 1. 1e-3 200. MeV
0054
0055 #Definition of the precision in % that the computed energy deposited should reach
0056 #before aborting the run.
0057 /RMC01/analysis/SetExpectedPrecisionOfResults 1.
0058
0059
0060
0061 /run/verbose 1
0062 /tracking/verbose 0
0063 /adjoint/start_run 100000