Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cwb_dump_merge_dir.C
Go to the documentation of this file.
1 // dump the list of labels of the merged files in the merge dir
2 // used by the commands : cwb_setveto, cwb_setmulti, cwb_setcuts, cwb_report, cwb_merge
3 
4 {
6 
7  vector<TString> dirList = TB.getFileListFromDir(merge_dir, ".root","","wave_");
8 
9  cout << endl;
10  cout << " --------------------" << endl;
11  cout << " List of merge labels" << endl;
12  cout << " --------------------" << endl;
13  cout << endl;
14  for(int i=0;i<dirList.size();i++) {
15  if(dirList[i].Contains("wave")) {
16  dirList[i].ReplaceAll(data_label,"");
17  dirList[i].ReplaceAll(merge_dir,"");
18  dirList[i].ReplaceAll("/","");
19  dirList[i].ReplaceAll("wave_.","");
20  dirList[i].ReplaceAll(".root","");
21  cout << " - " << dirList[i].Data() << endl;
22  }
23  }
24  cout << endl;
25 
26  exit(0);
27 }
static vector< TString > getFileListFromDir(TString dir_name, TString endString="", TString beginString="", TString containString="", bool fast=false)
Definition: Toolbox.cc:4333
i drho i
CWB::Toolbox TB
Definition: ComputeSNR.C:5
char data_label[512]
Definition: test_config1.C:160
char merge_dir[512]
Definition: test_config1.C:147
exit(0)
vector< TString > dirList