5 if (
"$called" !=
"" ) then ### called by source
7 set script_fn=`readlink -f $called[2]`
8 else ### called by direct excution of the script
10 set script_fn=`readlink -f $0`
15 set script_dir=`dirname $script_fn`
17 echo
"script file name=$script_fn"
18 echo
"script dir=$script_dir"
23 unsetenv CWB_MERGE_LABEL
24 unsetenv CWB_CHUNK_START
25 unsetenv CWB_CHUNK_STOP
26 unsetenv CWB_PP_OPTIONS
27 unsetenv CWB_CHUNK_SEARCH
29 if ((( $1 ==
'' ))) then
31 echo
"CWB_MERGE_LABEL not defined"
35 setenv CWB_MERGE_LABEL $1
38 if ((( $2 ==
'' ))) then
40 echo
"CWB_CHUNK_START not defined"
44 setenv CWB_CHUNK_START $2
47 if ((( $3 ==
'' ))) then
49 echo
"CWB_CHUNK_STOP not defined"
53 setenv CWB_CHUNK_STOP $3
56 if ((( $4 !=
'merge' ) && ( $4 !=
'veto' ) && ( $4 !=
'cut' ) && ( $4 !=
'ifar' ) && ( $4 !=
'pe' ) && ( $4 !=
'report' ) && ( $4 !=
'all' ) &&( $4 !=
'' ))) then
58 echo \
'$4\' "is a wrong cwb pp option"
60 echo "available options"
61 echo " no options -> all (default)"
62 echo " merge : execute merge"
63 echo " veto : execute veto"
64 echo " cut : execute cut"
65 echo " ifar : execute ifar"
66 echo " pe : execute pe"
67 echo " report: execute report"
68 echo " all : execute merge+veto+cut+ifar+pe+report"
72 if ((( $4 == '' ))) then
73 setenv CWB_PP_OPTIONS "all"
75 setenv CWB_PP_OPTIONS $4
79 if ((( $5 == '' ))) then
80 setenv CWB_CHUNK_SEARCH "BBH"
82 setenv CWB_CHUNK_SEARCH $5
85 if ((( $CWB_PP_OPTIONS == "merge" ) || ( $CWB_PP_OPTIONS == "all" ))) then
86 ${CWB_SCRIPTS}/cwb_merge.csh $CWB_MERGE_LABEL '--nthreads 8'
90 if ((( $CWB_PP_OPTIONS ==
"veto" ) || ( $CWB_PP_OPTIONS ==
"all" ))) then
91 ${CWB_SCRIPTS}/cwb_setveto.csh $CWB_MERGE_LABEL
95 if ((( $CWB_PP_OPTIONS ==
"cut" ) || ( $CWB_PP_OPTIONS ==
"all" ))) then
96 ${CWB_SCRIPTS}/cwb_setcuts.csh $CWB_MERGE_LABEL.V_hvetoLH
'--unique true'
100 if ((( $CWB_PP_OPTIONS ==
"ifar" ) || ( $CWB_PP_OPTIONS ==
"all" ))) then
101 @ K = $CWB_CHUNK_START
102 while ($K <= $CWB_CHUNK_STOP)
103 set KK=`echo $K | awk
'{ printf "%02d\n", $0 }'`
104 if($K == $CWB_CHUNK_START) then
105 ${CWB_SCRIPTS}/cwb_setifar.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U
' --tsel bin1_cut&&O1_K'$KK
'_cut --label bin1_cut --file far_bin1_cut_file['$KK
'] --mode exclusive'
108 ${CWB_SCRIPTS}/cwb_setifar.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U.S_bin1_cut
'--tsel bin1_cut&&O1_K'$KK
'_cut --label same --file far_bin1_cut_file['$KK
'] --mode exclusive'
115 if ((( $CWB_PP_OPTIONS ==
"pe" ) || ( $CWB_PP_OPTIONS ==
"all" ))) then
116 ${CWB_SCRIPTS}/cwb_report.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U.S_bin1_cut pe
120 if ((( $CWB_PP_OPTIONS ==
"report" ) || ( $CWB_PP_OPTIONS ==
"all" ))) then
121 ${CWB_SCRIPTS}/cwb_report_cbc.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U.S_bin1_cut $CWB_CHUNK_SEARCH
125 unsetenv CWB_MERGE_LABEL
126 unsetenv CWB_CHUNK_START
127 unsetenv CWB_CHUNK_STOP
128 unsetenv CWB_PP_OPTIONS
129 unsetenv CWB_CHUNK_SEARCH
133 ps
T | grep root | awk
'{print $1}' | xargs kill -9