coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
macros
cwb_publish_ced.C
Go to the documentation of this file.
1
/*
2
# Copyright (C) 2019 Gabriele Vedovato
3
#
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16
*/
17
18
19
// obsolete
20
21
{
22
CWB::Toolbox
TB
;
23
TB.
checkFile
(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"
));
24
TB.
checkFile
(gSystem->Getenv(
"CWB_PARAMETERS_FILE"
));
25
TB.
checkFile
(gSystem->Getenv(
"CWB_UPARAMETERS_FILE"
));
26
27
28
// data label
29
char
www_label
[512];
30
TObjArray*
token
=
TString
(
work_dir
).Tokenize(
TString
(
"/"
));
31
sprintf
(www_label,((TObjString*)token->At(token->GetEntries()-1))->GetString().Data());
32
33
char
cmd
[256];
34
sprintf
(cmd,
"mkdir %s/%s"
,
www_dir
,www_label);
35
cout << endl;
36
cout << cmd << endl;
37
gSystem->Exec(cmd);
38
39
sprintf
(cmd,
"ln -s %s/%s %s/%s"
,
work_dir
,
ced_dir
,
www_dir
,www_label);
40
cout << cmd << endl;
41
cout << endl;
42
gSystem->Exec(cmd);
43
44
exit
(0);
45
}
token
TObjArray * token
Definition:
cwb_publish_ced.C:30
cmd
char cmd[256]
Definition:
cwb_publish_ced.C:33
www_label
char www_label[512]
Definition:
cwb_publish_ced.C:29
TString
TString("c")
Definition:
cwb_report_skymap.C:129
www_dir
char www_dir[512]
Definition:
test_config1.C:157
TB
CWB::Toolbox TB
Definition:
cwb_report_slags.C:29
CWB::Toolbox::checkFile
static bool checkFile(TString fName, bool question=false, TString message="")
Definition:
Toolbox.cc:4670
sprintf
sprintf(www_label,((TObjString *) token->At(token->GetEntries() -1)) ->GetString().Data())
ced_dir
char ced_dir[512]
Definition:
test_config1.C:154
CWB::Toolbox
Definition:
Toolbox.hh:128
exit
exit(0)
work_dir
char work_dir[512]
Definition:
test_config1.C:143