Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CreateDagWaveMDC.C
Go to the documentation of this file.
1 int
3 
4  char ofile[256];
5  sprintf(ofile,"%s/%s.dag",condor_dir.Data(),label.Data());
6  ofstream out;
7  out.open(ofile,ios::out);
8 
9  int jID=1;
10  for(int n=jobmin;n<=jobmax;n+=jobstep) {
11  char ostring[256];
12  sprintf(ostring,"JOB A%i %s/%s.sub",jID,condor_dir.Data(),label.Data());
13  out << ostring << endl;
14  int start=n;
15  int stop = (n+jobstep-1)<=jobmax ? n+jobstep-1 : jobmax;
16  sprintf(ostring,"VARS A%i PID=\"%i\" WMDC_SEG_START=\"%i\" WMDC_SEG_STOP=\"%i\" ",jID,jID,start,stop);
17  out << ostring << endl;
18  sprintf(ostring,"RETRY A%i 3000",jID);
19  out << ostring << endl;
20  jID++;
21  }
22  out.close();
23 
24  return 0;
25 }
int CreateDagWaveMDC(TString condor_dir, TString label, int jobmin, int jobmax, int jobstep=1)
int jobstep
int n
Definition: cwb_net.C:10
TString("c")
char ofile[512]
ofstream out
Definition: cwb_merge.C:196
int jobmax
TString label
Definition: MergeTrees.C:21
int jobmin
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
char condor_dir[512]
Definition: test_config1.C:148