17 in.open(ifile.Data(),ios::in);
18 if (!in.good()) {cout <<
"Error Opening File : " << ifile << endl;gSystem->Exit(1);}
19 cout <<
"input file list : " << ifile << endl;
27 vector<waveSegment> iseg;
31 if(str[0] ==
'#')
continue;
32 in.seekg(fpos, ios::beg);
36 if (!in.good())
break;
38 seg.index=index++; seg.start=
start; seg.stop=
stop; iseg.push_back(seg);
49 vector<waveSegment> oseg = CWB::Toolbox::unionSegments(iseg);
58 out.open(ofile.Data(),ios::out);
60 for(
int n=0;
n<oseg.size();
n++) {
61 out << oseg[
n].start <<
" " << oseg[
n].stop << endl;
65 cout <<
"output file list : " << ofile << endl;
double start[CHUNK_MAX_SIZE]
void MergeSegments(TString ifile, TString ofile, bool bexit=true)
double stop[CHUNK_MAX_SIZE]