Files
geant4/examples/advanced/iort_therapy/defaultMacro.mac
T
2018-12-07 15:15:39 +01:00

120 lines
3.4 KiB
Plaintext

#########################
# Set of the verboses
#
/control/verbose 1
/tracking/verbose 0
/run/verbose 1
/event/verbose 0
##########################
# Set of the physic models
#
/Physics/addPhysics standard_opt3 # Electromagnetic model
##########################
# Geometry #
##########################
#/geometrySetup/selectGeometry coll80
##########################
# Initialisation procedure
#
/run/initialize
##########################
# Visualisation
#
/vis/scene/create
/vis/open OGL
/vis/viewer/flush
#/vis/viewer/set/style solid
/vis/viewer/set/auxiliaryEdge true
/vis/viewer/set/viewpointThetaPhi 30 140 deg
/vis/viewer/zoom 1
/vis/viewer/pan -10 0 cm
/vis/scene/add/trajectories
/vis/scene/endOfEventAction accumulate
#/vis/viewer/update # new
##########################
# Definition of the GUI
# It will work only if the QT GUI interface is active
#
#/control/execute macro/GUIPersonalisation.mac
##########################
# Set here the cut and the step max for the tracking.
# Suggested values of cut and step:
#
# Set cuts ONLY inside the detector
/Physics/setDetectorCuts 0.01 mm
# Set cuts OUTSIDE the detector
#/Physics/setCuts 1. mm
/Physics/setCuts 0.01 mm
/Step/waterPhantomStepMax 0.01 mm
#########################
# Set the primary particle type,
# energy and position along the X direction and spread
#
/beam/energy/meanEnergy 9.9 MeV # 6.2 MeV old
/beam/energy/sigmaEnergy 500 keV # 400 keV old
/beam/position/Xposition -862.817 mm # coll40, coll50, coll60, coll70, coll80 -> -862.817 mm ; coll100 ->
# -1062.817 mm ;
#/beam/momentum/Theta # default -> 6°;
#########################
# Display the event number
# during the run
#
/event/printEventNumber 1000
#########################
# Start of the run
#
# If secondary particles dose & fluence are needed
#/analysis/secondary true
# Default material is water liquid
#/changePhantom/material G4_PLEXIGLASS
#/ProtectionDisc1/OuterRadiusDisc1 30 # default -> 40*mm ; 30(coll40);35(coll50);45(coll70);50(coll40);60(coll100)
#/ProtectionDisc1/InnerRadiusDisc1 # default -> 0*mm
#/ProtectionDisc1/HeightDisc1 # default -> 2*mm
#/ProtectionDisc1/XPositionDisc1 -11.0 # default -> -11*mm R90 (10.1 MeV) -> -10.68 mm from detector centre (24mm)
#/ProtectionDisc1/YPositionDisc1 5.0 # default -> 0.0*mm
#/ProtectionDisc1/ZPositionDisc1 5.0 # default -> 0.0*mm
#/ProtectionDisc1/material G4_Al # default -> G4_WATER ;
#/ProtectionDisc2/OuterRadiusDisc2 30 # default -> 40*mm ; 30(coll40);35(coll50);45(coll70);50(coll40);60(coll100)
#/ProtectionDisc2/InnerRadiusDisc2 # default -> 0*mm
#/ProtectionDisc2/HeightDisc2 # default -> 1*mm
#/ProtectionDisc2/XPositionDisc2 -8.0 # default -> -8*mm
#/ProtectionDisc2/material G4_Pb # default -> G4_WATER ;
#/ChangeTiltAngleDisc1-2/TiltAngleDisc1-2 110.0 # default -> 90.0*deg around Y
#/InsertProtectionDisc/insert
#/changePhantom/update
#
# Scoring mesh is used to calculate
# the dose in the phantom
/score/create/boxMesh boxMesh_1
#
/score/mesh/boxSize 10. 10. 10. cm
/score/mesh/nBin 300 300 300
/score/mesh/translate/xyz 4.5 0. 0. cm
/score/quantity/doseDeposit dose Gy
#
/score/close
#
/score/list
/DeleteProtectionDisc/delete
/run/beamOn 100
/score/dumpQuantityToFile boxMesh_1 dose dose.out