Logo coherent WaveBurst  
Library Reference Guide
Logo
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 ()
 pointers to detectors More...
 
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=\lue\%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

◆ Close()

wfile Close ( )

◆ for()

for ( )

pointers to detectors

Definition at line 259 of file cwb_mkhtml_header.C.

◆ GetPathInfo()

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() [1/19]

if ( gSystem->  AccessPathNamehtml_footer)

Definition at line 35 of file cwb_mkhtml_header.C.

◆ if() [2/19]

if ( gSystem->Getenv("CWB_DOC_URL")!  = NULL)

Definition at line 46 of file cwb_mkhtml_header.C.

◆ if() [3/19]

if ( gSystem->  Getenv"SITE_CLUSTER" = =NULL)

Definition at line 52 of file cwb_mkhtml_header.C.

◆ if() [4/19]

if ( gSystem->  Getenv"CWB_MERGE_LABEL" = =NULL)

Definition at line 61 of file cwb_mkhtml_header.C.

◆ if() [5/19]

if ( merge_label!  [0] = 'M')

Definition at line 69 of file cwb_mkhtml_header.C.

◆ if() [6/19]

if ( !lcheck.  IsDigit())

Definition at line 74 of file cwb_mkhtml_header.C.

◆ if() [7/19]

if ( estat  = =0)

Definition at line 99 of file cwb_mkhtml_header.C.

◆ if() [8/19]

if ( )

Definition at line 105 of file cwb_mkhtml_header.C.

◆ if() [9/19]

if ( condor_jobList.  size(),
0 &&merge_jobList.  size(),
 
)

Definition at line 112 of file cwb_mkhtml_header.C.

◆ if() [10/19]

if ( gSystem->  Getenv"HOME_WAT" = =NULL)

Definition at line 129 of file cwb_mkhtml_header.C.

◆ if() [11/19]

if ( gSystem->  Getenv"CWB_NETC_FILE" = =NULL)

Definition at line 135 of file cwb_mkhtml_header.C.

◆ if() [12/19]

if ( gSystem->  Getenv"CWB_PARAMETERS_FILE" = =NULL)

Definition at line 141 of file cwb_mkhtml_header.C.

◆ if() [13/19]

if ( gSystem->  Getenv"CWB_UPARAMETERS_FILE" = =NULL)

Definition at line 147 of file cwb_mkhtml_header.C.

◆ if() [14/19]

if ( gSystem->  Getenv"CWB_PPARAMETERS_FILE" = =NULL)

Definition at line 153 of file cwb_mkhtml_header.C.

◆ if() [15/19]

if ( gSystem->  Getenv"CWB_UPPARAMETERS_FILE" = =NULL)

Definition at line 159 of file cwb_mkhtml_header.C.

◆ if() [16/19]

if ( wfile  = =NULL)

Definition at line 172 of file cwb_mkhtml_header.C.

◆ if() [17/19]

if ( hst  )

Definition at line 177 of file cwb_mkhtml_header.C.

◆ if() [18/19]

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

Definition at line 230 of file cwb_mkhtml_header.C.

◆ if() [19/19]

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

Definition at line 243 of file cwb_mkhtml_header.C.

◆ open()

out open ( jstatus_file  ,
ios::out   
)

◆ Remove()

lcheck Remove ( ,
 
)

◆ sprintf() [1/5]

sprintf ( html_footer  ,
"%s/html/etc/html/footer.html"  ,
gSystem->  Getenv"HOME_WAT" 
)

◆ sprintf() [2/5]

sprintf ( ilstfname  ,
"%s/merge_%s.%s.lst"  ,
merge_dir  ,
data_label  ,
cwb_merge_label.  Data() 
)

◆ sprintf() [3/5]

sprintf ( percentage_job_list_str  )

◆ sprintf() [4/5]

sprintf ( odir  ,
"%s/%s ,
pp_dir  ,
pp_data_dir   
)

◆ sprintf() [5/5]

sprintf ( jstatus_file  ,
"%s/job_status.html"  ,
odir   
)

Variable Documentation

◆ cmd

char cmd[1024]

