Ignore:
Timestamp:
02/11/09 17:35:54 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r9315 r9318  
    123123            if (TString(obj->GetName())=="/dev/null" && TString(obj->GetTitle())==title)
    124124            {
    125                 *fLog << inf3 << "Found file '/dev/null' <Title=" << title << ">" << endl;
     125                *fLog << inf2 << "Found open file '/dev/null' <Title=" << title << ">... re-using." << endl;
    126126                file = dynamic_cast<TFile*>(obj);
    127127                break;
     
    138138            gSystem->ExpandPathName(fqp);
    139139            file = dynamic_cast<TFile*>(gROOT->GetListOfFiles()->FindObject(fqp));
     140        }
     141
     142        if (file)
     143        {
     144            *fLog << inf2;
     145            *fLog << "Found open file '" << name << "'... re-using." << endl;
     146            *fLog << inf3;
     147            *fLog << "Make sure that you do NOT write to trees which are" << endl;
     148            *fLog << "scheduled already by a different MWriteRootFile..." << endl;
    140149        }
    141150    }
     
    162171    SetBit(kIsNotOwner);
    163172
    164     *fLog << inf;
    165     *fLog << "File '" << name << "' already open... using." << endl;
    166     *fLog << inf3;
    167     *fLog << "Make sure that you do NOT write to trees which are" << endl;
    168     *fLog << "scheduled already by a different MWriteRootFile..." << endl;
    169173    return fOut;
    170174}
Note: See TracChangeset for help on using the changeset viewer.