Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Tutorials
Namespaces
Files
gitlab
ROOT
File List
File Members
All
Namespaces
Files
Functions
Variables
Macros
Pages
config
O2
SEARCHES
OFFLINE
BurstLD
LH
BKG
mkppST.csh
Go to the documentation of this file.
1
#!/bin/tcsh -f
2
3
onintr irq_ctrlc
4
5
unsetenv CWB_MERGE_LABEL
6
unsetenv CWB_PP_OPTIONS
7
8
if
((( $1 ==
''
))) then
9
setenv CWB_MERGE_LABEL
"M1"
#
default
10
else
11
setenv CWB_MERGE_LABEL $1
12
endif
13
14
if
((( $4 !=
'merge'
) && ( $4 !=
'veto'
) && ( $4 !=
'cut'
) && ( $4 !=
'report'
) && ( $4 !=
'all'
) &&( $4 !=
''
))) then
15
echo
""
16
echo \
'$4\' "is a wrong cwb pp option"
17
echo ""
18
echo "available options"
19
echo " no options -> all (default)"
20
echo " merge : execute merge"
21
echo " veto : execute veto"
22
echo " cut : execute veto"
23
echo " report: execute report"
24
echo " all : execute merge+veto+cut+report"
25
echo ""
26
exit 1
27
else
28
if ((( $4 == '
' ))) then
29
setenv CWB_PP_OPTIONS "all"
30
else
31
setenv CWB_PP_OPTIONS $4
32
endif
33
endif
34
35
if ((( $CWB_PP_OPTIONS == "merge" ) || ( $CWB_PP_OPTIONS == "all" ))) then
36
${CWB_SCRIPTS}/cwb_merge.csh $CWB_MERGE_LABEL '
--nthreads 10
'
37
if ( $? != 0) exit 1
38
endif
39
40
if ((( $CWB_PP_OPTIONS == "veto" ) || ( $CWB_PP_OPTIONS == "all" ))) then
41
${CWB_SCRIPTS}/cwb_setveto.csh $CWB_MERGE_LABEL
42
if ( $? != 0) exit 1
43
endif
44
45
if ((( $CWB_PP_OPTIONS == "cut" ) || ( $CWB_PP_OPTIONS == "all" ))) then
46
${CWB_SCRIPTS}/cwb_setcuts.csh $CWB_MERGE_LABEL.V_hvetoLH "--tcuts bin1_cut --label bin1_cut"
47
if ( $? != 0) exit 1
48
endif
49
50
if ((( $CWB_PP_OPTIONS == "report" ) || ( $CWB_PP_OPTIONS == "all" ))) then
51
${CWB_SCRIPTS}/cwb_report.csh $CWB_MERGE_LABEL.V_hvetoLH.C_bin1_cut create
52
if ( $? != 0) exit 1
53
54
${CWB_SCRIPTS}/cwb_setifar.csh $CWB_MERGE_LABEL.V_hvetoLH.C_bin1_cut '
--xtsel run>=0 --label ifar --
xfile
report/postprod/
'$CWB_MERGE_LABEL'
.V_hvetoLH.C_bin1_cut.R_rMRA_hveto_i0cc00_i0rho0_freq16_2048/
data
/far_rho.txt --mode exclusive
'
55
if ( $? != 0) exit 1
56
endif
57
58
unsetenv CWB_MERGE_LABEL
59
unsetenv CWB_PP_OPTIONS
60
61
exit 0
62
irq_ctrlc:
63
ps T | grep root | awk '
{print $1}
' | xargs kill -9
64
exit 1
65
xfile
char xfile[1024]
Definition:
user_pparameters.C:19
mysession.data
tuple data
Definition:
mysession.py:4