Line | |
---|
1 | #!/bin/csh |
---|
2 | # |
---|
3 | # runSBT |
---|
4 | # |
---|
5 | # A script to run SBT with a batch script, and sum up errors in all |
---|
6 | # produced error log files |
---|
7 | # |
---|
8 | # Usage: |
---|
9 | # runSBT <SBT-directory> <solid-name> [<executable>] |
---|
10 | # |
---|
11 | # |
---|
12 | if ($#argv < 2 | $#argv > 3) then |
---|
13 | echo "Usage: runSBT <SBT-directory> <solid-name> [<executable>]" |
---|
14 | exit 1 |
---|
15 | else if ($#argv < 3) then |
---|
16 | set EXECUTABLE=$G4WORKDIR/bin/$G4SYSTEM/SBT |
---|
17 | else |
---|
18 | set EXECUTABLE=$3 |
---|
19 | endif |
---|
20 | # |
---|
21 | rm -f SBT.$2.log |
---|
22 | $EXECUTABLE < $1/$2.geant4 >& SBT.$2.log |
---|
23 | awk -f $1/counterr.awk $2.*.log |
---|
24 | awk -f $1/countvoxelerr.awk $2v.*.log |
---|
Note: See
TracBrowser
for help on using the repository browser.