30 checkDbTableList(
char* listFile=
"table.list",
char* outName=
"out.txt",
31 char* MAXENTRY =
"2030-01-01 00:00:00",
char* flavor =
"ofl")
35 gROOT->Macro(
"loadMuDst.C");
38 gROOT->LoadMacro(
"$STAR/StRoot/StEmcUtil/macros/checkDbTable.C");
41 ifstream inputFile(listFile);
42 ofstream outputFile(outName);
46 while (!inputFile.eof())
48 inputFile >> fileName;
49 if (strcmp(fileName,
" "))
50 if (!checkDbTable(fileName,MAXENTRY,flavor))
52 outputFile <<
"DBTIME = "<<DBTIME<<
" FILE = "<< fileName <<
" - *** TABLES DON'T MATCH ***"<< endl;
53 cout <<
"DBTIME = "<<DBTIME<<
" FILE = "<< fileName <<
" - *** TABLES DON'T MATCH ***"<< endl;
57 outputFile <<
"DBTIME = "<<DBTIME<<
" FILE = "<< fileName <<
" - Tables match"<< endl;
58 cout <<
"DBTIME = "<<DBTIME<<
" FILE = "<< fileName <<
" - Tables match"<< endl;
66 cout <<
"_______ DB Table file list checking is done _______" << endl;