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

Functions

TB checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE"))
 
gSystem Exit (1)
 
out<< config.Data();out.close();gSystem-> Exit (0)
 
 for (int i=0;i< fileList.size();i++)
 
 if (gSystem->Getenv("CWB_MERGE_LABEL")==NULL)
 
 if (cwb_merge_label[0]!='M')
 
 if (!lcheck.IsDigit())
 
 if (cwb_merge_opts!="")
 
 if (cwb_utag!="")
 
 if (cwb_merge_number==0||cwb_merge_number >=iversion)
 
 if (cwb_utag=="")
 
 if (ihistory==NULL)
 
 if (!out.good())
 
gROOT Macro (gSystem->ExpandPathName("$CWB_MACROS/cwb_merge_log.C"))
 
out open (configFile, ios::out)
 
lcheck Remove (0, 1)
 
 sprintf (tag,"wave_%s", data_label)
 
 sprintf (configFile,"%s/cwb_user_parameters.C", merge_dir)
 

Variables

TString config
 
char configFile [1024]
 
bool cwb_bpsm = false
 
bool cwb_brms = false
 
bool cwb_bvar = false
 
TString cwb_merge_label
 
int cwb_merge_number =0
 
TString cwb_merge_opts =TString(gSystem->Getenv("CWB_MERGE_OPTS"))
 
int cwb_nthreads = 0
 
TString cwb_utag = ""
 
 else
 
vector< TStringfileList = TB.getFileListFromDir(merge_dir, ".root", tag,"",true)
 
TString git_version
 
CWB::Historyihistory = (CWB::History*)ifile->Get("history")
 
int ipos = (cwb_utag=="") ? 2 : 3
 
int iversion =0
 
char merge_list_file [1024]
 
TString mtag
 
char new_data_label [256]
 
int nStages = cwb::GetStageSize()
 
ofstream out
 
char tag [256]
 

Function Documentation

◆ checkFile() [1/3]

TB checkFile ( gSystem->  Getenv"CWB_ROOTLOGON_FILE")

◆ checkFile() [2/3]

TB checkFile ( gSystem->  Getenv"CWB_PARAMETERS_FILE")

◆ checkFile() [3/3]

TB checkFile ( gSystem->  Getenv"CWB_UPARAMETERS_FILE")

◆ Exit() [1/2]

gSystem Exit ( )

◆ Exit() [2/2]

out<< config.Data(); out.close(); gSystem-> Exit ( )

◆ for()

for ( )

Definition at line 110 of file cwb_merge.C.

◆ if() [1/9]

if ( gSystem->  Getenv"CWB_MERGE_LABEL" = =NULL)

Definition at line 30 of file cwb_merge.C.

◆ if() [2/9]

if ( cwb_merge_label!  [0] = 'M')

Definition at line 37 of file cwb_merge.C.

◆ if() [3/9]

if ( !lcheck.  IsDigit())

Definition at line 42 of file cwb_merge.C.

◆ if() [4/9]

if ( cwb_merge_opts!  = "")

Definition at line 57 of file cwb_merge.C.

◆ if() [5/9]

if ( cwb_utag!  = "")

Definition at line 96 of file cwb_merge.C.

◆ if() [6/9]

Definition at line 127 of file cwb_merge.C.

◆ if() [7/9]

if ( cwb_utag  = ="")

Definition at line 143 of file cwb_merge.C.

◆ if() [8/9]

if ( ihistory  = =NULL)

Definition at line 186 of file cwb_merge.C.

◆ if() [9/9]

if ( !out.  good())

Definition at line 216 of file cwb_merge.C.

◆ Macro()

gROOT Macro ( gSystem->  ExpandPathName"$CWB_MACROS/cwb_merge_log.C")

◆ open()

out open ( configFile  ,
ios::out   
)

◆ Remove()

lcheck Remove ( ,
 
)

◆ sprintf() [1/2]

sprintf ( tag  ,
"wave_%s ,
data_label   
)

◆ sprintf() [2/2]

