Logo coherent WaveBurst  
Library Reference Guide
Logo
Functions | Variables
cwb_report_skymap.C File Reference
#include <vector>
Include dependency graph for cwb_report_skymap.C:

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 ()
 pointers to detectors More...
 
 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 out2
 
bool singleSkymap = true
 
Long_t size
 
TString symLink = CWB::Toolbox::getFileName(index_html_file)
 

Function Documentation

◆ checkFile() [1/4]

TB checkFile ( gSystem->  Getenv"CWB_ROOTLOGON_FILE")

◆ checkFile() [2/4]

TB checkFile ( gSystem->  Getenv"CWB_PARAMETERS_FILE")

◆ checkFile() [3/4]

TB checkFile ( gSystem->  Getenv"CWB_UPARAMETERS_FILE")

◆ checkFile() [4/4]

TB checkFile ( cwb_skymap_file  )

◆ Exec()

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

exit ( )

◆ for()

for ( )

pointers to detectors

Definition at line 143 of file cwb_report_skymap.C.

◆ if() [1/11]

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

Definition at line 31 of file cwb_report_skymap.C.

◆ if() [2/11]

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

Definition at line 38 of file cwb_report_skymap.C.

◆ if() [3/11]

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

Definition at line 45 of file cwb_report_skymap.C.

◆ if() [4/11]

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

Definition at line 50 of file cwb_report_skymap.C.

◆ if() [5/11]

if ( cwb_skymap_file.  EndsWith".fits")

Definition at line 57 of file cwb_report_skymap.C.

◆ if() [6/11]

else if ( cwb_skymap_file.  EndsWith".fits.gz")

Definition at line 58 of file cwb_report_skymap.C.

◆ if() [7/11]

if ( cwb_report_options!  = "")

Definition at line 71 of file cwb_report_skymap.C.

◆ if() [8/11]

if ( cwb_rep_url  = ="")

Definition at line 123 of file cwb_report_skymap.C.

◆ if() [9/11]

if ( singleSkymap)

◆ if() [10/11]

if ( symLink!  = "")

Definition at line 204 of file cwb_report_skymap.C.

◆ if() [11/11]

if ( estat!  = 0)

Definition at line 214 of file cwb_report_skymap.C.

◆ mkDir()

TB mkDir ( cwb_skymap_dir  ,
false  ,
true   
)

◆ sprintf() [1/3]

sprintf ( cmd  ,
"rm %s ,
skymap_script_file   
)

◆ sprintf() [2/3]

sprintf ( index_html_file  ,
"%s/index.html"  ,
cwb_skymap_parent.  Data() 
)

◆ sprintf() [3/3]

sprintf ( index_html_file_tmp  ,
"%s.tmp"  ,
index_html_file   
)

◆ TString()

TString ( "c"  )

Definition at line 129 of file cwb_report_skymap.C.

Variable Documentation

◆ cwb_rep_url

TString cwb_rep_url =""

Definition at line 44 of file cwb_report_skymap.C.

◆ cwb_report_options

TString cwb_report_options = TString(gSystem->Getenv("CWB_REPORT_OPTIONS"))

Definition at line 67 of file cwb_report_skymap.C.

◆ cwb_skymap_dir

TString cwb_skymap_dir = cwb_skymap_file

Definition at line 65 of file cwb_report_skymap.C.

◆ cwb_skymap_file

TString cwb_skymap_file

Definition at line 49 of file cwb_report_skymap.C.

◆ cwb_skymap_name

TString cwb_skymap_name = gSystem->BaseName(cwb_skymap_file)

Definition at line 127 of file cwb_report_skymap.C.

◆ cwb_skymap_parent

TString cwb_skymap_parent = gSystem->DirName(cwb_skymap_dir)

Definition at line 196 of file cwb_report_skymap.C.

◆ cwb_user_url

TString cwb_user_url

Definition at line 37 of file cwb_report_skymap.C.

◆ else

else
Initial value:
{
home_skymap_lib=TString(gSystem->Getenv("HOME_SKYMAP_LIB"))
TString("c")
TString home_skymap_lib

Definition at line 33 of file cwb_report_skymap.C.

◆ estat

int estat = gSystem->GetPathInfo(index_html_file,&id,&size,&flags,&mt)

Definition at line 213 of file cwb_report_skymap.C.

◆ flags

Long_t flags

Definition at line 201 of file cwb_report_skymap.C.

◆ home_skymap_lib

TString home_skymap_lib

Definition at line 30 of file cwb_report_skymap.C.

◆ id

Long_t id

Definition at line 201 of file cwb_report_skymap.C.

◆ ifostr

char ifostr[64] =""

Definition at line 142 of file cwb_report_skymap.C.

◆ index_html_file

char index_html_file[1024]

Definition at line 200 of file cwb_report_skymap.C.

◆ index_html_file_tmp

char index_html_file_tmp[1024]

Definition at line 226 of file cwb_report_skymap.C.

◆ mt

Long_t mt

Definition at line 201 of file cwb_report_skymap.C.

◆ out2

ofstream out2

Definition at line 225 of file cwb_report_skymap.C.

◆ singleSkymap

bool singleSkymap = true

Definition at line 70 of file cwb_report_skymap.C.

◆ size

Long_t size

Definition at line 201 of file cwb_report_skymap.C.

◆ symLink

Definition at line 199 of file cwb_report_skymap.C.