35 in.open(ifile.Data(),ios::in);
36 if (!in.good()) {cout <<
"Error Opening File : " << ifile << endl;gSystem->Exit(1);}
37 cout <<
"input file list : " << ifile << endl;
45 vector<waveSegment> iseg;
49 if(str[0] ==
'#')
continue;
50 in.seekg(fpos, ios::beg);
54 if (!in.good())
break;
56 seg.index=index++; seg.start=start; seg.stop=stop; iseg.push_back(seg);
67 vector<waveSegment> oseg = CWB::Toolbox::unionSegments(iseg);
76 out.open(ofile.Data(),ios::out);
78 for(
int n=0;
n<oseg.size();
n++) {
79 out << oseg[
n].start <<
" " << oseg[
n].stop << endl;
83 cout <<
"output file list : " << ofile << endl;
void MergeSegments(TString ifile, TString ofile, bool bexit=true)