26 TB.
checkFile(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"));
27 TB.
checkFile(gSystem->Getenv(
"CWB_PARAMETERS_FILE"));
28 TB.
checkFile(gSystem->Getenv(
"CWB_UPARAMETERS_FILE"));
32 cout <<
"cwb_condor_create.C : Error - the accounting_group is not defined !!!" << endl;
33 cout <<
"The accounting_group must be defined in the user_parameters.C file" << endl;
34 cout <<
"See the following link:" << endl;
35 cout <<
" https://ldas-gridmon.ligo.caltech.edu/accounting/condor_groups/determine_condor_account_group.html" << endl;
36 cout <<
"Examples : " << endl;
37 cout <<
"strcpy(condor_tag,\"ligo.dev.o2.burst.allsky.cwboffline\");" << endl;
38 cout <<
"strcpy(condor_tag,\"ligo.prod.o2.burst.allsky.cwboffline\");" << endl;
39 cout <<
"If you don't need it set : strcpy(condor_tag,\"disabled\");" << endl << endl;
46 if(gSystem->Getenv(
"CWB_STAGE_NAME")!=NULL) {
47 cwb_stage_name=
TString(gSystem->Getenv(
"CWB_STAGE_NAME"));
64 int estat = gSystem->GetPathInfo(dagfile,&
id,&size,&flags,&mt);
69 cout <<
"File \"" << dagfile <<
"\" already exist" << endl;
70 cout <<
"Do you want to overwrite the file ? (y/n) ";
73 }
while ((strcmp(answer,
"y")!=0)&&(strcmp(answer,
"n")!=0));
74 if (strcmp(answer,
"n")==0) {
101 cout <<
"Standard Segments : " << jobList.size() << endl;
110 cout <<
"slagList size : " << slagList.size() << endl;
112 cout << endl <<
"Start segments selection from dq cat1 list ..." << endl << endl;
114 cout <<
"Number of selected jobs after cat1 : " << rslagList.size() << endl;
115 cout << endl <<
"Start segments selection from dq cat2 list ..." << endl << endl;
117 cout <<
"Number of selected jobs after cat2 : " << rslagList.size() << endl;
123 if(gSystem->Getenv(
"_USE_OSG")!=NULL) {
125 TString exec_cmd = TString::Format(
"tar -czf %s/%s.tgz %s %s %s %s %s --exclude='*/.svn' --exclude='%s/*' --exclude='%s/*'",
127 gSystem->Exec(exec_cmd);
131 if(gSystem->Getenv(
"_USE_LSF")!=NULL) {
134 char lsf_label[1024];
135 if(cwb_stage_name==
"CWB_STAGE_FULL") {
142 TString exec_cmd = TString::Format(
"tar -czf %s/%s.tgz %s %s %s %s/*.sh --exclude='*/.svn'",
144 gSystem->Exec(exec_cmd);
145 cout << endl <<
"Created tgz file : " <<
condor_dir<<
"/"<<lsf_label<<
".tgz" << endl;
152 cout << endl <<
"Created LSF file : " << lsfFile << endl << endl;
153 cout <<
"To submit lsf jobs, type : cwb_lsf submit" << endl;
155 cout << endl <<
"No jobs to be submitted !!!" << endl << endl;
160 if(gSystem->Getenv(
"_USE_PEGASUS")!=NULL) {
167 out <<
"../" <<
input_dir <<
"/" << endl;
168 out <<
"../" <<
macro_dir <<
"/" << endl;
173 TString exec_cmd = TString::Format(
"cd %s;%s/cwb_pegasus_create.sh %s",
175 int ret=gSystem->Exec(exec_cmd);
176 if(ret) {cout <<
"Error while executing cwb_pegasus_create !!!" << endl;
exit(1);}
179 cout <<
"To submit pegasus jobs, type : cwb_pegasus submit" << endl;
184 full_condor_err_dir,
condor_log,
"", condor_tag);
187 cout <<
"To submit condor jobs, type : cwb_condor submit" << endl;
void Export(TString fname="")
cout<< "slagList size : "<< slagList.size()<< endl;cout<< endl<< "Start segments selection from dq cat1 list ..."<< endl<< endl;rslagList=TB.getSlagList(slagList, ifos, segLen, segMLS, segEdge, nDQF, DQF, CWB_CAT1);cout<< "Number of selected jobs after cat1 : "<< rslagList.size()<< endl;cout<< endl<< "Start segments selection from dq cat2 list ..."<< endl<< endl;rslagList=TB.getSlagList(rslagList, ifos, segLen, segTHR, segEdge, nDQF, DQF, CWB_CAT2);cout<< "Number of selected jobs after cat2 : "<< rslagList.size()<< endl;vector< TString > jobFiles
void Import(TString umacro="")
vector< TString > ifos(nIFO)
char full_condor_out_dir[1024]
sprintf(full_condor_dir,"%s/%s", work_dir, condor_dir)
vector< waveSegment > cat1List
char full_condor_err_dir[1024]
char full_condor_dir[1024]
strcpy(RunLabel, RUN_LABEL)
cout<< "total cat1 livetime : "<< int(cat1_time)<< " sec "<< cat1_time/3600.<< " h "<< cat1_time/86400.<< " day"<< endl;cout<< endl;vector< waveSegment > cat2List
detectorParams detParms[4]
void SetSingleDetectorMode()