#include <unistd.h>
#include <stdio.h>
Functions | |
wfile | Close () |
for () | |
cout<< "Number of jobs in the merged lists : " << merge_jobList.size()<< endl;if(nfactor <=0) nfactor=1;strcpy(work_dir, gSystem->WorkingDirectory());char full_condor_dir[1024];sprintf(full_condor_dir,"%s/%s", work_dir, condor_dir);char condor_dag_file[1024];sprintf(condor_dag_file,"%s/%s.dag", full_condor_dir, data_label);Long_t id, size=0, flags, mt;int estat=gSystem-> | GetPathInfo (condor_dag_file,&id,&size,&flags,&mt) |
if (gSystem->AccessPathName(html_footer)) | |
if (gSystem->Getenv("CWB_DOC_URL")!=NULL) | |
if (gSystem->Getenv("SITE_CLUSTER")==NULL) | |
if (gSystem->Getenv("CWB_MERGE_LABEL")==NULL) | |
if (merge_label[0]!='M') | |
if (!lcheck.IsDigit()) | |
if (estat==0) | |
if (merge_jobList.size()< nfactor *condor_jobList.size()) | |
if (condor_jobList.size()>0 &&merge_jobList.size()>0) | |
if (gSystem->Getenv("HOME_WAT")==NULL) | |
if (gSystem->Getenv("CWB_NETC_FILE")==NULL) | |
if (gSystem->Getenv("CWB_PARAMETERS_FILE")==NULL) | |
if (gSystem->Getenv("CWB_UPARAMETERS_FILE")==NULL) | |
if (gSystem->Getenv("CWB_PPARAMETERS_FILE")==NULL) | |
if (gSystem->Getenv("CWB_UPPARAMETERS_FILE")==NULL) | |
if (wfile==NULL) | |
if (hst) | |
if (pp_jet_benckmark &&merge_jobList.size()>0) | |
if (pp_mem_benckmark &&merge_jobList.size()>0) | |
out | open (jstatus_file, ios::out) |
lcheck | Remove (0, 1) |
sprintf (html_footer,"%s/html/etc/html/footer.html", gSystem->Getenv("HOME_WAT")) | |
sprintf (ilstfname,"%s/merge_%s.%s.lst", merge_dir, data_label, cwb_merge_label.Data()) | |
sprintf (percentage_job_list_str,"<font color=\"blue\">%2.1f%%</font>", 0.) | |
sprintf (odir,"%s/%s", pp_dir, pp_data_dir) | |
sprintf (jstatus_file,"%s/job_status.html", odir) | |
wfile Close | ( | ) |
for | ( | ) |
Definition at line 241 of file cwb_mkhtml_header.C.
cout<< "Number of jobs in the merged lists : " << merge_jobList.size() << endl; if(nfactor<=0) nfactor=1; strcpy(work_dir,gSystem->WorkingDirectory()); char full_condor_dir[1024]; sprintf(full_condor_dir,"%s/%s",work_dir,condor_dir); char condor_dag_file[1024]; sprintf(condor_dag_file,"%s/%s.dag",full_condor_dir,data_label); Long_t id,size=0,flags,mt; int estat = gSystem-> GetPathInfo | ( | condor_dag_file | , |
& | id, | ||
& | size, | ||
& | flags, | ||
& | mt | ||
) |
if | ( | gSystem-> | AccessPathNamehtml_footer | ) |
Definition at line 17 of file cwb_mkhtml_header.C.
if | ( | gSystem->Getenv("CWB_DOC_URL")! | = NULL | ) |
Definition at line 28 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"SITE_CLUSTER" = =NULL | ) |
Definition at line 34 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_MERGE_LABEL" = =NULL | ) |
Definition at line 43 of file cwb_mkhtml_header.C.
if | ( | merge_label! | [0] = 'M' | ) |
Definition at line 51 of file cwb_mkhtml_header.C.
if | ( | !lcheck. | IsDigit() | ) |
Definition at line 56 of file cwb_mkhtml_header.C.
if | ( | estat | = =0 | ) |
Definition at line 81 of file cwb_mkhtml_header.C.
if | ( | ) |
Definition at line 87 of file cwb_mkhtml_header.C.
if | ( | condor_jobList. | size(), |
0 &&merge_jobList. | size(), | ||
0 | |||
) |
Definition at line 94 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"HOME_WAT" = =NULL | ) |
Definition at line 111 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_NETC_FILE" = =NULL | ) |
Definition at line 117 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_PARAMETERS_FILE" = =NULL | ) |
Definition at line 123 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_UPARAMETERS_FILE" = =NULL | ) |
Definition at line 129 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_PPARAMETERS_FILE" = =NULL | ) |
Definition at line 135 of file cwb_mkhtml_header.C.
if | ( | gSystem-> | Getenv"CWB_UPPARAMETERS_FILE" = =NULL | ) |
Definition at line 141 of file cwb_mkhtml_header.C.
if | ( | wfile | = =NULL | ) |
Definition at line 154 of file cwb_mkhtml_header.C.
if | ( | hst | ) |
Definition at line 159 of file cwb_mkhtml_header.C.
if | ( | pp_jet_benckmark &&merge_jobList. | size(), |
0 | |||
) |
Definition at line 212 of file cwb_mkhtml_header.C.
if | ( | pp_mem_benckmark &&merge_jobList. | size(), |
0 | |||
) |
Definition at line 225 of file cwb_mkhtml_header.C.
out open | ( | jstatus_file | , |
ios::out | |||
) |
lcheck Remove | ( | 0 | , |
1 | |||
) |
sprintf | ( | html_footer | , |
"%s/html/etc/html/footer.html" | , | ||
gSystem-> | Getenv"HOME_WAT" | ||
) |
sprintf | ( | ilstfname | , |
"%s/merge_%s.%s.lst" | , | ||
merge_dir | , | ||
data_label | , | ||
cwb_merge_label. | Data() | ||
) |
sprintf | ( | percentage_job_list_str | , |
"<font color=\"blue\">%2.1f%%</font>" | , | ||
0. | |||
) |
sprintf | ( | odir | , |
"%s/%s" | , | ||
pp_dir | , | ||
pp_data_dir | |||
) |
sprintf | ( | jstatus_file | , |
"%s/job_status.html" | , | ||
odir | |||
) |
char cmd[1024] |
Definition at line 147 of file cwb_mkhtml_header.C.
char condor_job_list_str[64] |
Definition at line 92 of file cwb_mkhtml_header.C.
vector<int> condor_jobList |
Definition at line 80 of file cwb_mkhtml_header.C.
TString cwb_doc_url ="" |
Definition at line 27 of file cwb_mkhtml_header.C.
cwb_merge_label |
Definition at line 42 of file cwb_mkhtml_header.C.
TString cwb_netc_file |
Definition at line 116 of file cwb_mkhtml_header.C.
TString cwb_parameters_file |
Definition at line 122 of file cwb_mkhtml_header.C.
TString cwb_pparameters_file |
Definition at line 134 of file cwb_mkhtml_header.C.
TString cwb_uparameters_file |
Definition at line 128 of file cwb_mkhtml_header.C.
TString cwb_upparameters_file |
Definition at line 140 of file cwb_mkhtml_header.C.
else |
Definition at line 36 of file cwb_mkhtml_header.C.
TString full_parameters_file ="" |
Definition at line 158 of file cwb_mkhtml_header.C.
TString home_wat |
Definition at line 110 of file cwb_mkhtml_header.C.
CWB::History* hst = (CWB::History*)wfile->Get("history") |
Definition at line 156 of file cwb_mkhtml_header.C.
char html_footer[1024] |
Definition at line 15 of file cwb_mkhtml_header.C.
char ilstfname[1024] |
Definition at line 62 of file cwb_mkhtml_header.C.
int iversion |
Definition at line 41 of file cwb_mkhtml_header.C.
char jstatus_file[1024] |
Definition at line 257 of file cwb_mkhtml_header.C.
int max_jobs = 0 |
Definition at line 240 of file cwb_mkhtml_header.C.
TString merge_cuts ="" |
Definition at line 157 of file cwb_mkhtml_header.C.
char merge_job_list_str[64] |
Definition at line 86 of file cwb_mkhtml_header.C.
vector<TString> merge_jobFileList |
Definition at line 64 of file cwb_mkhtml_header.C.
vector<int> merge_jobList = CWB::Toolbox::getMergeJobList(ilstfname,merge_jobFileList) |
Definition at line 65 of file cwb_mkhtml_header.C.
Definition at line 49 of file cwb_mkhtml_header.C.
TString merged_file_name = simulation ? sim_file_name : net_file_name |
Definition at line 152 of file cwb_mkhtml_header.C.
char odir[1024] |
Definition at line 148 of file cwb_mkhtml_header.C.
char oline[1024] |
Definition at line 260 of file cwb_mkhtml_header.C.
ofstream out |
Definition at line 258 of file cwb_mkhtml_header.C.
char percentage_job_list_str[64] |
Definition at line 93 of file cwb_mkhtml_header.C.
TString pr_cfg_ver |
Definition at line 158 of file cwb_mkhtml_header.C.
TString pr_framelib_ver |
Definition at line 158 of file cwb_mkhtml_header.C.
TString pr_lal_ver |
Definition at line 158 of file cwb_mkhtml_header.C.
TString pr_root_ver |
Definition at line 158 of file cwb_mkhtml_header.C.
TString pr_wat_git |
Definition at line 158 of file cwb_mkhtml_header.C.
TString pr_wat_ver |
Definition at line 158 of file cwb_mkhtml_header.C.
TString site_cluster ="" |
Definition at line 33 of file cwb_mkhtml_header.C.
TObjArray* token = TString(cwb_merge_label).Tokenize(TString(".")) |
Definition at line 48 of file cwb_mkhtml_header.C.
TFile* wfile = new TFile(merged_file_name) |
Definition at line 153 of file cwb_mkhtml_header.C.