Added run script. Change values if needed

This commit is contained in:
Gitea 2018-04-12 15:12:20 +02:00
parent eccdc31423
commit 19bd325801
2 changed files with 43 additions and 0 deletions

10
Debug/run.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
source /opt/geant4/bin/geant4.sh
source /opt/root/bin/thisroot.sh
tube=5
cone=-10
echo "tube: $i cone: 0"
./medtech -s 100 -t $tube -c $cone

33
Debug/run_from_to.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
source /opt/geant4/bin/geant4.sh
source /opt/root/bin/thisroot.sh
cstart=-30
cend=30
cstep=5
tstart=5
tend=25
tstep=5
#all=$((($tend-$tstart)/$tstep)*(($cend-$cstart)/$cstep))
#all=$((($tend-$tstart)/$tstep*($cend-$cstart)/$cstep))
echo "$cstart $cend $cstep $tstart $tend $tstep //(cone)start end step (tube)start end step" > start.txt
echo "$all //all step" >> start.txt
#for i in {$((start))..$((end))}
#do
# echo "tube: 10 cone: $i"
#./medtech -s 100 -t 10 -c $i
#done
for ((i=cstart; i<cend+1; i+=cstep));
do
for ((j=tstart; j<tend+1; j+=tstep));
do
./medtech -s 100 -t $j -c $i
echo "tube: $j cone: $i"
done
done