Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
tools
cwb
macros
cwb_publish.C
Go to the documentation of this file.
1
// obsolete
2
3
{
4
CWB::Toolbox
TB
;
5
TB.
checkFile
(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"
));
6
TB.
checkFile
(gSystem->Getenv(
"CWB_PARAMETERS_FILE"
));
7
TB.
checkFile
(gSystem->Getenv(
"CWB_UPARAMETERS_FILE"
));
8
9
TString
cwb_pp_data_dir
=
TString
(gSystem->Getenv(
"CWB_PP_DATA_DIR"
));
10
if
(cwb_pp_data_dir.Sizeof()>1) {
11
sprintf
(
pp_dir
,
"%s/%s"
,
pp_dir
,cwb_pp_data_dir.Data());
12
}
13
14
15
TString
spp_dir
=
pp_dir
;
16
spp_dir.ReplaceAll(
report_dir
+
TString
(
"/"
),
""
);
17
18
char
cmd
[512];
19
if
(
TString
(gSystem->Getenv(
"CWB_PUBLISH_OPTION"
)).CompareTo(
"clean"
)==0) {
20
cout <<
"clean publish dir"
<< endl;
21
sprintf
(cmd,
"rm %s/%s/%s"
,
www_dir
,
data_label
,spp_dir.Data());
22
cout << endl;
23
cout << cmd << endl;
24
gSystem->Exec(cmd);
25
}
else
{
26
TB.
checkFile
(
pp_dir
);
27
28
sprintf
(cmd,
"mkdir %s/%s"
,
www_dir
,
data_label
);
29
cout << endl;
30
cout << cmd << endl;
31
gSystem->Exec(cmd);
32
33
sprintf
(cmd,
"ln -sf %s/%s %s/%s/%s"
,
work_dir
,
pp_dir
,
www_dir
,
data_label
,spp_dir.Data());
34
cout << cmd << endl;
35
cout << endl;
36
gSystem->Exec(cmd);
37
}
38
39
exit
(0);
40
}
TString
TString("c")
Definition:
cwb_report_skymap.C:111
www_dir
char www_dir[512]
Definition:
test_config1.C:157
spp_dir
TString spp_dir
Definition:
cwb_publish.C:15
report_dir
char report_dir[512]
Definition:
test_config1.C:149
CWB::Toolbox::checkFile
static bool checkFile(TString fName, bool question=false, TString message="")
Definition:
Toolbox.cc:3956
TB
CWB::Toolbox TB
Definition:
ComputeSNR.C:5
exit
exit(0)
sprintf
sprintf(cmd,"mkdir %s/%s", www_dir, data_label)
data_label
char data_label[512]
Definition:
test_config1.C:160
cwb_pp_data_dir
TString cwb_pp_data_dir
Definition:
cwb_publish.C:9
CWB::Toolbox
Definition:
Toolbox.hh:110
pp_dir
char pp_dir[512]
Definition:
test_config1.C:155
cmd
char cmd[512]
Definition:
cwb_publish.C:18
work_dir
char work_dir[512]
Definition:
test_config1.C:143