Logo coherent WaveBurst  
Library Reference Guide
Logo
cwb_condor_list.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 // list of jobs included in the dag file : used by the cwb_condor command
20 
21 {
22  #include <vector>
23 
25 
26  TB.checkFile(gSystem->Getenv("CWB_ROOTLOGON_FILE"));
27  TB.checkFile(gSystem->Getenv("CWB_PARAMETERS_FILE"));
28  TB.checkFile(gSystem->Getenv("CWB_UPARAMETERS_FILE"));
29 
30  char full_condor_dir[1024];
31  sprintf(full_condor_dir,"%s/%s",work_dir,condor_dir);
32 
33  vector<int> jobList=TB.getCondorJobList(full_condor_dir, data_label);
34 
35  for(int i=0;i<jobList.size();i++) {
36  cout << i << " jobId : " << jobList[i] << endl;
37  }
38  cout << endl;
39  cout << "List Size : " << jobList.size() << endl;
40 
41  exit(0);
42 }
CWB::Toolbox TB
i drho i
static bool checkFile(TString fName, bool question=false, TString message="")
Definition: Toolbox.cc:4670
char data_label[512]
Definition: test_config1.C:160
sprintf(full_condor_dir,"%s/%s", work_dir, condor_dir)
vector< int > jobList
char full_condor_dir[1024]
static vector< int > getCondorJobList(TString condor_dir, TString label)
Definition: Toolbox.cc:1398
char condor_dir[512]
Definition: test_config1.C:148
char work_dir[512]
Definition: test_config1.C:143
exit(0)