Medtech/Debug/run_from_to.sh

34 lines
692 B
Bash
Executable File

#!/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 -n 100000000 -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 -n 100000000 -s 100 -t $j -c $i
echo "tube: $j cone: $i"
done
done