source: trunk/source/geometry/magneticfield/test/NTST/do-runs@ 1199

Last change on this file since 1199 was 1199, checked in by garnier, 16 years ago

nvx fichiers dans CVS

File size: 1.3 KB
Line 
1#
2# Run the test program with different input files
3# Check output for killed tracks
4#
5set exe=$G4BIN/$G4SYSTEM/testNTST
6set runid=$1; shift
7set n=$1; shift
8
9echo "$0 : Script parameter: runid= $runid, runno=$n"
10
11echo "Machine name, load and users"
12hostname
13w | grep -v days
14# uptime
15
16foreach 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
41end
42w | grep -v days
43exit
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.