Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
cwb_mkhtml_header.C File Reference
#include <unistd.h>
#include <stdio.h>
Include dependency graph for cwb_mkhtml_header.C:

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)
 

Variables

char cmd [1024]
 
char condor_job_list_str [64]
 
vector< intcondor_jobList
 
TString cwb_doc_url =""
 
 cwb_merge_label
 
TString cwb_netc_file
 
TString cwb_parameters_file
 
TString cwb_pparameters_file
 
TString cwb_uparameters_file
 
TString cwb_upparameters_file
 
 else
 
TString full_parameters_file =""
 
TString home_wat
 
CWB::Historyhst = (CWB::History*)wfile->Get("history")
 
char html_footer [1024]
 
char ilstfname [1024]
 
int iversion
 
char jstatus_file [1024]
 
int max_jobs = 0
 
TString merge_cuts =""
 
char merge_job_list_str [64]
 
vector< TStringmerge_jobFileList
 
vector< intmerge_jobList = CWB::Toolbox::getMergeJobList(ilstfname,merge_jobFileList)
 
TString merge_label =((TObjString*)token->At(0))->GetString()
 
TString merged_file_name = simulation ? sim_file_name : net_file_name
 
char odir [1024]
 
char oline [1024]
 
ofstream out
 
char percentage_job_list_str [64]
 
TString pr_cfg_ver
 
TString pr_framelib_ver
 
TString pr_lal_ver
 
TString pr_root_ver
 
TString pr_wat_git
 
TString pr_wat_ver
 
TString site_cluster =""
 
TObjArray * token = TString(cwb_merge_label).Tokenize(TString("."))
 
TFile * wfile = new TFile(merged_file_name)
 

Function Documentation

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(),
 
)

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(),
 
)

Definition at line 212 of file cwb_mkhtml_header.C.

if ( pp_mem_benckmark &&merge_jobList.  size(),
 
)

Definition at line 225 of file cwb_mkhtml_header.C.

out open ( jstatus_file  ,
ios::out   
)
lcheck Remove ( ,
 
)
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   
)

Variable Documentation

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
Initial value:
{
site_cluster=TString(gSystem->Getenv("SITE_CLUSTER"))
TString("c")
TString site_cluster

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.

Definition at line 65 of file cwb_mkhtml_header.C.

TString merge_label =((TObjString*)token->At(0))->GetString()

Definition at line 49 of file cwb_mkhtml_header.C.

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.