8 TB.
checkFile(gSystem->Getenv(
"CWB_ROOTLOGON_FILE"));
9 TB.
checkFile(gSystem->Getenv(
"CWB_PARAMETERS_FILE"));
10 TB.
checkFile(gSystem->Getenv(
"CWB_UPARAMETERS_FILE"));
14 cout <<
"cwb_condor_create.C : Error - the accounting_group is not defined !!!" << endl;
15 cout <<
"The accounting_group must be defined in the user_parameters.C file" << endl;
16 cout <<
"See the following link:" << endl;
17 cout <<
" https://ldas-gridmon.ligo.caltech.edu/accounting/condor_groups/determine_condor_account_group.html" << endl;
18 cout <<
"Examples : " << endl;
19 cout <<
"strcpy(condor_tag,\"ligo.dev.o2.burst.allsky.cwboffline\");" << endl;
20 cout <<
"strcpy(condor_tag,\"ligo.prod.o2.burst.allsky.cwboffline\");" << endl;
21 cout <<
"If you don't need it set : strcpy(condor_tag,\"disabled\");" << endl << endl;
28 if(gSystem->Getenv(
"CWB_STAGE_NAME")!=NULL) {
29 cwb_stage_name=
TString(gSystem->Getenv(
"CWB_STAGE_NAME"));
46 int estat = gSystem->GetPathInfo(dagfile,&
id,&size,&flags,&mt);
51 cout <<
"File \"" << dagfile <<
"\" already exist" << endl;
52 cout <<
"Do you want to overwrite the file ? (y/n) ";
55 }
while ((strcmp(answer,
"y")!=0)&&(strcmp(answer,
"n")!=0));
56 if (strcmp(answer,
"n")==0) {
83 cout <<
"Standard Segments : " << jobList.size() << endl;
92 cout <<
"slagList size : " << slagList.size() << endl;
94 cout << endl <<
"Start segments selection from dq cat1 list ..." << endl << endl;
96 cout <<
"Number of selected jobs after cat1 : " << rslagList.size() << endl;
97 cout << endl <<
"Start segments selection from dq cat2 list ..." << endl << endl;
99 cout <<
"Number of selected jobs after cat2 : " << rslagList.size() << endl;
105 if(gSystem->Getenv(
"_USE_OSG")!=NULL) {
107 TString exec_cmd = TString::Format(
"tar -czf %s/%s.tgz %s %s %s %s %s --exclude='*/.svn' --exclude='%s/*' --exclude='%s/*'",
109 gSystem->Exec(exec_cmd);
113 if(gSystem->Getenv(
"_USE_LSF")!=NULL) {
116 char lsf_label[1024];
117 if(cwb_stage_name==
"CWB_STAGE_FULL") {
124 TString exec_cmd = TString::Format(
"tar -czf %s/%s.tgz %s %s %s %s/*.sh --exclude='*/.svn'",
126 gSystem->Exec(exec_cmd);
127 cout << endl <<
"Created tgz file : " <<
condor_dir<<
"/"<<lsf_label<<
".tgz" << endl;
134 cout << endl <<
"Created LSF file : " << lsfFile << endl << endl;
135 cout <<
"To submit lsf jobs, type : cwb_lsf submit" << endl;
137 cout << endl <<
"No jobs to be submitted !!!" << endl << endl;
142 if(gSystem->Getenv(
"_USE_PEGASUS")!=NULL) {
149 out <<
"../" <<
input_dir <<
"/" << endl;
150 out <<
"../" <<
macro_dir <<
"/" << endl;
155 TString exec_cmd = TString::Format(
"cd %s;%s/cwb_pegasus_create.sh %s",
157 int ret=gSystem->Exec(exec_cmd);
158 if(ret) {cout <<
"Error while executing cwb_pegasus_create !!!" << endl;
exit(1);}
161 cout <<
"To submit pegasus jobs, type : cwb_pegasus submit" << endl;
166 full_condor_err_dir,
condor_log,
"", condor_tag);
169 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_dir[512]
sprintf(full_condor_dir,"%s/%s", work_dir, condor_dir)
vector< waveSegment > cat1List
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
char full_condor_out_dir[512]
detectorParams detParms[4]
void SetSingleDetectorMode()
char full_condor_err_dir[512]