Changeset 8133 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 10/19/06 15:28:24 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r7838 r8133 341 341 { 342 342 *fLog << err << "MReadTree::AddFile - ERROR: You cannot add a file, because MReadTree" << endl; 343 *fLog << " handles a memory based tree or its default" << endl;344 *fLog << " constructor was called." << endl;343 *fLog << " is supposed to read its tree from memory or its default or its" << endl; 344 *fLog << " default constructor was called (no tree name was given)." << endl; 345 345 return 0; 346 346 } … … 703 703 if (!fTaskList) 704 704 *fLog << warn << "WARNING - Standard tasklist MTaskList not found... ignoring Stream-ID." << endl; 705 706 if (!fTree || !fChain) 707 { 708 *fLog << err << "ERROR - Something went terribly wrong!" << endl; 709 *fLog << " Maybe you called the default constructor?" << endl; 710 *fLog << " Did you forget to give a tree name in the constructor?" << endl; 711 return kFALSE; 712 } 705 713 706 714 // -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r7804 r8133 114 114 { 115 115 TFile *file = dynamic_cast<TFile*>(gROOT->GetListOfFiles()->FindObject(name)); 116 117 // If the file was not found with its name try its expanded name 118 if (!file) 119 { 120 TString fqp(name); 121 gSystem->ExpandPathName(fqp); 122 file = dynamic_cast<TFile*>(gROOT->GetListOfFiles()->FindObject(fqp)); 123 } 124 116 125 if (!file) 117 126 { … … 725 734 // -------------------------------------------------------------------------- 726 735 // 727 // Open a new file with the ame fname. Move all trees and branches from the736 // Open a new file with the name fname. Move all trees and branches from the 728 737 // old file to the new file. 729 738 // … … 741 750 return kTRUE; 742 751 } 743 744 752 if (!newfile) 745 753 { 746 754 *fLog << err << "ERROR - Cannot open new file " << fname << endl; 747 755 return kFALSE; 756 } 757 758 if (!fOut) 759 { 760 *fLog << err << "ERROR - MWriteRootFile::ChangeFile... something went terribly wrong!" << endl; 761 *fLog << " Please start debugging!" << endl; 762 return kFALSE; 748 763 } 749 764
Note:
See TracChangeset
for help on using the changeset viewer.