diff --git a/Debug/run.sh b/Debug/run.sh new file mode 100755 index 0000000..c347e65 --- /dev/null +++ b/Debug/run.sh @@ -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 diff --git a/Debug/run_from_to.sh b/Debug/run_from_to.sh new file mode 100755 index 0000000..87cabdb --- /dev/null +++ b/Debug/run_from_to.sh @@ -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