Logo coherent WaveBurst  
Library Reference Guide
Logo
Functions | Variables
cwb_condor_create_ced.C File Reference

Functions

out close ()
 
 exit (0)
 
ifstream f_ev (events_sorted)
 
 if (TString(condor_tag)=="")
 
 if (nIFO==2)
 
 if ((fP=fopen(ofile_condor_sub, "w"))==NULL)
 
 sprintf (events_sorted,"%s/events_sorted.txt", netdir)
 
 sprintf (condor_label,"%s.%s.R%s.ced", data_label, cwb_merge_label.Data(), pp_label.Data())
 
 sprintf (ofile_condor_sub,"%s/%s.sub", condor_dir, condor_label)
 
 while (ievt< pp_max_nloudest_list)
 

Variables

char c3 [8]
 
char condor_label [1024]
 
char events_sorted [256]
 
FILE * fP =NULL
 
float iacor
 
float icc
 
float icc2
 
float icc3
 
float icHH
 
float idur
 
int ifreq
 
int ihigh
 
double * ihrss = new double[nIFO]
 
float ilag
 
float ilik
 
int ilow
 
float ipen
 
int irate
 
float irho
 
int irun
 
int isize
 
float islag
 
double * iSNR = new double[nIFO]
 
double * itime = new double[nIFO]
 
float ivED
 
float ivHH
 
cout<< ofile_condor_sub<< endl;char full_condor_dir[1024];char full_condor_out_dir[1024];char full_condor_err_dir[1024];sprintf(full_condor_dir,"%s/%s", work_dir, condor_dir);sprintf(full_condor_out_dir,"%s/%s", work_dir, log_dir);sprintf(full_condor_err_dir,"%s/%s", work_dir, log_dir);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 = ced.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_GPS_EVENT=$(CWB_GPS_EVENT);CWB_INET_OPTIONS=$(CWB_INET_OPTIONS);CWB_MDC_FACTOR=$(CWB_MDC_FACTOR);CWB_JOB_LAG=$(CWB_JOB_LAG);CWB_CED_DIR=$(CWB_CED_DIR);CWB_BATCH=$(CWB_BATCH)\");if(TString(condor_tag)!="") fprintf(fP,"accounting_group = %s\", condor_tag);fprintf(fP,"output = %s/$(PID)_$(CWB_JOB_LAG)_%s.out\", full_condor_out_dir, condor_label);fprintf(fP,"error = %s/$(PID)_$(CWB_JOB_LAG)_%s.err\", full_condor_err_dir, condor_label);fprintf(fP,"log = %s/%s.log\", condor_log, condor_label);fprintf(fP,"notification = never\");fprintf(fP,"rank=memory\");fprintf(fP,"queue\");fclose(fP);char ofile_condor_dag[1024];sprintf(ofile_condor_dag,"%s/%s.dag", condor_dir, condor_label);ofstream out;out.open(ofile_condor_dag, ios::out);if(!out.good()) {cout<< "Error Opening File : "<< ofile_condor_dag<< endl;exit(1);} cout<< ofile_condor_dag<< endl;int ievt=0;vector< TStringJTAG
 
char ofile_condor_sub [1024]
 
float phi
 
char pm [8]
 
float psi
 
float theta
 

Function Documentation

◆ close()

out close ( )

◆ exit()

exit ( )

◆ f_ev()

ifstream f_ev ( events_sorted  )

◆ if() [1/3]

if ( TString(condor_tag)  = ="")

Definition at line 29 of file cwb_condor_create_ced.C.

◆ if() [2/3]

if ( nIFO  = =2)

Definition at line 55 of file cwb_condor_create_ced.C.

◆ if() [3/3]

if ( (fP=fopen(ofile_condor_sub, "w"))  = = NULL)

Definition at line 112 of file cwb_condor_create_ced.C.

◆ sprintf() [1/3]

sprintf ( events_sorted  ,
"%s/events_sorted.txt"  ,
netdir   
)

◆ sprintf() [2/3]

sprintf ( condor_label  ,
"%s.%s.R%s.ced"  ,
data_label  ,
cwb_merge_label.  Data(),
pp_label.  Data() 
)

◆ sprintf() [3/3]

sprintf ( ofile_condor_sub  ,
"%s/%s.sub"  ,
condor_dir  ,
condor_label   
)

◆ while()

while ( )

Definition at line 159 of file cwb_condor_create_ced.C.

Variable Documentation

◆ c3

char c3[8]

Definition at line 64 of file cwb_condor_create_ced.C.

◆ condor_label

