Changeset 7232 for trunk/MagicSoft/Mars/datacenter/macros/findcacofiles.C
- Timestamp:
- 07/29/05 23:13:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/findcacofiles.C
r7182 r7232 44 44 45 45 46 int findcacofiles(TString date )46 int findcacofiles(TString date, TString logpath) 47 47 { 48 48 TEnv env("sql.rc"); … … 72 72 } 73 73 74 Int_t idx = date.First('-'); 75 TString year = date(0, idx); 76 cout << "year: " << year << endl; 77 78 ofstream fout("/magic/datacenter/autologs/filesondisk/"+year+"/findcacofiles-"+date+".txt"); 74 TString filename(Form("%s/findcacofiles-%s.txt", logpath.Data(), date.Data())); 75 ofstream fout(filename, ios::app); 79 76 if (!fout) 80 77 { 81 cout << "ERROR - Cannot open file ."<< endl;82 return kFALSE;78 cout << "ERROR - Cannot open file " << filename << endl; 79 return 0; 83 80 } 84 TString runnumber=0; 81 85 82 TSQLRow *row=0; 86 83 while ((row = res->Next()))
Note:
See TracChangeset
for help on using the changeset viewer.