# # 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 4 /run/printProgress 1000 /tracking/verbose 0 # use only for testing ############## ### Geometry # Bulk MATERIAL WIDTH unit THICK unit BIAS /SEE/geometry/Bulk VACUUM 2. um 3. um false # SV POSITION unit WIDTH unit THICK unit BIAS /SEE/geometry/SV 0. 0. 0. um 2. 2. um 3. um false ############## ### Initialize /run/initialize ############## ### Primaries (General Particle Source) /gps/particle neutron ############################################### ## User-defined histogram /gps/ene/type User # User-defined histogram /gps/hist/type energy /control/execute /abs/path/to/spectrum/energy_histogram.mac # in histogram file, start lines with "/gps/hist/point " macro command ## Pointwise data with interpolation between data points #/gps/ene/type Arb # Point-wise data #/gps/ene/diffspec true # true = differential, false = integral #/gps/hist/type arb # arb (point-wise histogram) #/gps/hist/file /abs/path/to/spectrum/pointwise_energy_lin.ascii #/gps/hist/inter Lin # linear interpolation ############################################### /gps/direction 0 0 -1 /gps/pos/centre 0 0 3 mm /gps/pos/type Plane /gps/pos/shape Rectangle /gps/pos/halfx 1 um /gps/pos/halfy 1 um ############## ### Scoring /SEE/scoring/addScoring 4 Ekin neutron /SEE/scoring/setHistogram log 100 eV 10 MeV 300 /SEE/scoring/dumpHistogramsAfter 10000 ############## ### Run /run/beamOn 10000000