Changeset 6245 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 02/03/05 17:01:39 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r5713 r6245 146 146 // TFile. 147 147 // 148 // To create a memory based TTree use 149 // fname = name of TTree 150 // option = "memory" 151 // Make sure you do not read from a tree with the same name! 152 // 148 153 MWriteRootFile::MWriteRootFile(const char *fname, 149 154 const Option_t *option, … … 161 166 // Check if we are writing to memory 162 167 // 163 if (opt.Contains("memory" ))168 if (opt.Contains("memory", TString::kIgnoreCase)) 164 169 { 165 170 fSplitRule = fname; … … 493 498 branch->SetAddress(entry->GetAddress()); 494 499 495 if (!fSplitRule.IsNull() )500 if (!fSplitRule.IsNull() && fOut) 496 501 { 497 502 *fLog << warn << endl; … … 782 787 while (1) 783 788 { 784 TString sub = fname(idx+dest.Length()); 789 //TString sub = fname(idx+dest.Length()); 790 cout << "--------->" << fname << "<-----------" << endl; 785 791 idx = regexp.Index(fname, &len); 786 792 if (idx<0) … … 816 822 Bool_t MWriteRootFile::ReInit(MParList *pList) 817 823 { 818 if (fSplitRule.IsNull() )824 if (fSplitRule.IsNull() || !fOut) 819 825 return MWriteFile::ReInit(pList); 820 826
Note:
See TracChangeset
for help on using the changeset viewer.