#include <vector>
Functions | |
TB | checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE")) |
TB | checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE")) |
TB | checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE")) |
TB | checkFile (cwb_skymap_file) |
out<< ostring<< endl;sprintf(ostring,"cd %s; \\", home_skymap_lib.Data());out << ostring<< endl;sprintf(ostring,". setup.sh; \\");out<< ostring << endl;sprintf(ostring,"cd $USER_DIR; \\");out<< ostring << endl;sprintf(ostring,"fits=%s; \\", cwb_skymap_file.Data());out << ostring<< endl;sprintf(ostring,"time %s -v %s --dT-nside 128 --dT-Nsamp 500 -o %s -t cwb -O %s --no-margticks $fits %s \\", pyCmd.Data(), ifostr, odir.Data(), ourl, cwb_report_options.Data());out << ostring<< endl;sprintf(ostring,"'");out << ostring<< endl;out.close();char cmd[1024];sprintf(cmd,". %s", skymap_script_file);cout<< cmd << endl;gSystem-> | Exec (cmd) |
exit (1) | |
for () | |
if (gSystem->Getenv("HOME_SKYMAP_LIB")==NULL) | |
if (gSystem->Getenv("CWB_USER_URL")==NULL) | |
if (gSystem->Getenv("CWB_REP_URL")!=NULL) | |
if (gSystem->Getenv("CWB_SKYMAP_FILE")==NULL) | |
if (cwb_skymap_file.EndsWith(".fits")) | |
else | if (cwb_skymap_file.EndsWith(".fits.gz")) |
if (cwb_report_options!="") | |
if (cwb_rep_url=="") | |
if (!singleSkymap) cwb_skymap_dir.ReplaceAll(cwb_skymap_name | |
if (symlink!="") | |
if (estat!=0) | |
TB | mkDir (cwb_skymap_dir, false, true) |
sprintf (cmd,"rm %s", skymap_script_file) | |
sprintf (index_html_file,"%s/index.html", cwb_skymap_parent.Data()) | |
sprintf (index_html_file_tmp,"%s.tmp", index_html_file) | |
TString ("c") | |
Variables | |
TString | cwb_rep_url ="" |
TString | cwb_report_options = TString(gSystem->Getenv("CWB_REPORT_OPTIONS")) |
TString | cwb_skymap_dir = cwb_skymap_file |
TString | cwb_skymap_file |
TString | cwb_skymap_name = gSystem->BaseName(cwb_skymap_file) |
TString | cwb_skymap_parent = gSystem.DirName(cwb_skymap_dir) |
TString | cwb_user_url |
else | |
int | estat = gSystem->GetPathInfo(index_html_file,&id,&size,&flags,&mt) |
Long_t | flags |
TString | home_skymap_lib |
Long_t | id |
char | ifostr [64] ="" |
char | index_html_file [1024] |
char | index_html_file_tmp [1024] |
Long_t | mt |
ofstream | out |
bool | singleSkymap = true |
Long_t | size |
TString | symlink = CWB::Toolbox::getFileName(index_html_file) |
TB checkFile | ( | gSystem-> | Getenv"CWB_ROOTLOGON_FILE" | ) |
TB checkFile | ( | gSystem-> | Getenv"CWB_PARAMETERS_FILE" | ) |
TB checkFile | ( | gSystem-> | Getenv"CWB_UPARAMETERS_FILE" | ) |
TB checkFile | ( | cwb_skymap_file | ) |
out<< ostring << endl; sprintf(ostring,"cd %s; \\",home_skymap_lib.Data()); out << ostring << endl; sprintf(ostring,". setup.sh; \\"); out << ostring << endl; sprintf(ostring,"cd $USER_DIR; \\"); out << ostring << endl; sprintf(ostring,"fits=%s; \\",cwb_skymap_file.Data()); out << ostring << endl; sprintf(ostring,"time %s -v %s --dT-nside 128 --dT-Nsamp 500 -o %s -t cwb -O %s --no-margticks $fits %s \\", pyCmd.Data(),ifostr,odir.Data(),ourl,cwb_report_options.Data()); out << ostring << endl; sprintf(ostring,"'"); out << ostring << endl; out.close(); char cmd[1024]; sprintf(cmd,". %s",skymap_script_file); cout << cmd << endl; gSystem-> Exec | ( | cmd | ) |
exit | ( | 1 | ) |
for | ( | ) |
Definition at line 125 of file cwb_report_skymap.C.
if | ( | gSystem-> | Getenv"HOME_SKYMAP_LIB" = =NULL | ) |
Definition at line 13 of file cwb_report_skymap.C.
if | ( | gSystem-> | Getenv"CWB_USER_URL" = =NULL | ) |
Definition at line 20 of file cwb_report_skymap.C.
if | ( | gSystem->Getenv("CWB_REP_URL")! | = NULL | ) |
Definition at line 27 of file cwb_report_skymap.C.
if | ( | gSystem-> | Getenv"CWB_SKYMAP_FILE" = =NULL | ) |
Definition at line 32 of file cwb_report_skymap.C.
if | ( | cwb_skymap_file. | EndsWith".fits" | ) |
Definition at line 39 of file cwb_report_skymap.C.
else if | ( | cwb_skymap_file. | EndsWith".fits.gz" | ) |
Definition at line 40 of file cwb_report_skymap.C.
if | ( | cwb_report_options! | = "" | ) |
Definition at line 53 of file cwb_report_skymap.C.
if | ( | cwb_rep_url | = ="" | ) |
Definition at line 105 of file cwb_report_skymap.C.
if | ( | ! | singleSkymap | ) |
if | ( | symlink! | = "" | ) |
Definition at line 186 of file cwb_report_skymap.C.
if | ( | estat! | = 0 | ) |
Definition at line 196 of file cwb_report_skymap.C.
TB mkDir | ( | cwb_skymap_dir | , |
false | , | ||
true | |||
) |
sprintf | ( | index_html_file | , |
"%s/index.html" | , | ||
cwb_skymap_parent. | Data() | ||
) |
sprintf | ( | index_html_file_tmp | , |
"%s.tmp" | , | ||
index_html_file | |||
) |
TString | ( | "c" | ) |
Definition at line 111 of file cwb_report_skymap.C.
TString cwb_rep_url ="" |
Definition at line 26 of file cwb_report_skymap.C.
Definition at line 49 of file cwb_report_skymap.C.
TString cwb_skymap_dir = cwb_skymap_file |
Definition at line 47 of file cwb_report_skymap.C.
TString cwb_skymap_file |
Definition at line 31 of file cwb_report_skymap.C.
TString cwb_skymap_name = gSystem->BaseName(cwb_skymap_file) |
Definition at line 109 of file cwb_report_skymap.C.
TString cwb_skymap_parent = gSystem.DirName(cwb_skymap_dir) |
Definition at line 178 of file cwb_report_skymap.C.
TString cwb_user_url |
Definition at line 19 of file cwb_report_skymap.C.
else |
Definition at line 15 of file cwb_report_skymap.C.
int estat = gSystem->GetPathInfo(index_html_file,&id,&size,&flags,&mt) |
Definition at line 195 of file cwb_report_skymap.C.
Long_t flags |
Definition at line 183 of file cwb_report_skymap.C.
TString home_skymap_lib |
Definition at line 12 of file cwb_report_skymap.C.
Long_t id |
Definition at line 183 of file cwb_report_skymap.C.
char ifostr[64] ="" |
Definition at line 124 of file cwb_report_skymap.C.
char index_html_file[1024] |
Definition at line 182 of file cwb_report_skymap.C.
char index_html_file_tmp[1024] |
Definition at line 208 of file cwb_report_skymap.C.
Long_t mt |
Definition at line 183 of file cwb_report_skymap.C.
ofstream out |
Definition at line 207 of file cwb_report_skymap.C.
bool singleSkymap = true |
Definition at line 52 of file cwb_report_skymap.C.
Long_t size |
Definition at line 183 of file cwb_report_skymap.C.
symlink = CWB::Toolbox::getFileName(index_html_file) |
Definition at line 181 of file cwb_report_skymap.C.