Changeset 6245
- Timestamp:
- 02/03/05 17:01:39 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6243 r6245 32 32 * mhflux/MHAlpha.[h,cc]: 33 33 - made time bins settable by user 34 35 * mfileio/MWriteRootFile.cc: 36 - fixed ReInit and a warning output when writing to memory 34 37 35 38 … … 53 56 * mcalib/MCalibrationTestCam.cc 54 57 - initialize a missing array in InitAverageAreas 58 59 55 60 56 61 2005/02/02 Markus Gaug -
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.