char condor_label[1024]

Definition at line 103 of file cwb_condor_create_ced.C.

◆ events_sorted

char events_sorted[256]

Definition at line 59 of file cwb_condor_create_ced.C.

◆ fP

FILE* fP =NULL

Definition at line 111 of file cwb_condor_create_ced.C.

◆ iacor

float iacor

Definition at line 65 of file cwb_condor_create_ced.C.

◆ icc

float icc

Definition at line 65 of file cwb_condor_create_ced.C.

◆ icc2

float icc2

Definition at line 65 of file cwb_condor_create_ced.C.

◆ icc3

float icc3

Definition at line 65 of file cwb_condor_create_ced.C.

◆ icHH

float icHH

Definition at line 65 of file cwb_condor_create_ced.C.

◆ idur

float idur

Definition at line 67 of file cwb_condor_create_ced.C.

◆ ifreq

int ifreq

Definition at line 66 of file cwb_condor_create_ced.C.

◆ ihigh

int ihigh

Definition at line 66 of file cwb_condor_create_ced.C.

◆ ihrss

double* ihrss = new double[nIFO]

Definition at line 73 of file cwb_condor_create_ced.C.

◆ ilag

float ilag

Definition at line 65 of file cwb_condor_create_ced.C.

◆ ilik

float ilik

Definition at line 65 of file cwb_condor_create_ced.C.

◆ ilow

int ilow

Definition at line 66 of file cwb_condor_create_ced.C.

◆ ipen

float ipen

Definition at line 65 of file cwb_condor_create_ced.C.

◆ irate

int irate

Definition at line 68 of file cwb_condor_create_ced.C.

◆ irho

float irho

Definition at line 65 of file cwb_condor_create_ced.C.

◆ irun

int irun

Definition at line 68 of file cwb_condor_create_ced.C.

◆ isize

int isize

Definition at line 68 of file cwb_condor_create_ced.C.

◆ islag

float islag

Definition at line 65 of file cwb_condor_create_ced.C.

◆ iSNR

double* iSNR = new double[nIFO]

Definition at line 72 of file cwb_condor_create_ced.C.

◆ itime

double* itime = new double[nIFO]

Definition at line 71 of file cwb_condor_create_ced.C.

◆ ivED

float ivED

Definition at line 65 of file cwb_condor_create_ced.C.

◆ ivHH

float ivHH

Definition at line 65 of file cwb_condor_create_ced.C.

◆ JTAG

cout<< ofile_condor_sub << endl; char full_condor_dir[1024]; char full_condor_out_dir[1024]; char full_condor_err_dir[1024]; sprintf(full_condor_dir,"%s/%s",work_dir,condor_dir); sprintf(full_condor_out_dir,"%s/%s",work_dir,log_dir); sprintf(full_condor_err_dir,"%s/%s",work_dir,log_dir); 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 = ced.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_GPS_EVENT=$(CWB_GPS_EVENT);CWB_INET_OPTIONS=$(CWB_INET_OPTIONS);CWB_MDC_FACTOR=$(CWB_MDC_FACTOR);CWB_JOB_LAG=$(CWB_JOB_LAG);CWB_CED_DIR=$(CWB_CED_DIR);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.out\n",full_condor_out_dir,condor_label); fprintf(fP,"error = %s/$(PID)_$(CWB_JOB_LAG)_%s.err\n",full_condor_err_dir,condor_label); fprintf(fP,"log = %s/%s.log\n",condor_log,condor_label); fprintf(fP,"notification = never\n"); fprintf(fP,"rank=memory\n"); fprintf(fP,"queue\n"); fclose(fP); char ofile_condor_dag[1024]; sprintf(ofile_condor_dag,"%s/%s.dag",condor_dir,condor_label); ofstream out; out.open(ofile_condor_dag,ios::out); if (!out.good()) {cout << "Error Opening File : " << ofile_condor_dag << endl;exit(1);} cout << ofile_condor_dag << endl; int ievt=0; vector<TString> JTAG

Definition at line 157 of file cwb_condor_create_ced.C.

◆ ofile_condor_sub

char ofile_condor_sub[1024]

Definition at line 108 of file cwb_condor_create_ced.C.

◆ phi

float phi

Definition at line 69 of file cwb_condor_create_ced.C.

◆ pm

char pm[8]

Definition at line 63 of file cwb_condor_create_ced.C.

◆ psi

float psi

Definition at line 69 of file cwb_condor_create_ced.C.

◆ theta

float theta

Definition at line 69 of file cwb_condor_create_ced.C.