#!/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