Changeset 6459 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 02/14/05 16:29:56 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r6373 r6459 127 127 MWriteRootFile::MWriteRootFile(const Int_t comp, 128 128 const char *rule, 129 const Bool_t overwrite,129 const Option_t *option, 130 130 const char *ftitle, 131 131 const char *name, … … 139 139 // a valid file. (Stupid workaround - but does a good job) 140 140 // 141 fOut = new TFile("/dev/null", overwrite?"RECREATE":"NEW", ftitle, comp); 141 fOut = new TFile("/dev/null", option, ftitle, comp); 142 fOut->SetOption(option); // IMPORTANT! 142 143 } 143 144 … … 713 714 const Int_t compr = fOut->GetCompressionLevel(); 714 715 const TString title = fOut->GetTitle(); 715 716 *fLog << inf << "MWriteRootFile - Open new file " << fname << " (Title=" << title << ", Compression=" << compr << ")" << endl; 716 const TString opt = fOut->GetOption(); 717 718 *fLog << inf << "MWriteRootFile - Open new file " << fname << " (Title=" << title << ", Option=" << opt << ", Compression=" << compr << ")" << endl; 717 719 718 720 // Open new file with old setup 719 TFile *newfile = TFile::Open(fname, "RECREATE", title, compr);721 TFile *newfile = TFile::Open(fname, opt, title, compr); 720 722 if (!newfile) 721 723 { -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r6373 r6459 112 112 MWriteRootFile(const Int_t comp, 113 113 const char *rule, 114 const Bool_t overwrite=kTRUE,114 const Option_t *opt="RECREATE", 115 115 const char *ftitle="Untitled", 116 116 const char *name=NULL,
Note:
See TracChangeset
for help on using the changeset viewer.