81 lines
2.0 KiB
Plaintext
81 lines
2.0 KiB
Plaintext
#
|
|
# Macro file for the initialization phase of field01
|
|
#
|
|
# It creates the default geometry (simple absorber cylinder )
|
|
#
|
|
/tracking/verbose 1
|
|
/run/verbose 1
|
|
#
|
|
# ****** Start of initialisation of classes for field propagation
|
|
# Change the type of stepper used to integrate the ODE of motion
|
|
#
|
|
#/field/setStepperType 45
|
|
#
|
|
# Recommended - new in Geant4 10.3-beta:
|
|
# 15 - Dormand Prince 745 : well-known and very efficient embedded method
|
|
# Highly recommended in literature, e.g. Hairer,
|
|
# Numerical Recipes
|
|
# Used in several RK programs (e.g. DOPRI5 code)
|
|
#
|
|
# Good choices for reasonably smooth fields - available since Geant4 1.0
|
|
# 8 - Cash Karp RKF 45 : 'embedded' RK method - 4th/5th faster, robust
|
|
# ( uses difference of 4th & 5th order for error estimate )
|
|
#
|
|
# Default - good choice for unknown fields
|
|
# 4 - ClassicalRK4 : original Runge-Kutta method, very robust but slower )
|
|
# ( obtains error estimate by doing 2 half steps )
|
|
#
|
|
# Good choices for non-smooth fields:
|
|
# 3 - SimpleHeum : low order, with error obtained from half-steps
|
|
# 23 - BogackiShampine23 : lower order embedded method (new in 10.3-beta)
|
|
#
|
|
#
|
|
# Control the mininum step size for integration in field
|
|
#
|
|
/field/setMinStep 0.1 mm
|
|
#
|
|
# Initialise the field classes - parameters, stepper, ...
|
|
#
|
|
/field/update
|
|
#
|
|
# ****** Initialisation of classes for field propagation is done
|
|
#
|
|
/run/initialize
|
|
#
|
|
# /run/particle/dumpCutValues
|
|
#
|
|
/gun/particle e-
|
|
#
|
|
# /gun/particle proton
|
|
# /gun/particle chargedgeantino
|
|
#
|
|
/gun/energy 500.0 MeV
|
|
/run/beamOn 1
|
|
#
|
|
/gun/energy 250.0 MeV
|
|
/run/beamOn 1
|
|
#
|
|
/gun/energy 200.0 MeV
|
|
/run/beamOn 1
|
|
#
|
|
/gun/energy 100.0 MeV
|
|
/run/beamOn 1
|
|
#
|
|
/gun/energy 50.0 MeV
|
|
/run/beamOn 1
|
|
#
|
|
# Change the value of the B-field
|
|
#
|
|
/field/update
|
|
/field/setFieldZ 1.0 kG
|
|
#
|
|
#
|
|
#
|
|
/gun/energy 500.0 MeV
|
|
/tracking/verbose 1
|
|
/run/beamOn 1
|
|
|
|
/tracking/verbose 0
|
|
/run/printProgress 10
|
|
/run/beamOn 100
|