sprintf ( configFile  ,
"%s/cwb_user_parameters.C ,
merge_dir   
)

Variable Documentation

◆ config

TString config

Definition at line 190 of file cwb_merge.C.

◆ configFile

char configFile[1024]

Definition at line 213 of file cwb_merge.C.

◆ cwb_bpsm

bool cwb_bpsm = false

Definition at line 50 of file cwb_merge.C.

◆ cwb_brms

bool cwb_brms = false

Definition at line 51 of file cwb_merge.C.

◆ cwb_bvar

bool cwb_bvar = false

Definition at line 52 of file cwb_merge.C.

◆ cwb_merge_label

TString cwb_merge_label

Definition at line 29 of file cwb_merge.C.

◆ cwb_merge_number

cwb_merge_number =0

Definition at line 36 of file cwb_merge.C.

◆ cwb_merge_opts

TString cwb_merge_opts =TString(gSystem->Getenv("CWB_MERGE_OPTS"))

Definition at line 56 of file cwb_merge.C.

◆ cwb_nthreads

int cwb_nthreads = 0

Definition at line 53 of file cwb_merge.C.

◆ cwb_utag

TString cwb_utag = ""

Definition at line 54 of file cwb_merge.C.

◆ else

else
Initial value:
{
cwb_merge_label=TString(gSystem->Getenv("CWB_MERGE_LABEL"))
TString cwb_merge_label
Definition: cwb_merge.C:29
TString("c")

Definition at line 32 of file cwb_merge.C.

◆ fileList

vector<TString> fileList = TB.getFileListFromDir(merge_dir, ".root", tag,"",true)

Definition at line 93 of file cwb_merge.C.

◆ git_version

TString git_version

Definition at line 191 of file cwb_merge.C.

◆ ihistory

CWB::History* ihistory = (CWB::History*)ifile->Get("history")

Definition at line 185 of file cwb_merge.C.

◆ ipos

int ipos = (cwb_utag=="") ? 2 : 3

Definition at line 109 of file cwb_merge.C.

◆ iversion

iversion =0

Definition at line 108 of file cwb_merge.C.

◆ merge_list_file

char merge_list_file[1024]

Definition at line 153 of file cwb_merge.C.

◆ mtag

TString mtag

Definition at line 95 of file cwb_merge.C.

◆ new_data_label

char new_data_label[256]

Definition at line 142 of file cwb_merge.C.

◆ nStages

int nStages = cwb::GetStageSize()

Definition at line 192 of file cwb_merge.C.

◆ out

out<< "<table border=0 cellpadding=2 class=\atagrid\<< endl out << "< tr align=\"center\"<< endl out<< "<td>ID</td>"<< endl if(bhveto) out<< "<td>KW</td>"<< endl if(bcat3) out<< "<td>cat3 </td>"<< endl out<< "<td>rho["<< pp_irho<<"]</td>"<< endl out<< "<td>cc["<< pp_inetcc<<"]</td>"<< endl if(TString(analysis)=="2G") out<< "<td>subnet</td>"<< endl out<< "<td>lag</td>"<< endl out<< "<td>slag</td>"<< endl out<< "<td>SNRnet</td>"<< endl if(TString(analysis)=="1G") out<< "<td>pf</td>"<< endl if(TString(analysis)=="1G") out<< "<td>vED</td>"<< endl out<< "<td>freq</td>"<< endl out<< "<td>bw</td>"<< endl out<< "<td>dur</td>"<< endl out<< "<td>size</td>"<< endl if(optim==true) out<< "<td>res</td>"<< endl out<< "<td>run</td>"<< endl for(int nn=0nn< nIFOnn++) out<< "<td>GPS "<< _ifo[nn]<< "</td>"<< endl for(int nn=0nn< nIFOnn++) out<< "<td>SNR "<< _ifo[nn]<< "</td>"<< endl out<< "</tr>"<< endl double start

Definition at line 214 of file cwb_merge.C.

◆ tag

char tag[256]

Definition at line 92 of file cwb_merge.C.