Definition at line 165 of file cwb_mkhtml_header.C.

◆ condor_job_list_str

char condor_job_list_str[64]

Definition at line 110 of file cwb_mkhtml_header.C.

◆ condor_jobList

vector<int> condor_jobList

Definition at line 98 of file cwb_mkhtml_header.C.

◆ cwb_doc_url

TString cwb_doc_url =""

Definition at line 45 of file cwb_mkhtml_header.C.

◆ cwb_merge_label

cwb_merge_label

Definition at line 60 of file cwb_mkhtml_header.C.

◆ cwb_netc_file

TString cwb_netc_file

Definition at line 134 of file cwb_mkhtml_header.C.

◆ cwb_parameters_file

TString cwb_parameters_file

Definition at line 140 of file cwb_mkhtml_header.C.

◆ cwb_pparameters_file

TString cwb_pparameters_file

Definition at line 152 of file cwb_mkhtml_header.C.

◆ cwb_uparameters_file

TString cwb_uparameters_file

Definition at line 146 of file cwb_mkhtml_header.C.

◆ cwb_upparameters_file

TString cwb_upparameters_file

Definition at line 158 of file cwb_mkhtml_header.C.

◆ else

else
Initial value:
{
site_cluster=TString(gSystem->Getenv("SITE_CLUSTER"))
TString("c")
TString site_cluster

Definition at line 54 of file cwb_mkhtml_header.C.

◆ full_parameters_file

TString full_parameters_file =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ home_wat

TString home_wat

Definition at line 128 of file cwb_mkhtml_header.C.

◆ hst

CWB::History* hst = (CWB::History*)wfile->Get("history")

Definition at line 174 of file cwb_mkhtml_header.C.

◆ html_footer

char html_footer[1024]

Definition at line 33 of file cwb_mkhtml_header.C.

◆ ilstfname

char ilstfname[1024]

Definition at line 80 of file cwb_mkhtml_header.C.

◆ iversion

int iversion

Definition at line 59 of file cwb_mkhtml_header.C.

◆ jstatus_file

char jstatus_file[1024]

Definition at line 275 of file cwb_mkhtml_header.C.

◆ max_jobs

int max_jobs = 0

Definition at line 258 of file cwb_mkhtml_header.C.

◆ merge_cuts

TString merge_cuts =""

Definition at line 175 of file cwb_mkhtml_header.C.

◆ merge_job_list_str

char merge_job_list_str[64]

Definition at line 104 of file cwb_mkhtml_header.C.

◆ merge_jobFileList

vector<TString> merge_jobFileList

Definition at line 82 of file cwb_mkhtml_header.C.

◆ merge_jobList

Definition at line 83 of file cwb_mkhtml_header.C.

◆ merge_label

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

Definition at line 67 of file cwb_mkhtml_header.C.

◆ merged_file_name

Definition at line 170 of file cwb_mkhtml_header.C.

◆ odir

char odir[1024]

Definition at line 166 of file cwb_mkhtml_header.C.

◆ oline

char oline[1024]

Definition at line 278 of file cwb_mkhtml_header.C.

◆ out

ofstream out

Definition at line 276 of file cwb_mkhtml_header.C.

◆ percentage_job_list_str

char percentage_job_list_str[64]

Definition at line 111 of file cwb_mkhtml_header.C.

◆ pr_cfg_ver

TString pr_cfg_ver =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ pr_framelib_ver

TString pr_framelib_ver =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ pr_lal_ver

TString pr_lal_ver =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ pr_root_ver

TString pr_root_ver =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ pr_wat_git

TString pr_wat_git =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ pr_wat_ver

TString pr_wat_ver =""

Definition at line 176 of file cwb_mkhtml_header.C.

◆ site_cluster

TString site_cluster =""

Definition at line 51 of file cwb_mkhtml_header.C.

◆ token

TObjArray* token = TString(cwb_merge_label).Tokenize(TString("."))

Definition at line 66 of file cwb_mkhtml_header.C.

◆ wfile

TFile* wfile = new TFile(merged_file_name)

Definition at line 171 of file cwb_mkhtml_header.C.