Originally arranged by Rensheng from a GEANT4 example
- Beam is fixed to z direction.
- TPC volume: (1000, 530, 12) mm
- B-field: (0, 0.5, 0) T
- Max. step length in TPC: 0.5 mm
- TPC volume: bin/Linux-g++/Config/Geo_Size.config
- Batch mode: Line 4 of bin/Linux-g++/Config/Initial.config
- Number of events: Line 5 of bin/Linux-g++/Config/Initial.config
- Load GEANT4 environmental variables.
- Type
source env.sh
to set G4WORKDIR to the current directory. - Type
make
to compile. - Open bin/Linux-g++/ControlRun_MultiProcess.sh file with any text editor.
- Change Lines 7-10. Note that lines 8-9 are only active when
ParticleName
is2H
,3H
,3He
or4He
. - If the particle you set is heavior than proton, make sure to set correct number of
ParticleA
andParticleZ
. - Change the number in line 17 depending on your CPU cores.
- Save an exit the text editor.
- Run bin/Linux-g++/ControlRun_MultiProcess.sh.