Functions | |
| TB | checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE")) |
| TB | checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE")) |
| TB | checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE")) |
| gSystem | Exec (cmd) |
| exit (0) | |
| cout<< "cwb_ifo : "<< cwb_ifo.Data()<< endl;TString home_frdisplay="";if(gSystem->Getenv("HOME_FRDISPLAY")==NULL) { cout<< "Error : environment HOME_FRDISPLAY is not defined!!!"<< endl;exit(1);} else { home_frdisplay=TString(gSystem->Getenv("HOME_FRDISPLAY"));} cout<< "home_frdisplay : "<< home_frdisplay.Data()<< endl;bool icheck=false;for(int i=0;i< nIFO;i++) { if(cwb_ifo.CompareTo(ifo[i])==0) icheck=true;} if(!icheck) { cout<< "Error - ifo : "<< cwb_ifo.Data()<< " is not declared in "<< gSystem-> | Getenv ("CWB_UPARAMETERS_FILE") |
| if (gSystem->Getenv("CWB_JOBID")==NULL) | |
| if (gSystem->Getenv("CWB_IFO")==NULL) | |
| if (!in.good()) break | |
| if () | |
| file_path | ReplaceAll ("file://localhost","") |
| file_path_tmp | ReplaceAll (".gwf","") |
| cout<< "job_start : "<< job_start<< " job_stop : "<< job_stop<< endl;gRandom-> | SetSeed (0) |
| sprintf (cmd,"mkdir -p /dev/shm/%s", uinfo->fUser.Data()) | |
| sprintf (baudline_FFL,"/dev/shm/%s/cwb_frdisplay_%d.ffl", uinfo->fUser.Data(), baudline_rnID) | |
Variables | |
| char | baudline_FFL [512] |
| int | baudline_rnID = gRandom->Uniform(0,10000000) |
| char | cmd [256] |
| TString | cwb_ifo ="" |
| int | cwb_jobid =0 |
| else | |
| TString | file_path = istring |
| TString | file_path_tmp =file_path |
| int | frfile_len = ((TObjString*)token->At(token->GetEntries()-1))->GetString().Atoi() |
| int | frfile_start = ((TObjString*)token->At(token->GetEntries()-2))->GetString().Atoi() |
| int | frfile_stop = frfile_start+frfile_len |
| 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 |
| int | job_start = jobList[cwb_jobid].start |
| int | job_stop = jobList[cwb_jobid].stop |
| xargs | kill |
| TObjArray * | token = TString(file_path_tmp).Tokenize(TString("-")) |
| UserGroup_t * | uinfo = gSystem->GetUserInfo() |
| TB checkFile | ( | gSystem-> | Getenv"CWB_ROOTLOGON_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_PARAMETERS_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_UPARAMETERS_FILE" | ) |
| gSystem Exec | ( | cmd | ) |
| exit | ( | 0 | ) |
| cout<< "cwb_ifo : " << cwb_ifo.Data() << endl; TString home_frdisplay=""; if(gSystem->Getenv("HOME_FRDISPLAY")==NULL) { cout << "Error : environment HOME_FRDISPLAY is not defined!!!" << endl;exit(1); } else { home_frdisplay=TString(gSystem->Getenv("HOME_FRDISPLAY")); } cout << "home_frdisplay : " << home_frdisplay.Data() << endl; bool icheck=false; for(int i=0;i<nIFO;i++) { if(cwb_ifo.CompareTo(ifo[i])==0) icheck=true; } if(!icheck) { cout << "Error - ifo : " << cwb_ifo.Data() << " is not declared in " << gSystem-> Getenv | ( | "CWB_UPARAMETERS_FILE" | ) |
Definition at line 61 of file cwb_frdisplay.C.
| if | ( | gSystem-> | Getenv"CWB_JOBID" = =NULL | ) |
Definition at line 27 of file cwb_frdisplay.C.
| if | ( | gSystem-> | Getenv"CWB_IFO" = =NULL | ) |
Definition at line 39 of file cwb_frdisplay.C.
| if | ( | !in. | good() | ) |
Definition at line 28 of file CWB_Plugin_HEN_BKG_Config.C.
| if | ( | ) |
Definition at line 123 of file cwb_frdisplay.C.
| file_path ReplaceAll | ( | "file://localhost" | , |
| "" | |||
| ) |
| file_path_tmp ReplaceAll | ( | ".gwf" | , |
| "" | |||
| ) |
| cout<< "job_start : " << job_start << " job_stop : " << job_stop << endl; gRandom-> SetSeed | ( | 0 | ) |
| sprintf | ( | baudline_FFL | , |
| "/dev/shm/%s/cwb_frdisplay_%d.ffl" | , | ||
| uinfo->fUser. | Data(), | ||
| baudline_rnID | |||
| ) |
| char baudline_FFL[512] |
Definition at line 97 of file cwb_frdisplay.C.
| int baudline_rnID = gRandom->Uniform(0,10000000) |
Definition at line 89 of file cwb_frdisplay.C.
| char cmd[256] |
Definition at line 93 of file cwb_frdisplay.C.
| TString cwb_ifo ="" |
Definition at line 38 of file cwb_frdisplay.C.
| int cwb_jobid =0 |
Definition at line 26 of file cwb_frdisplay.C.
| else |
Definition at line 29 of file cwb_frdisplay.C.
Definition at line 114 of file cwb_frdisplay.C.
Definition at line 117 of file cwb_frdisplay.C.
Definition at line 121 of file cwb_frdisplay.C.
Definition at line 120 of file cwb_frdisplay.C.
| int frfile_stop = frfile_start+frfile_len |
Definition at line 122 of file cwb_frdisplay.C.
| 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 |
Definition at line 112 of file cwb_frdisplay.C.
| xargs kill |
Definition at line 136 of file cwb_frdisplay.C.
| TObjArray* token = TString(file_path_tmp).Tokenize(TString("-")) |
Definition at line 119 of file cwb_frdisplay.C.
| UserGroup_t* uinfo = gSystem->GetUserInfo() |
Definition at line 91 of file cwb_frdisplay.C.