Functions | |
| gSystem | Exec (cmd) |
| gSystem | Exit (1) |
| for () | |
| cout<< endl;cout<< "Input IMBHB files : "<< endl;cout<< ifwave[0]<< endl;if(simulation) cout<< ifmdc[0]<< endl;cout<< endl;cout<< "Input BBH files : "<< endl;cout<< ifwave[1]<< endl;if(simulation) cout<< ifmdc[1]<< endl;cout<< endl;TString ofwave=ifile1;TString cwb_combine_tag=TString::Format("J_%s_f%dHz", cwb_combine_search.Data(), cwb_combine_fthr);if(!simulation) cwb_combine_tag=cwb_combine_tag+TString::Format("_lag%d_slag%d", cwb_combine_lag, cwb_combine_slag);if(cwb_combine_ulabel!="") cwb_combine_tag=cwb_combine_tag+"_"+cwb_combine_ulabel;ofwave.ReplaceAll(".root", TString::Format(".%s.root", cwb_combine_tag.Data()));TString ofmdc=ofwave;ofmdc.ReplaceAll("wave_","mdc_");TString msearch=(cwb_combine_search=="BBH") ? "IMBHB" :"BBH";TString infos="("+cwb_combine_tag+") - ( "+cwb_combine_options+" )";int err=TB.CombineCBC(ifwave, ifmdc, ofwave, ofmdc, nIFO, cwb_combine_fthr, msearch, infos, cwb_combine_lag, cwb_combine_slag, cwb_combine_ifarthr);if(err) { cout<< "cwb_combine_cbc.C : Warning - no events selected, create a symbolic link to wave file"<< endl<< endl;Long_t id, size, flags, mt;int estat=gSystem-> | GetPathInfo (ifile1,&id,&size,&flags,&mt) |
| if (cwb_combine_options.Contains("--")) | |
| if (cwb_combine_lag< 0||cwb_combine_slag< 0) | |
| if (cwb_combine_sfthr.IsDigit()) | |
| if (cwb_combine_sifarthr.IsFloat()) | |
| else | if (cwb_combine_sifarthr!="") |
| if (simulation &&!cwb_merge_label.Contains(".C_U")) | |
| if (cwb_combine_search!="IMBHB" &&cwb_combine_search!="BBH") | |
| if (cwb_combine_wdir=="") | |
| if (cwb_combine_mlabel=="") | |
| if (simulation &&!cwb_combine_mlabel.Contains(".C_U")) | |
| if (cwb_combine_ulabel!="" &&!cwb_combine_ulabel.IsAlnum()) | |
| if (!simulation &&cwb_combine_check=="TRUE") | |
| if (estat==0) | |
| if (simulation==0) | |
| vector< TString > | ifwave (2) |
| ofmerge | ReplaceAll ("wave_","merge_") |
| ofmerge | ReplaceAll (".root",".lst") |
| sprintf (cmd,"touch %s", ofmerge.Data()) | |
Variables | |
| char | cmd [1024] |
| TString | cwb_combine_check = "" |
| int | cwb_combine_fthr = 0 |
| float | cwb_combine_ifarthr = 0. |
| int | cwb_combine_lag = 0 |
| TString | cwb_combine_mlabel = "" |
| TString | cwb_combine_options = TString(gSystem->Getenv("CWB_COMBINE_OPTIONS")) |
| TString | cwb_combine_search = "" |
| TString | cwb_combine_sfthr = "" |
| TString | cwb_combine_sifarthr = "" |
| int | cwb_combine_slag = 0 |
| TString | cwb_combine_ulabel = "" |
| TString | cwb_combine_wdir = "" |
| cwb_merge_label = TString(gSystem->Getenv("CWB_MERGE_LABEL")) | |
| else | |
| cout<< endl;if(cwb_combine_check!="FALSE" &&cwb_combine_check!="TRUE") { cout<< endl<< "cwb_combine_cbc : Error - check available values are : true/false!!!"<< endl<< endl;gSystem-> | Exit (1) |
| TString | ifile1 = TString::Format("%s/wave_%s.%s.root",merge_dir,data_label,cwb_merge_label.Data()) |
| TString | ifile2 |
| ifwave [0] = (cwb_combine_search=="BBH") ? ifile1 : ifile2 | |
| TString | mdir = merge_dir |
| TString | oflive |
| TString | ofmerge = ofwave |
| gSystem Exec | ( | cmd | ) |
| gSystem Exit | ( | 1 | ) |
| for | ( | ) |
Definition at line 148 of file cwb_combine_cbc.C.
| cout<< endl; cout << "Input IMBHB files : " << endl; cout << ifwave[0] << endl; if(simulation) cout << ifmdc[0] << endl; cout << endl; cout << "Input BBH files : " << endl; cout << ifwave[1] << endl; if(simulation) cout << ifmdc[1] << endl; cout << endl; TString ofwave = ifile1; TString cwb_combine_tag = TString::Format("J_%s_f%dHz",cwb_combine_search.Data(),cwb_combine_fthr); if(!simulation) cwb_combine_tag = cwb_combine_tag+TString::Format("_lag%d_slag%d",cwb_combine_lag,cwb_combine_slag); if(cwb_combine_ulabel!="") cwb_combine_tag = cwb_combine_tag+"_"+cwb_combine_ulabel; ofwave.ReplaceAll(".root",TString::Format(".%s.root",cwb_combine_tag.Data())); TString ofmdc = ofwave; ofmdc.ReplaceAll("wave_","mdc_"); TString msearch = (cwb_combine_search=="BBH") ? "IMBHB" : "BBH"; TString infos = "("+cwb_combine_tag+") - ( "+cwb_combine_options+" )"; int err = TB.CombineCBC(ifwave, ifmdc, ofwave, ofmdc, nIFO, cwb_combine_fthr, msearch, infos, cwb_combine_lag, cwb_combine_slag, cwb_combine_ifarthr); if(err) { cout << "cwb_combine_cbc.C : Warning - no events selected, create a symbolic link to wave file" << endl << endl; Long_t id,size,flags,mt; int estat = gSystem-> GetPathInfo | ( | ifile1 | , |
| & | id, | ||
| & | size, | ||
| & | flags, | ||
| & | mt | ||
| ) |
| if | ( | cwb_combine_options. | Contains"--" | ) |
Definition at line 51 of file cwb_combine_cbc.C.
| if | ( | ) |
Definition at line 84 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_sfthr. | IsDigit() | ) |
Definition at line 91 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_sifarthr. | IsFloat() | ) |
Definition at line 99 of file cwb_combine_cbc.C.
| else if | ( | cwb_combine_sifarthr! | = "" | ) |
Definition at line 105 of file cwb_combine_cbc.C.
| if | ( | simulation &&!cwb_merge_label. | Contains".C_U" | ) |
Definition at line 110 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_search! | = "IMBHB" && cwb_combine_search!="BBH" | ) |
Definition at line 115 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_wdir | = ="" | ) |
Definition at line 120 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_mlabel | = ="" | ) |
Definition at line 125 of file cwb_combine_cbc.C.
| if | ( | simulation &&!cwb_combine_mlabel. | Contains".C_U" | ) |
Definition at line 130 of file cwb_combine_cbc.C.
| if | ( | cwb_combine_ulabel! | = "" && !cwb_combine_ulabel.IsAlnum() | ) |
Definition at line 135 of file cwb_combine_cbc.C.
| if | ( | !simulation && | cwb_combine_check = ="TRUE" | ) |
Definition at line 159 of file cwb_combine_cbc.C.
| if | ( | estat | = =0 | ) |
Definition at line 225 of file cwb_combine_cbc.C.
| if | ( | simulation | = =0 | ) |
Definition at line 240 of file cwb_combine_cbc.C.
| vector<TString> ifwave | ( | 2 | ) |
| ofmerge ReplaceAll | ( | "wave_" | , |
| "merge_" | |||
| ) |
| ofmerge ReplaceAll | ( | ".root" | , |
| ".lst" | |||
| ) |
| char cmd[1024] |
Definition at line 236 of file cwb_combine_cbc.C.
| TString cwb_combine_check = "" |
Definition at line 48 of file cwb_combine_cbc.C.
| int cwb_combine_fthr = 0 |
Definition at line 90 of file cwb_combine_cbc.C.
| float cwb_combine_ifarthr = 0. |
Definition at line 98 of file cwb_combine_cbc.C.
| int cwb_combine_lag = 0 |
Definition at line 49 of file cwb_combine_cbc.C.
| TString cwb_combine_mlabel = "" |
Definition at line 46 of file cwb_combine_cbc.C.
Definition at line 37 of file cwb_combine_cbc.C.
| TString cwb_combine_search = "" |
Definition at line 44 of file cwb_combine_cbc.C.
| TString cwb_combine_sfthr = "" |
Definition at line 42 of file cwb_combine_cbc.C.
| TString cwb_combine_sifarthr = "" |
Definition at line 43 of file cwb_combine_cbc.C.
| int cwb_combine_slag = 0 |
Definition at line 50 of file cwb_combine_cbc.C.
| TString cwb_combine_ulabel = "" |
Definition at line 47 of file cwb_combine_cbc.C.
| TString cwb_combine_wdir = "" |
Definition at line 45 of file cwb_combine_cbc.C.
Definition at line 36 of file cwb_combine_cbc.C.
| else |
Definition at line 93 of file cwb_combine_cbc.C.
| cout<< endl; if(cwb_combine_check!="FALSE" && cwb_combine_check!="TRUE") { cout << endl << "cwb_combine_cbc : Error - check available values are : true/false!!!" << endl << endl; gSystem-> Exit(1) |
Definition at line 81 of file cwb_combine_cbc.C.
| TString ifile1 = TString::Format("%s/wave_%s.%s.root",merge_dir,data_label,cwb_merge_label.Data()) |
Definition at line 142 of file cwb_combine_cbc.C.
| TString ifile2 |
Definition at line 143 of file cwb_combine_cbc.C.
| ifwave[1] = (cwb_combine_search=="BBH") ? ifile1 : ifile2 |
Definition at line 145 of file cwb_combine_cbc.C.
Definition at line 39 of file cwb_combine_cbc.C.
| TString oflive |
Definition at line 239 of file cwb_combine_cbc.C.
| TString ofmerge = ofwave |
Definition at line 233 of file cwb_combine_cbc.C.