Changeset 6500 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 02/15/05 18:44:43 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r6499 r6500 116 116 { 117 117 file = new TFile(name, option, title, comp); 118 if (!file->IsOpen()) 119 { 120 delete file; 121 return NULL; 122 } 123 118 124 file->SetOption(option); // IMPORTANT! 119 125 ResetBit(kIsNotOwner); … … 873 879 // TTree::CloneTree() 874 880 // 875 void MWriteRootFile::CopyTree(TTree &t) 881 void MWriteRootFile::CopyTree(TTree &t) const 876 882 { 877 883 *fLog << "Copy of tree " << t.GetName() << " in progress..." << flush; -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r6499 r6500 96 96 Bool_t ChangeFile(const char *fname); 97 97 TFile *OpenFile(const char *name, Option_t *option, const char *title, Int_t comp); 98 void CopyTree(TTree &t) ;98 void CopyTree(TTree &t) const; 99 99 Bool_t MakeCopies(const char *oldname) const; 100 100
Note:
See TracChangeset
for help on using the changeset viewer.