Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/basic/B2/macros/run1.mac is written in an unsupported language. File is not indexed.

0001 # Macro file for example B2
0002 # 
0003 # Can be run in batch, without graphic
0004 # or interactively: Idle> /control/execute run1.mac
0005 #
0006 # Change the default number of workers (in multi-threading mode) 
0007 #/run/numberOfThreads 4
0008 #
0009 # Initialize kernel
0010 /run/initialize
0011 #
0012 # Default kinematics: 
0013 # proton 3 GeV in direction (0.,0.,1.)
0014 # 1 event with tracking/verbose
0015 #
0016 /tracking/verbose 1
0017 /run/beamOn 1
0018 #
0019 # 1 event with printing hits
0020 #
0021 /tracking/verbose 0
0022 /hits/verbose 2
0023 /run/beamOn 1
0024 #
0025 # set target and chamber material
0026 #
0027 /B2/det/setTargetMaterial G4_WATER
0028 /B2/det/setChamberMaterial G4_Ar
0029 /run/beamOn 3
0030 # 
0031 # set a magnetic field and max allowed step length
0032 # 3 event with printing hits
0033 #
0034 /globalField/verbose 1
0035 /globalField/setValue 0.2 0 0 tesla
0036 /B2/det/stepMax 1.0 mm
0037 /gun/energy 0.3 GeV
0038 /run/beamOn 3
0039 #
0040 # muon 300 MeV in the direction (0.,0.,1.)
0041 # 3 event with detailed printing
0042 #
0043 /gun/particle mu-
0044 /gun/energy 300 MeV
0045 /run/beamOn 3