Logo coherent WaveBurst  
Library Reference Guide
Logo
cwb_merge_thread.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 // thread macro used to merge output root job files in multi thread mode
20 // used by CWB::Toolbox::mergeCWBTrees
21 
23  TString label, bool brms, bool bvar, bool bpsm) {
24 
26 
27  TB.checkFile(gSystem->Getenv("CWB_ROOTLOGON_FILE"));
28  TB.checkFile(gSystem->Getenv("CWB_PARAMETERS_FILE"));
29  TB.checkFile(gSystem->Getenv("CWB_UPARAMETERS_FILE"));
30  TB.checkFile(flistName);
31 
32  vector<TString> fileList = TB.readFileList(flistName);
33 
34  TB.mergeCWBTrees(fileList, simulation, odir, label, brms, bvar, bpsm);
35 
36  exit(0);
37 }
TString("c")
char odir[1024]
CWB::Toolbox TB
static bool checkFile(TString fName, bool question=false, TString message="")
Definition: Toolbox.cc:4670
static vector< TString > mergeCWBTrees(TString dir_name, bool simulation, TString odir, TString label, bool brms=false, bool bvar=false, bool bpsm=false)
Definition: Toolbox.cc:2462
static vector< TString > readFileList(TString ifName)
Definition: Toolbox.cc:2739
TString label
Definition: MergeTrees.C:21
void cwb_merge_thread(TString flistName, bool simulation, TString odir, TString label, bool brms, bool bvar, bool bpsm)
cout<< "Starting reading output directory ..."<< endl;vector< TString > fileList
simulation
Definition: cwb_eced.C:26
exit(0)