13 if(gSystem->Getenv(
"CWB_MKREP_INDEX_FILE")!=NULL) {
14 cwb_mkrep_index_file=
TString(gSystem->Getenv(
"CWB_MKREP_INDEX_FILE"));
15 if(!cwb_mkrep_index_file.EndsWith(
".html")) {
16 cout<<
"cwb_mkhtml_index.C : Error : the index html must have the .html extension"<<endl;
21 cwb_mkrep_index_dir = cwb_mkrep_index_dir.ReplaceAll(gSystem->BaseName(cwb_mkrep_index_dir),
"");
23 sprintf(cmd,
"mkdir -p %s",cwb_mkrep_index_dir.Data());
27 cwb_mkrep_index_file=
"";
32 gROOT->LoadMacro(
"$HOME_WAT/tools/cwb/macros/cwb_mkfad.C");
35 if(pp_fad_nzbins==
"") pp_fad_nzbins=
"0";
36 int ipp_fad_nzbins = pp_fad_nzbins.Atoi();
53 for(
int i=0;
i<pp_sreport_tmp.size();
i++)
if(pp_sreport_tmp[
i]!=
"") {
62 if(cwb_mkrep_index_file!=
"") {
63 sprintf(ofile,
"%s", cwb_mkrep_index_file.Data());
67 cout <<
"make index html file : " << ofile << endl;
69 if (!out.good()) {cout <<
"cwb_mkhtml_index.C : Error Opening File : " << ofile << endl;
exit(1);}
79 char sbody_height[256];
83 if(
TString(gSystem->Getenv(
"CWB_REPORT_PE"))!=
"") {
84 sprintf(sbody_height,
"%d",5000);
86 sprintf(sbody_height,
"%d",5800);
92 in.getline(istring,1024);
93 if (!in.good())
break;
95 out << ostring.Data() << endl;
98 out <<
"<html>" << endl;
99 out <<
"<br>" << endl;
101 if(pp_sreport_size==0) {
103 out <<
" <iframe src=\"header.html\" width=\"100%\" height=\"970px\" "
104 <<
"marginwidth=\"15\" marginheight=\"15\" frameborder=\"0\"></iframe>" << endl;
106 if(
TString(gSystem->Getenv(
"CWB_REPORT_PE"))!=
"") {
108 out <<
"<div class=\"tabber\">" << endl;
110 out <<
"<div class=\"tabbertab\">" << endl;
111 out <<
" <h2>Sky Localization</h2>" << endl;
112 out <<
" <iframe src=\"prc_body.html\" width=\"100%\" "
113 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
114 out <<
"</div>" << endl;
116 out <<
"<div class=\"tabbertab\">" << endl;
117 out <<
" <h2>Waveform</h2>" << endl;
118 out <<
" <iframe src=\"wrc_body.html\" width=\"100%\" "
119 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
120 out <<
"</div>" << endl;
122 out <<
"<div class=\"tabbertab\">" << endl;
123 out <<
" <h2>Chirp Mass</h2>" << endl;
124 out <<
" <iframe src=\"mchirp_body.html\" width=\"100%\" "
125 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
126 out <<
"</div>" << endl;
128 out <<
"</div>" << endl;
131 out <<
" <iframe src=\"body.html\" width=\"100%\" "
132 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
136 sprintf(sbody_height,
"%d",5800);
137 out <<
"<div class=\"tabber\">" << endl;
141 if(pp_sreport_link==
"" &&
i!=0) {
142 cout<<
"cwb_mkhtml_index.C : Error : pp_sreport --link not defined"<<endl;
exit(1);}
144 if(!pp_sreport_link.EndsWith(
"/")) pp_sreport_link=pp_sreport_link+
"/";
148 if((pp_sreport_link!=
"</tab>/")&&(pp_sreport_label==
"")) {
149 cout<<
"cwb_mkhtml_index.C : Error : pp_sreport --label not defined"<<endl;
exit(1);}
152 if(pp_sreport_high==
"") pp_sreport_high=sbody_height;
153 int ipp_sreport_high = pp_sreport_high.Atoi();
157 if(pp_sreport_link==
"<tab>/") {
158 out <<
"<div class=\"tabbertab\">" << endl;
159 out <<
" <h2>" << pp_sreport_label <<
"</h2>" << endl;
160 out <<
"<div class=\"tabber\">" << endl;
161 }
else if(pp_sreport_link==
"</tab>/") {
162 out <<
"</div>" << endl;
163 out <<
"</div>" << endl;
165 out <<
"<div class=\"tabbertab\">" << endl;
166 out <<
" <h2>" << pp_sreport_label <<
"</h2>" << endl;
168 if(pp_sreport_name==
"") {
169 out <<
" <iframe src=\"" << pp_sreport_link <<
"header.html\" width=\"100%\" height=\"900px\" "
170 <<
"marginwidth=\"15\" marginheight=\"15\" frameborder=\"0\"></iframe>" << endl;
172 out <<
" <iframe src=\"" << pp_sreport_link <<
"body.html\" width=\"100%\" "
173 <<
" height=\"" << ipp_sreport_high <<
"px\" frameborder=\"0\"></iframe>" << endl;
175 out <<
" <iframe src=\"" << pp_sreport_link << pp_sreport_name <<
"\" width=\"100%\" "
176 <<
" height=\"" << ipp_sreport_high <<
"px\" frameborder=\"0\"></iframe>" << endl;
179 out <<
"</div>" << endl;
182 out <<
"</div>" << endl;
185 out <<
"</html>" << endl;
193 sprintf(cmd,
"cp %s/html/etc/html/ROOT.css %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
195 sprintf(cmd,
"cp %s/html/etc/html/ROOT.js %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
197 sprintf(cmd,
"cp %s/html/etc/html/tabber.css %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
199 sprintf(cmd,
"cp %s/html/etc/html/tabber.js %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
cout<< "baudline_FFL : "<< baudline_FFL<< endl;ofstream out;out.open(baudline_FFL, ios::out);if(!out.good()){cout<< "Error Opening File : "<< baudline_FFL<< endl;exit(1);}ifstream in;in.open(frFiles[ifoID], ios::in);if(!in.good()){cout<< "Error Opening File : "<< frFiles[ifoID]<< endl;exit(1);}TString pfile_path="";char istring[1024];while(1){in > istring
char html_index_template[1024]
vector< TString > pp_sreport
TString cwb_mkrep_index_file
TString cwb_mkrep_index_dir
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void cwb_mkfad(TString odir="fad", int nzbins=-1, double obstime=0, bool bexit=true)