Changeset 8882 for trunk/MagicSoft/Mars/mjobs/MJob.cc
- Timestamp:
- 03/18/08 17:41:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJob.cc
r8719 r8882 431 431 title += fName; 432 432 433 // In case the update-option is selected check whether 434 // the file is already open 435 if (TString(option).Contains("update", TString::kIgnoreCase)) 436 { 437 TFile *file = dynamic_cast<TFile*>(gROOT->GetListOfFiles()->FindObject(oname)); 438 if (file && file->IsOpen() && !file->IsZombie()) 439 { 440 *fLog << inf << "Open file found." << endl; 441 file->cd(); 442 return WriteContainer(cont); 443 } 444 } 445 446 // Open a new file with the defined option for writing 433 447 TFile file(oname, option, title, compr); 434 if (!file.IsOpen() )448 if (!file.IsOpen() || file.IsZombie()) 435 449 { 436 450 *fLog << err << "ERROR - Couldn't open file " << oname << " for writing..." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.