Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cbc_plots.csh
Go to the documentation of this file.
1 #!/bin/tcsh -f
2 
3 onintr irq_ctrlc
4 
5 if ( $1 == '' ) then
6  echo ""
7  echo "cb_plots mlabel bkg_tree(optional) "
8  echo ""
9  echo " this command produces cbc plots + html page"
10  echo " when given the bkg tree it produces also FAD plots"
11  echo ""
12  echo " mlabel : merge label"
13  echo " bkg_tree: entire path to the the tree root file "
14  echo " Ex : cbc_plots M1 ../TEST1/merge/wave_TEST1.M2.root "
15  echo " "
16  exit
17 
18 else
19  setenv CWB_MERGE_LABEL "$1"
20  setenv CWB_LAG_NUMBER -1
21  setenv CWB_SLAG_NUMBER -1
22  if ( $2 != '' ) then
23  setenv CWB_BKG_TREE "$2"
24  endif
25 endif
26 
27  root -n -l -b ${CWB_PPARMS_FILES} ${CWB_MACROS}/../postproduction/cbc/cbc_plots_sim4.C
28  # root -n -l ${CWB_PPARMS_FILES} ${CWB_MACROS}/../postproduction/cbc/cbc_plots_sim4.C
29  if ( $? != 0) then
30  echo ""
31  echo "cbc_plots.C error : process terminated"
32  echo ""
33  exit
34  endif
35 
36  root -n -l -b ${CWB_PPARMS_FILES} ${CWB_MACROS}/cwb_mkhtml_index.C
37  if ( $? != 0) then
38  echo ""
39  echo "cwb_mkhtml_index.C error : process terminated"
40  echo ""
41  exit
42  endif
43 
44  root -n -l -b ${CWB_PPARMS_FILES} ${CWB_MACROS}/cwb_mkhtml_header.C
45  if ( $? != 0) then
46  echo ""
47  echo "cwb_mkhtml_header.C error : process terminated"
48  echo ""
49  exit
50  endif
51 
52  root -n -l -b ${CWB_PPARMS_FILES} ${CWB_MACROS}/../postproduction/cbc/cwb_mkhtml_cbc.C
53  if ( $? != 0) then
54  echo ""
55  echo "cwb_mkhtml_ebbh.C error : process terminated"
56  echo ""
57  exit
58  endif
59 
60  unsetenv CWB_MERGE_LABEL
61  unsetenv CWB_BKG_TREE
62 
63 exit 0
64 irq_ctrlc:
65  ps r | grep root | awk '{print $1}' | xargs kill -9
66  exit 1
67 
int n
Definition: cwb_net.C:10
regression r
Definition: Regression_H1.C:44
TCut cbc("cbc","log10(penalty)<0.5 && chirp[1]>1")
int l
Definition: cbc_plots.C:434
xargs kill
exit(0)