31 if(gSystem->Getenv(
"CWB_MKREP_INDEX_FILE")!=NULL) {
32 cwb_mkrep_index_file=
TString(gSystem->Getenv(
"CWB_MKREP_INDEX_FILE"));
33 if(!cwb_mkrep_index_file.EndsWith(
".html")) {
34 cout<<
"cwb_mkhtml_index.C : Error : the index html must have the .html extension"<<endl;
39 cwb_mkrep_index_dir = cwb_mkrep_index_dir.ReplaceAll(gSystem->BaseName(cwb_mkrep_index_dir),
"");
41 sprintf(cmd,
"mkdir -p %s",cwb_mkrep_index_dir.Data());
45 cwb_mkrep_index_file=
"";
50 gROOT->LoadMacro(
"$HOME_WAT/tools/cwb/macros/cwb_mkfad.C");
53 if(pp_fad_nzbins==
"") pp_fad_nzbins=
"0";
54 int ipp_fad_nzbins = pp_fad_nzbins.Atoi();
71 for(
int i=0;
i<pp_sreport_tmp.size();
i++)
if(pp_sreport_tmp[
i]!=
"") {
80 if(cwb_mkrep_index_file!=
"") {
81 sprintf(ofile,
"%s", cwb_mkrep_index_file.Data());
85 cout <<
"make index html file : " << ofile << endl;
87 if (!out.good()) {cout <<
"cwb_mkhtml_index.C : Error Opening File : " << ofile << endl;
exit(1);}
97 char sbody_height[256];
101 if(
TString(gSystem->Getenv(
"CWB_REPORT_PE"))!=
"") {
102 sprintf(sbody_height,
"%d",5000);
104 sprintf(sbody_height,
"%d",5800);
110 in.getline(istring,1024);
111 if (!in.good())
break;
113 out << ostring.Data() << endl;
116 out <<
"<html>" << endl;
117 out <<
"<br>" << endl;
119 if(pp_sreport_size==0) {
121 out <<
" <iframe src=\"header.html\" width=\"100%\" height=\"970px\" " 122 <<
"marginwidth=\"15\" marginheight=\"15\" frameborder=\"0\"></iframe>" << endl;
124 if(
TString(gSystem->Getenv(
"CWB_REPORT_PE"))!=
"") {
126 out <<
"<div class=\"tabber\">" << endl;
128 out <<
"<div class=\"tabbertab\">" << endl;
129 out <<
" <h2>Sky Localization</h2>" << endl;
130 out <<
" <iframe src=\"prc_body.html\" width=\"100%\" " 131 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
132 out <<
"</div>" << endl;
134 out <<
"<div class=\"tabbertab\">" << endl;
135 out <<
" <h2>Waveform</h2>" << endl;
136 out <<
" <iframe src=\"wrc_body.html\" width=\"100%\" " 137 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
138 out <<
"</div>" << endl;
140 out <<
"<div class=\"tabbertab\">" << endl;
141 out <<
" <h2>Chirp Mass</h2>" << endl;
142 out <<
" <iframe src=\"mchirp_body.html\" width=\"100%\" " 143 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
144 out <<
"</div>" << endl;
146 out <<
"</div>" << endl;
147 }
else if(
TString(gSystem->Getenv(
"CWB_REPORT_CBC"))!=
"") {
151 if(gSystem->Getenv(
"CWB_DOC_URL")!=NULL) {
152 cwb_doc_url=
TString(gSystem->Getenv(
"CWB_DOC_URL"));
155 char plot_list[1024];
156 sprintf(plot_list,
"<a target=\"_parent\" name=\"Full Plot List\" href=\"%s\">Full Plot List</a>",
pp_data_dir);
157 if(cwb_doc_url!=
"") out<<
"<table align=\"center\" width=97%> <tr> <td align=\"left\">"<<endl;
158 out << plot_list << endl;
159 if(cwb_doc_url!=
"") {
161 out<<
"<td align=\"right\">"<<endl;
162 out<<
"<a target=\"_parent\" href=\""<<cwb_doc_url.Data()
163 <<
"/cwb/man/Simulation-part.html#Simulation-part\">infos</a>"<<endl;
164 out<<
"</td> </tr> </table>"<<endl;
167 out <<
"<div class=\"tabber\">" << endl;
169 out <<
"<div class=\"tabbertab\">" << endl;
170 out <<
" <h2>Main plots</h2>" << endl;
171 out <<
" <iframe src=\"main_body.html\" width=\"100%\" " 172 <<
" height=\"" << 1900 <<
"px\" frameborder=\"0\"></iframe>" << endl;
173 out <<
"</div>" << endl;
175 out <<
"<div class=\"tabbertab\">" << endl;
176 out <<
" <h2>ROC curves</h2>" << endl;
177 out <<
" <iframe src=\"ROC_body.html\" width=\"100%\" " 178 <<
" height=\"" << 3500 <<
"px\" frameborder=\"0\"></iframe>" << endl;
179 out <<
"</div>" << endl;
181 out <<
"<div class=\"tabbertab\">" << endl;
182 out <<
" <h2>Sampled parameter space</h2>" << endl;
183 out <<
" <iframe src=\"parspace_body.html\" width=\"100%\" " 184 <<
" height=\"" << 1800 <<
"px\" frameborder=\"0\"></iframe>" << endl;
185 out <<
"</div>" << endl;
187 out <<
"<div class=\"tabbertab\">" << endl;
188 out <<
" <h2>Distance plots</h2>" << endl;
189 out <<
" <iframe src=\"distance_body.html\" width=\"100%\" " 190 <<
" height=\"" << 2180 <<
"px\" frameborder=\"0\"></iframe>" << endl;
191 out <<
"</div>" << endl;
193 out <<
"<div class=\"tabbertab\">" << endl;
194 out <<
" <h2>SNR plots</h2>" << endl;
195 out <<
" <iframe src=\"snr_body.html\" width=\"100%\" " 196 <<
" height=\"" << 1300 <<
"px\" frameborder=\"0\"></iframe>" << endl;
197 out <<
"</div>" << endl;
199 out <<
"</div>" << endl;
203 out <<
" <iframe src=\"body.html\" width=\"100%\" " 204 <<
" height=\"" << sbody_height <<
"px\" frameborder=\"0\"></iframe>" << endl;
208 sprintf(sbody_height,
"%d",5800);
209 out <<
"<div class=\"tabber\">" << endl;
213 if(pp_sreport_link==
"" && i!=0) {
214 cout<<
"cwb_mkhtml_index.C : Error : pp_sreport --link not defined"<<endl;
exit(1);}
216 if(!pp_sreport_link.EndsWith(
"/")) pp_sreport_link=pp_sreport_link+
"/";
220 if((pp_sreport_link!=
"</tab>/")&&(pp_sreport_label==
"")) {
221 cout<<
"cwb_mkhtml_index.C : Error : pp_sreport --label not defined"<<endl;
exit(1);}
224 if(pp_sreport_high==
"") pp_sreport_high=sbody_height;
225 int ipp_sreport_high = pp_sreport_high.Atoi();
229 if(pp_sreport_link==
"<tab>/") {
230 out <<
"<div class=\"tabbertab\">" << endl;
231 out <<
" <h2>" << pp_sreport_label <<
"</h2>" << endl;
232 out <<
"<div class=\"tabber\">" << endl;
233 }
else if(pp_sreport_link==
"</tab>/") {
234 out <<
"</div>" << endl;
235 out <<
"</div>" << endl;
237 out <<
"<div class=\"tabbertab\">" << endl;
238 out <<
" <h2>" << pp_sreport_label <<
"</h2>" << endl;
240 if(pp_sreport_name==
"") {
241 out <<
" <iframe src=\"" << pp_sreport_link <<
"header.html\" width=\"100%\" height=\"900px\" " 242 <<
"marginwidth=\"15\" marginheight=\"15\" frameborder=\"0\"></iframe>" << endl;
244 out <<
" <iframe src=\"" << pp_sreport_link <<
"body.html\" width=\"100%\" " 245 <<
" height=\"" << ipp_sreport_high <<
"px\" frameborder=\"0\"></iframe>" << endl;
247 out <<
" <iframe src=\"" << pp_sreport_link << pp_sreport_name <<
"\" width=\"100%\" " 248 <<
" height=\"" << ipp_sreport_high <<
"px\" frameborder=\"0\"></iframe>" << endl;
251 out <<
"</div>" << endl;
254 out <<
"</div>" << endl;
257 out <<
"</html>" << endl;
265 sprintf(cmd,
"cp %s/html/etc/html/ROOT.css %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
267 sprintf(cmd,
"cp %s/html/etc/html/ROOT.js %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
269 sprintf(cmd,
"cp %s/html/etc/html/tabber.css %s/",gSystem->ExpandPathName(
"$HOME_WAT"),odir.Data());
271 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)