#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 (gSystem->Getenv("CWB_PPARAMETERS_FILE")) |
| TB | checkFile (gSystem->Getenv("CWB_UPPARAMETERS_FILE")) |
| TB | checkFile (gSystem->Getenv("CWB_EPPARAMETERS_FILE")) |
| f_ev | close () |
| for () | |
| pointers to detectors More... | |
| cout<< endl;cout<< "New Loudest File "<< endl;cout<< ofile<< endl;char full_condor_out_dir[1024];char full_condor_err_dir[1024];sprintf(full_condor_out_dir,"%s/%s", work_dir, log_dir);sprintf(full_condor_err_dir,"%s/%s", work_dir, log_dir);char full_condor_dir2[1024];sprintf(full_condor_dir2,"%s/%s", work_dir, condor_dir);ofstream out;out.open(ofile, ios::out);int jID=0;for(int i=0;i< max_jobs;i++) { for(int j=0;j< lagLoudest[i].size();j++) { jID++;char ostring[1024];int jobID=i+1;char jtag[1024];sprintf(jtag,"%i_%i", jobID, lagLoudest[i][j]);sprintf(ostring,"JOB A%i_%s %s/%s.sub.loudest.%d", jID, jtag, full_condor_dir2, data_label, iversion);out<< ostring<< endl;sprintf(ostring,"VARS A%i_%s PID=\%i\ CWB_UFILE=\%s\ CWB_STAGE=\%s\ ", jID, jtag, jobID, jobFiles[i].Data(), cwb_stage_name.Data());out<< ostring;sprintf(ostring,"CWB_MDC_FACTOR=\0\ CWB_JOB_LAG=\%i\ CWB_CED_DIR=\%s\ ", lagLoudest[i][j], pp_loudest_dir.Data());out<< ostring;sprintf(ostring,"CWB_INET_OPTIONS=\%s\ CWB_UPARAMETERS_FILE=\%s\ CWB_BATCH=\true\", cwb_loudest_ced.Data(), cwb_loudest_ufile.Data());out<< ostring<< endl;sprintf(ostring,"RETRY A%i_%s 3000", jID, jtag);out<< ostring<< endl;} } out.close();TString cwb_scripts=TString(gSystem->Getenv("CWB_SCRIPTS"));estat=gSystem-> | GetPathInfo (TString(condor_dir)+"/loudest.sh",&id,&size,&flags,&mt) |
| if (simulation) | |
| if (TString(condor_tag)=="") | |
| if (cwb_report_options!="") | |
| if (ievt==0) | |
| if (estat==0) | |
| if (gSystem->Getenv("CWB_STAGE_INPUT")!=NULL) | |
| if (vector< TString > fileList2=TB.getFileListFromDir(cwb_stage_input=="") | |
| if (estat!=0) | |
| if ((fP=fopen(ofile_condor_sub, "w"))==NULL) | |
| sprintf (full_condor_dir,"%s/%s", work_dir, condor_dir) | |
| sprintf (ofile,"%s/%s.dag.loudest.%d", condor_dir, data_label, iversion) | |
| sprintf (ofile_condor_sub,"%s/%s.sub.loudest.%d", full_condor_dir2, data_label, iversion) | |
Variables | |
| TString | cwb_loudest_ced = "FALSE" |
| int | cwb_loudest_idmax = 0 |
| int | cwb_loudest_idmin = 0 |
| int | cwb_loudest_nevt = pp_max_nloudest_list |
| TString | cwb_loudest_odir = "loudest" |
| float | cwb_loudest_rho = 0 |
| TString | cwb_loudest_stage = "AUTO" |
| TString | cwb_loudest_ufile = cwb_uparameters_file |
| TString | cwb_loudest_veto = "FALSE" |
| TString | cwb_report_options = TString(gSystem->Getenv("CWB_REPORT_OPTIONS")) |
| CWB_STAGE | cwb_stage =CWB_STAGE_LIKELIHOOD |
| TString | cwb_stage_input =output_dir |
| TString | cwb_stage_name ="CWB_STAGE_LIKELIHOOD" |
| else | |
| int | estat = gSystem->GetPathInfo(ofile,&id,&size,&flags,&mt) |
| cout<< ofile_condor_sub<< endl;fprintf(fP,"universe = vanilla\");fprintf(fP,"getenv = true\");fprintf(fP,"priority = $(PRI)\");fprintf(fP,"on_exit_hold = ( ExitCode != 0 )\");fprintf(fP,"request_memory = 2000\");fprintf(fP,"executable = loudest.sh\");fprintf(fP,"job_machine_attrs = Machine\");fprintf(fP,"job_machine_attrs_history_length = 5\");fprintf(fP,"requirements = target.machine =!= MachineAttrMachine1 && target.machine =!= MachineAttrMachine2 && target.machine =!= MachineAttrMachine3 && target.machine =!= MachineAttrMachine4 && target.machine =!= MachineAttrMachine5\");fprintf(fP,"environment = CWB_JOBID=$(PID);CWB_UFILE=$(CWB_UFILE);CWB_STAGE=$(CWB_STAGE);CWB_MDC_FACTOR=$(CWB_MDC_FACTOR);CWB_JOB_LAG=$(CWB_JOB_LAG);CWB_CED_DIR=$(CWB_CED_DIR);CWB_INET_OPTIONS=$(CWB_INET_OPTIONS);CWB_UPARAMETERS_FILE=$(CWB_UPARAMETERS_FILE);CWB_BATCH=$(CWB_BATCH)\");if(TString(condor_tag)!="") fprintf(fP,"accounting_group = %s\", condor_tag);fprintf(fP,"output = %s/$(PID)_$(CWB_JOB_LAG)_%s_%s.out\", full_condor_out_dir, data_label, cwb_loudest_odir.Data());fprintf(fP,"error = %s/$(PID)_$(CWB_JOB_LAG)_%s_%s.err\", full_condor_err_dir, data_label, cwb_loudest_odir.Data());fprintf(fP,"log = %s/%s_%s.log\", condor_log, data_label, cwb_loudest_odir.Data());fprintf(fP,"notification = never\");fprintf(fP,"rank=memory\");fprintf(fP,"queue\");fclose(fP);cout<< "Number of Jobs : "<< jID<< "/"<< jobList.size()<< endl;cout<< endl;cout<< "To submit condor recovered jobs type :"<< endl;sprintf(ofile,"%s/%s.dag.loudest.%d", condor_dir, data_label, iversion);cout<< "cwb_condor submit "<< ofile<< endl;cout<< endl;delete [] lagLoudest;delete [] jobStart;delete [] jobStop;delete [] jobStage;gSystem-> | Exit (0) |
| Long_t | flags |
| FILE * | fP =NULL |
| char | full_condor_dir [1024] |
| Long_t | id |
| delete [] | ihrss |
| delete [] | iSNR |
| delete [] | itime |
| iversion | |
| vector< int > | jobList =TB.getCondorJobList(full_condor_dir, data_label) |
| CWB_STAGE * | jobStage = new CWB_STAGE[max_jobs] |
| int * | jobStart = new int[max_jobs] |
| int * | jobStop = new int[max_jobs] |
| int | max_jobs = 0 |
| Long_t | mt |
| int | nloudest =0 |
| char | ofile [1024] |
| char | ofile_condor_sub [1024] |
| TString | pp_loudest_dir = TString(pp_dir)+TString("/")+cwb_loudest_odir |
| Long_t | size |
| TB checkFile | ( | gSystem-> | Getenv"CWB_ROOTLOGON_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_PARAMETERS_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_UPARAMETERS_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_PPARAMETERS_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_UPPARAMETERS_FILE" | ) |
| TB checkFile | ( | gSystem-> | Getenv"CWB_EPPARAMETERS_FILE" | ) |
| f_ev close | ( | ) |
| for | ( | ) |
pointers to detectors
Definition at line 146 of file cwb_report_loudest.C.
| cout<< endl; cout << "New Loudest File " << endl; cout << ofile << endl; char full_condor_out_dir[1024]; char full_condor_err_dir[1024]; sprintf(full_condor_out_dir,"%s/%s",work_dir,log_dir); sprintf(full_condor_err_dir,"%s/%s",work_dir,log_dir); char full_condor_dir2[1024]; sprintf(full_condor_dir2,"%s/%s",work_dir,condor_dir); ofstream out; out.open(ofile,ios::out); int jID = 0; for (int i=0;i<max_jobs;i++) { for (int j=0;j<lagLoudest[i].size();j++) { jID++; char ostring[1024]; int jobID=i+1; char jtag[1024];sprintf(jtag,"%i_%i",jobID,lagLoudest[i][j]); sprintf(ostring,"JOB A%i_%s %s/%s.sub.loudest.%d",jID,jtag,full_condor_dir2,data_label,iversion); out << ostring << endl; sprintf(ostring,"VARS A%i_%s PID=\"%i\" CWB_UFILE=\"%s\" CWB_STAGE=\"%s\" ", jID,jtag,jobID,jobFiles[i].Data(),cwb_stage_name.Data()); out << ostring; sprintf(ostring,"CWB_MDC_FACTOR=\"0\" CWB_JOB_LAG=\"%i\" CWB_CED_DIR=\"%s\" ", lagLoudest[i][j],pp_loudest_dir.Data()); out << ostring; sprintf(ostring,"CWB_INET_OPTIONS=\"%s\" CWB_UPARAMETERS_FILE=\"%s\" CWB_BATCH=\"true\"", cwb_loudest_ced.Data(),cwb_loudest_ufile.Data()); out << ostring << endl; sprintf(ostring,"RETRY A%i_%s 3000",jID,jtag); out << ostring << endl; } } out.close(); TString cwb_scripts = TString(gSystem->Getenv("CWB_SCRIPTS")); estat = gSystem-> GetPathInfo | ( | TString(condor_dir)+"/loudest.sh" | , |
| & | id, | ||
| & | size, | ||
| & | flags, | ||
| & | mt | ||
| ) |
| if | ( | simulation | ) |
Definition at line 33 of file cwb_report_loudest.C.
| if | ( | TString(condor_tag) | = ="" | ) |
Definition at line 39 of file cwb_report_loudest.C.
| if | ( | cwb_report_options! | = "" | ) |
Definition at line 74 of file cwb_report_loudest.C.
| if | ( | ievt | = =0 | ) |
Definition at line 205 of file cwb_report_loudest.C.
| if | ( | estat | = =0 | ) |
Definition at line 240 of file cwb_report_loudest.C.
| if | ( | gSystem->Getenv("CWB_STAGE_INPUT")! | = NULL | ) |
Definition at line 256 of file cwb_report_loudest.C.
| if | ( | vector<TString> fileList2 = TB.getFileListFromDir( | cwb_stage_input = ="" | ) |
Definition at line 259 of file cwb_report_loudest.C.
| if | ( | estat! | = 0 | ) |
Definition at line 375 of file cwb_report_loudest.C.
| if | ( | (fP=fopen(ofile_condor_sub, "w")) | = = NULL | ) |
Definition at line 387 of file cwb_report_loudest.C.
| sprintf | ( | full_condor_dir | , |
| "%s/%s" | , | ||
| work_dir | , | ||
| condor_dir | |||
| ) |
| sprintf | ( | ofile | , |
| "%s/%s.dag.loudest.%d" | , | ||
| condor_dir | , | ||
| data_label | , | ||
| iversion | |||
| ) |
| sprintf | ( | ofile_condor_sub | , |
| "%s/%s.sub.loudest.%d" | , | ||
| full_condor_dir2 | , | ||
| data_label | , | ||
| iversion | |||
| ) |
| TString cwb_loudest_ced = "FALSE" |
Definition at line 69 of file cwb_report_loudest.C.
| int cwb_loudest_idmax = 0 |
Definition at line 67 of file cwb_report_loudest.C.
| int cwb_loudest_idmin = 0 |
Definition at line 66 of file cwb_report_loudest.C.
| int cwb_loudest_nevt = pp_max_nloudest_list |
Definition at line 65 of file cwb_report_loudest.C.
| TString cwb_loudest_odir = "loudest" |
Definition at line 71 of file cwb_report_loudest.C.
| float cwb_loudest_rho = 0 |
Definition at line 64 of file cwb_report_loudest.C.
| TString cwb_loudest_stage = "AUTO" |
Definition at line 72 of file cwb_report_loudest.C.
| TString cwb_loudest_ufile = cwb_uparameters_file |
Definition at line 68 of file cwb_report_loudest.C.
| TString cwb_loudest_veto = "FALSE" |
Definition at line 70 of file cwb_report_loudest.C.
Definition at line 73 of file cwb_report_loudest.C.
| CWB_STAGE cwb_stage =CWB_STAGE_LIKELIHOOD |
Definition at line 61 of file cwb_report_loudest.C.
| TString cwb_stage_input =output_dir |
Definition at line 255 of file cwb_report_loudest.C.
| TString cwb_stage_name ="CWB_STAGE_LIKELIHOOD" |
Definition at line 60 of file cwb_report_loudest.C.
| else |
Definition at line 56 of file cwb_report_loudest.C.
Definition at line 239 of file cwb_report_loudest.C.
| cout<< ofile_condor_sub << endl; fprintf(fP,"universe = vanilla\n"); fprintf(fP,"getenv = true\n"); fprintf(fP,"priority = $(PRI)\n"); fprintf(fP,"on_exit_hold = ( ExitCode != 0 )\n"); fprintf(fP,"request_memory = 2000\n"); fprintf(fP,"executable = loudest.sh\n"); fprintf(fP,"job_machine_attrs = Machine\n"); fprintf(fP,"job_machine_attrs_history_length = 5\n"); fprintf(fP,"requirements = target.machine =!= MachineAttrMachine1 && target.machine =!= MachineAttrMachine2 && target.machine =!= MachineAttrMachine3 && target.machine =!= MachineAttrMachine4 && target.machine =!= MachineAttrMachine5\n"); fprintf(fP,"environment = CWB_JOBID=$(PID);CWB_UFILE=$(CWB_UFILE);CWB_STAGE=$(CWB_STAGE);CWB_MDC_FACTOR=$(CWB_MDC_FACTOR);CWB_JOB_LAG=$(CWB_JOB_LAG);CWB_CED_DIR=$(CWB_CED_DIR);CWB_INET_OPTIONS=$(CWB_INET_OPTIONS);CWB_UPARAMETERS_FILE=$(CWB_UPARAMETERS_FILE);CWB_BATCH=$(CWB_BATCH)\n"); if(TString(condor_tag)!="") fprintf(fP,"accounting_group = %s\n",condor_tag); fprintf(fP,"output = %s/$(PID)_$(CWB_JOB_LAG)_%s_%s.out\n",full_condor_out_dir,data_label,cwb_loudest_odir.Data()); fprintf(fP,"error = %s/$(PID)_$(CWB_JOB_LAG)_%s_%s.err\n",full_condor_err_dir,data_label,cwb_loudest_odir.Data()); fprintf(fP,"log = %s/%s_%s.log\n",condor_log,data_label,cwb_loudest_odir.Data()); fprintf(fP,"notification = never\n"); fprintf(fP,"rank=memory\n"); fprintf(fP,"queue\n"); fclose(fP); cout << "Number of Jobs : " << jID << "/" << jobList.size() << endl; cout << endl; cout << "To submit condor recovered jobs type :" << endl; sprintf(ofile,"%s/%s.dag.loudest.%d",condor_dir,data_label,iversion); cout << "cwb_condor submit " << ofile << endl; cout << endl; delete [] lagLoudest; delete [] jobStart; delete [] jobStop; delete [] jobStage; gSystem-> Exit(0) |
Definition at line 425 of file cwb_report_loudest.C.
| Long_t flags |
Definition at line 238 of file cwb_report_loudest.C.
| FILE* fP =NULL |
Definition at line 386 of file cwb_report_loudest.C.
| char full_condor_dir[1024] |
Definition at line 142 of file cwb_report_loudest.C.
| Long_t id |
Definition at line 238 of file cwb_report_loudest.C.
| delete [] ihrss |
Definition at line 203 of file cwb_report_loudest.C.
| delete [] iSNR |
Definition at line 202 of file cwb_report_loudest.C.
| delete [] itime |
Definition at line 201 of file cwb_report_loudest.C.
| iversion |
Definition at line 232 of file cwb_report_loudest.C.
| vector<int> jobList =TB.getCondorJobList(full_condor_dir, data_label) |
Definition at line 144 of file cwb_report_loudest.C.
Definition at line 215 of file cwb_report_loudest.C.
Definition at line 212 of file cwb_report_loudest.C.
Definition at line 213 of file cwb_report_loudest.C.
| int max_jobs = 0 |
Definition at line 145 of file cwb_report_loudest.C.
| Long_t mt |
Definition at line 238 of file cwb_report_loudest.C.
| int nloudest =0 |
Definition at line 301 of file cwb_report_loudest.C.
| char ofile[1024] |
Definition at line 234 of file cwb_report_loudest.C.
| char ofile_condor_sub[1024] |
Definition at line 383 of file cwb_report_loudest.C.
| TString pp_loudest_dir = TString(pp_dir)+TString("/")+cwb_loudest_odir |
Definition at line 138 of file cwb_report_loudest.C.
| Long_t size |
Definition at line 238 of file cwb_report_loudest.C.