1 #define GW_MAX_SIZE 1000
15 CWB::Toolbox::checkFile(ifile);
19 in.open(ifile.Data(),ios::in);
20 if (!in.good()) {cout <<
"Error Opening File : " << ifile << endl;
exit(1);}
27 if (!in.good())
break;
28 if(str[0] !=
'#') isize++;
30 in.clear(ios::goodbit);
31 in.seekg(0, ios::beg);
32 if(isize==0) {cout <<
"Error : File " << ifile <<
" is empty" << endl;
exit(1);}
40 TString ofile_txt = ifile;
41 ofile_txt.ReplaceAll(
".lst",
".txt");
43 TString ofile_C = ifile;
44 ofile_C.ReplaceAll(
".lst",
".C");
47 out_txt.open(ofile_txt.Data());
48 if (!out_txt.good()) {cout <<
"Error Opening File : " << ofile_txt << endl;
exit(1);}
58 in >>
name[k] >> time[k];
60 if(
name[k][0]==
'#')
continue;
61 wat::Time sdate(time[k]);
63 TString month[12] = {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"};
68 month[sdate.GetMonth()-1].Data(),sdate.GetDay(),sdate.GetHour(),sdate.GetMinute());
75 cout << sout_txt << endl;
76 out_txt << sout_txt << endl;
int ConvertEventList(TString ifile, TString run="O3")
sprintf(tag,"wave_%s", data_label)