Line | |
---|
1 | # |
---|
2 | # Run the test program with different input files |
---|
3 | # Check output for killed tracks |
---|
4 | # |
---|
5 | set exe=$G4BIN/$G4SYSTEM/testNTST |
---|
6 | set runid=$1; shift |
---|
7 | set n=$1; shift |
---|
8 | |
---|
9 | echo "$0 : Script parameter: runid= $runid, runno=$n" |
---|
10 | |
---|
11 | echo "Machine name, load and users" |
---|
12 | hostname |
---|
13 | w | grep -v days |
---|
14 | # uptime |
---|
15 | |
---|
16 | foreach inp ( 2xa 2xb 2xc 2a 2b 2c ) |
---|
17 | uptime |
---|
18 | set suffix=run${inp}-${runid}.n$n # g460c0dev.pcg2.DetCpr.ChF.n$n |
---|
19 | echo "Running with input ${inp} " |
---|
20 | |
---|
21 | time $exe run$inp.mac > & oer.$suffix |
---|
22 | # **** |
---|
23 | tail -18 oer.$suffix | egrep -v 'delet|[Rr]eport|Proce|trajectories|getFieldStats|/vis' | \ |
---|
24 | grep -v 'Number of Vertices = 23.1 +- 0.515' | \ |
---|
25 | grep -v 'User=' | \ |
---|
26 | sort -u |
---|
27 | set kildtrax=`grep -c killing oer.$suffix` |
---|
28 | echo "Killed $kildtrax number of tracks" |
---|
29 | |
---|
30 | grep 'track has' oer.$suffix | \ |
---|
31 | awk ' /MeV/ { en += $4; } \!/MeV/ { print; } END { print "Total energy killed= ", en, " MeV"; } ' |
---|
32 | |
---|
33 | if( `grep -c G4Prop oer.$suffix` ) then |
---|
34 | echo "Iterations with many trials: " |
---|
35 | ./count.maxIt-PiF oer.$suffix |
---|
36 | else |
---|
37 | echo "Iterations of trials: no statistics collected" |
---|
38 | endif |
---|
39 | |
---|
40 | echo " " ## Separate the runs |
---|
41 | end |
---|
42 | w | grep -v days |
---|
43 | exit |
---|
44 | |
---|
45 | # gprof $exe > gprof.$suffix |
---|
46 | # mv gmon.out gmon.$suffix |
---|
47 | # gzz gmon.$suffix |
---|
Note: See
TracBrowser
for help on using the repository browser.