# # G4SEE Single Event Effect simulation toolkit # ============================================ # SPDX-FileCopyrightText: © 2022 CERN for the benefit of the G4SEE Collaboration # SPDX-License-Identifier: CC-BY-4.0 # ########################################## ### Example input macro file for G4SEE ### ########################################## /run/numberOfThreads 1 /run/printProgress 100 /tracking/verbose 0 # use only for testing #/random/setSeeds 274993695, 480659253 # for testing ############## ### Geometry # BULK MATERIAL WIDTH unit THICK unit BIAS /SEE/geometry/Bulk G4_Si 20 mm 300 um true # SV POSITION unit WIDTH unit THICK unit BIAS /SEE/geometry/SV 0 0 -0.5 um 20 20 mm 299 um true ############## ### Biasing /SEE/biasing/biasParticle proton /SEE/biasing/biasProcess protonInelastic /SEE/biasing/biasFactor 1000 ############## ### Physics /SEE/physics/addPhysics G4HadronElasticPhysicsHP /SEE/physics/addPhysics G4HadronPhysicsFTF_BIC # Particle production range cuts /SEE/physics/setElectronCut 1 um # only e- /SEE/physics/setPositronCut 1 um # only e+ /SEE/physics/setGammaCut 1 mm /SEE/physics/setHadronCut 1 nm ############## ### Initialize /run/initialize ############## ### Primaries (General Particle Source) /gps/particle proton /gps/ene/mono 10 MeV /gps/direction 0 0 -1 /gps/pos/centre 0 0 1 mm /gps/pos/type Point ############## ### Scoring # Energy deposited /SEE/scoring/addScoring 1 Edep /SEE/scoring/setHistogram log 10 eV 11 MeV 400 # Kinetic energy /SEE/scoring/addScoring 1 Ekin proton /SEE/scoring/setHistogram log 10 eV 20 MeV 400 /SEE/scoring/addScoring 2 Ekin e- /SEE/scoring/setHistogram log 10 eV 20 MeV 400 /SEE/scoring/addScoring 3 Ekin e+ /SEE/scoring/setHistogram log 10 eV 20 MeV 400 /SEE/scoring/addScoring 4 Ekin gamma /SEE/scoring/setHistogram log 10 eV 20 MeV 400 /SEE/scoring/setPrecision 5 ############################################################# ### Detailed Scoring /SEE/scoring/detailed true # default: false # Kinetic energy threshold for individual particle scoring /SEE/scoring/detailed/e-/setThreshold 20 keV # default: 10 keV /SEE/scoring/detailed/e+/setThreshold 20 keV # default: 10 keV /SEE/scoring/detailed/gamma/setThreshold 1 MeV # default: 100 keV # Grouping particles below kinetic energy threshold /SEE/scoring/detailed/e-/groupByAncestor true # default: false /SEE/scoring/detailed/e+/groupByAncestor true # default: false /SEE/scoring/detailed/gamma/groupByAncestor true # default: false /SEE/scoring/detailed/printPrimary true # default: true /SEE/scoring/detailed/setCSVFormat false # default: true (CSV file is smaller!) /SEE/scoring/detailed/dumpMemoryLimit 1 MB # default: 10 MB #/SEE/scoring/detailed/dumpEventLimit 100 # default: not used # Scored quantities and info per particle /SEE/scoring/detailed/addTrack true /SEE/scoring/detailed/addParent true /SEE/scoring/detailed/addEkin true /SEE/scoring/detailed/addPosition true /SEE/scoring/detailed/addMomentum true /SEE/scoring/detailed/addProcess true /SEE/scoring/detailed/addEdep true /SEE/scoring/detailed/addNdep true /SEE/scoring/detailed/addCounts true /SEE/scoring/detailed/addZ true /SEE/scoring/detailed/addA true /SEE/scoring/detailed/addVolume true /SEE/scoring/detailed/addEexc true ############## ### Run /run/beamOn 100