Difference between revisions of "Simulations of Particle Interactions with Matter"
Line 58: | Line 58: | ||
/random/resetEngineFrom currentEvent.rndm | /random/resetEngineFrom currentEvent.rndm | ||
− | ==Building GEANT4.10. | + | ==Building GEANT4.10== |
+ | |||
+ | ===4.10.02=== | ||
[[TF_GEANT4.10.2]] | [[TF_GEANT4.10.2]] | ||
+ | ===4.10.01=== | ||
+ | |||
+ | [[TF_GEANT4.10.1]] | ||
==Building GEANT4.9.5== | ==Building GEANT4.9.5== |
Revision as of 20:27, 22 August 2016
Class Admin
Homework Problems
HomeWork_Simulations_of_Particle_Interactions_with_Matter
Introduction
Energy Loss
Ann. Phys. vol. 5, 325, (1930)
Interactions of Electrons and Photons with Matter
Hadronic Interactions
Resources
Saving/restoring Random number see
You save the current state of the random number generator with the command
/random/setSavingFlag 1
/random/saveThisRun
A file is created called
currentEvent.rndm
/control/shell mv currentEvent.rndm currentEvent10.rndm
You can restore the random number generator and begin generating random number from the last save time
/random/resetEngineFrom currentEvent.rndm
Building GEANT4.10
4.10.02
4.10.01
Building GEANT4.9.5
An old version of Installation notes for versions prior to 9.5
Visualization Libraries:
Compiling G4 with ROOT
These instruction describe how you can create a tree within ExN02SteppingVerbose to store tracking info in an array (max number of steps in a track is set to 100 for the desired particle)
Using SLURM
http://slurm.schedmd.com/quickstart.html
https://rc.fas.harvard.edu/resources/documentation/convenient-slurm-commands/
simple batch script for one process job
create the file submit.sbatch below
#!/bin/sh #SBATCH --time=1 cd src/PI ./PI_MC 100000000000000
the execute
- sbatch submit.sbatch
check if its running with
- squeue
On minerve
Sample script to submit 10 batch jobs.
the filename is minervesubmit and you run like
source minervesubmit
cd /home/foretony/src/GEANT4/geant4.9.5/Simulations/N02wROOT/batch qsub submit10mil qsub submit20mil qsub submit30mil qsub submit40mil qsub submit50mil qsub submit60mil qsub submit70mil qsub submit80mil qsub submit90mil qsub submit100mil
The file submit10mil looks like this
#!/bin/sh #PBS -l nodes=1 #PBS -A FIAC #PBS -M foretony@isu.edu #PBS -m abe # source /home/foretony/src/GEANT4/geant4.9.5/geant4.9.6-install/bin/geant4.sh cd /home/foretony/src/GEANT4/geant4.9.5/Simulations/N02wROOT/batch/10mil ../../exampleN02 run1.mac > /dev/null
use
qstat
to check that the process is still running
use
qdel jobID#
if you want to kill the batch job, the jobID number shows up when you do stat.
for example
[foretony@minerve HW10]$ qstat Job id Name User Time Use S Queue ------------------------- ---------------- --------------- -------- - ----- 27033.minerve submit foretony 00:41:55 R default [foretony@minerve HW10]$ qdel 27033 [foretony@minerve HW10]$ qstat